Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 102 additions & 1 deletion starter-code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,109 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>npm</title>

<link rel="stylesheet" type="text/css" href="styles.css">

</head>
<body>
<!-- Your code goes here -->

<nav>
<div class="top-left">
<a class = "heart" href="#">♥︎</a>
<span class="acronym">Neophobe Plebeian Mumpsimus</span>
</div>
<ul class="top-links">
<li><a href="#">npm Enterprise</a></li>
<li><a href="#">features</a></li>
<li><a href="#">pricing</a></li>
<li><a href="#">documentation</a></li>
<li><a href="#">support</a></li>
</ul>
</nav>

<div class="header">
<div class="top">
<span>
<a class = "npm" href="#"><img src="images/npm-logo.png"></a>
<input type="search" placeholder="find packages">
<span class="bear">
sign up or log in
<a href="#"><img src="images/bear-logo.png"></a>
</span>

</span>
</div>

<div class="section_content build_description">
<heading>
<h1>Build amazing things</h1>
</heading>
<p>
npm is the package manager fot JavaScript and the world's largest software registry. Discover packages of reusable code - and assemble them in powerful new ways.
</p>
<button class="button_build" href="#">Sign up for npm</button>
</div>
</div>

<section class="collaboration">
<div class="section_content">
<img class="collab_img" src="images/collaboration.svg">
<div class="collab_desc">
<heading>
<h2>npm Orgs is powerful collaboration - for free</h2>
</heading>
<ul>
<li>Encourage code discovery and re-use within teams</li>
<li>Publish and contral access to your own namespace</li>
<li>Manage public and private code with the same workflow</>
</ul>

<button class="button_collab" href="">Sign up for Orgs</button>
<p>
or, <a href=""><b>Learn more about orgs</b></a>
</p>
</div>
</div>
</section>

<section class="what_is_npm">
<div class="section_content what_content">
<heading>
<h2>What is npm ?</h2>
</heading>

<p>
Use npm to install, share, and distribute code; manage dependencies in your projects; and share & receive feedback with others.
</p>
<button class="button_what" href="#">Install npm</button>
</div>

</section>

<section class="what_make">
<div class="section_content text_centered">
<h2>
What can you make with 475,000 building blocks ?
</h2>
The npm registry hosts half a million packages for free, reusable code - the largest software registry in the world.
</div>
<div class="section_content text_centered">
<div class="logo_content">
<img src="images/binoculars.svg">
<h3>Find</h3>
<p>Libraries like <a href="">JQuery</a>, <a href="">Bootstrap</a>, <a href="">React</a>, and <a href="">Angular</a>, and components from frameworks such as <a href="">Amber</a>.</p>
</div>
<div class="logo_content">
<img src="images/mountain-flag.svg">
<h3>Discover</h3>
<p>Packages for mobile, IoT, front end, back end, robotics... everything you need to start building amazing things.</p>
</div>
<div class="logo_content">
<img src="images/backpack.svg">
<h3>Build</h3>
<p>Assemble packages like building blocks to quickly develop awesome new projects.</p>
</div>
</div>
</section>
</body>
</html>
139 changes: 139 additions & 0 deletions starter-code/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
body {
font-family: 'Source Sans Pro', 'Lucida Grande', sans-serif;
}
nav {
background-color: #C12127;
color: rgba(255,255,255,0.8);
padding: 5px 0 5px 0;
font-size: .875rem;
}

nav a {
color: rgba(255,255,255,0.8);
text-decoration: none;
}

.top-left {
display: inline-block;
vertical-align: middle;
margin: 0 0 0 5px;
}

.top-links {
display: inline-block;
float: right;
padding: 0;
margin: 0 5px 0 0;
vertical-align: middle;
}

.top-links li {
display: inline-block;
margin: 0 10px;
}

.header {
color: white;
background-image: url(images/city-scape.svg);
}

.top {
padding: 5px 5px 5px 5px;
font-size: .875rem;
}

.top img {
display: inline-block;
height: 30px;
vertical-align: middle;
}

.top input {
border: 1px solid rgb(120, 156, 173);
display: inline-block;
height: 30px;
background: rgb(31, 82, 111);
padding: 5px;
font-size: .875rem;
vertical-align: middle;
width: 75%;
margin-left: 10px;
margin-right: 10px;
}

.bear {
display: inline-block;
float: right;
padding: 0;
margin: 0 5px 0 0;
vertical-align: middle;
}

.section_content {
padding: 30px 200px 30px 200px;
}

.build_description {
padding-right: 700px;
}

.build_description img {
float: right;
}

.collaboration {
background: rgb(39, 53, 71);
color: white;
}

.collab_img {
width: 400px;
}

.collab_desc {
float: right;
}

.what_is_npm {
color: white;
background-image: url(images/forklift.svg);
}

.what_content{
padding-right: 800px;
}

.text_centered {
text-align: center;
}

.logo_content {
width: 33%;
text-align: center;
display: inline-block;
vertical-align: middle;
}
button {
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 50px;
}

.button_build {
background-color: rgb(240, 146, 51);
}

.button_collab {
background-color: rgb(203, 56, 55);
}

.button_what {
background-color: rgb(49, 68, 88)
}