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
91 changes: 90 additions & 1 deletion starter-code/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,101 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<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="#">Docs</a></li>
<li><a href="#">Support</a></li>
</ul>
</nav>
<header class="font-white">
<div class="search-bar center">
<img src="images/npm-logo.png" alt="npm-logo" class="top-left" width="80px">
<input type="text" placeholder="Search packages" class="search top-left">
<button type="submit" class="search top-left">Search</button>
<p class="top-left">log in or sign in</p>
</div>
<div class="clearfix"></div>
<div class="center">
<div class="header-content">
<h1>Build amazing things</h1>
<p>npm is the package manager for JavaScript and the world’s largest software registry. Discover packages of reusable code — and assemble them in powerful new ways.</p>
<div class="display-block">
<a href="#" class="button button-header">Sign up</a>
</div>
</div>
</div>
</header>
<section id="collaboration" class="font-white">
<div class="center">
<div class="col col-2">
<img src="images/collaboration.svg" alt="collaboration">
</div>
<div class="col col-2">
<h1>npm Orgs is powerful collaboration - for free</h1>
<ul>
<li>Encourage code discovery and re-use within teams</li>
<li>Publish and control access to your own namespace</li>
<li>Manage public and private code with the same workflow</li>
</ul>
<a href="#" class="button button-collaboration font-white no-decoration">Sign up for Orgs</a>
<p class="center-text">or, <a href="#">Learn more about Orgs</a></p>
</div>
<div class="clearfix"></div>
</div>
</section>
<section id="what-is-npm">
<div class="what-is-npm center font-white">
<div class="col col-2">
<h1>What is npm?</h1>
<p>Use npm to install, share, and distribute code; manage dependencies in your projects; and share & receive feedback with others.</p>
<a href="#" class="button button-what-is-npm">Install npm</a>
</div>

</div>
</section>
<section id="section3" class="center center-text">
<div class="section3">
<h1>What can you make with 800,000 building blocks?</h1>
<p>The npm registry hosts the world’s largest collection of free, reusable code.</p>
</div>
<div class="section3">
<div class="col col-3">
<img src="images/binoculars.svg" alt="binoculars">
<h2>Find</h2>
<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="#">Ember</a>.</p>
</div>
<div class="col col-3 col-middle">
<img src="images/mountain-flag.svg" alt="mountain-flag">
<h2>Discover</h2>
<p>Packages for mobile, IoT, front end, back end, robotics… everything you need to start building amazing things.</p>
</div>
<div class="col col-3">
<img src="images/backpack.svg" alt="backpack">
<h2>Build</h2>
<p>Assemble packages like building blocks to quickly develop awesome new projects.</p>
</div>
</div>
<div class="clearfix">
<div class="section3">
</div>
</div>
</section>
</body>

</html>
173 changes: 173 additions & 0 deletions starter-code/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
* {
margin: 0;
padding: 0;
}

body {
font-family: "Fira Mono", "Andale Mono", "Consolas", monospace;
}

h1 {
font-size: 2.4em;
margin-bottom: 20px;
}

nav {
background-color: #C12127;
color: rgba(255, 255, 255, 0.8);
padding-top: 15px;
height: 35px;
}

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

.font-white {
color: white;
}

.center {
width: 1000px;
margin: 0 auto;
}

.center-text {
text-align: center;
}

.clearfix {
clear: both;
}

.top-links {
float: right;
padding: 0;
margin: 0 20px 0 0;
}

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

.top-left {
float: left;
padding: 0;
margin: 0 10px;
}

.display-block {
display: block;
}

header {
background-color: rgb(32, 101, 136);
background-image: url('images/city-scape.svg');
height: 600px;
}

.header-content {
position: relative;
top: 10vh;
width: 350px;
}

.search-bar {
height: 50px;
}

.search-bar img {
padding: 10px;
}

.search-bar p {
margin: 15px;
}

.search {
background-color: rgb(31, 82, 111);
border: 1px solid rgb(32, 101, 136);
padding: 5px;
margin: 10px auto;
color: rgba(255, 255, 255, 0.8);
}

.search-bar input {
width: 600px;
}

.button {
display: block;
width: 200px;
margin: 20px auto;
padding: 7px;
border-radius: 20px;
border: 2px solid rgba(0, 0, 0, 0.2);
text-align: center;
font-weight: 500;
}

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

#collaboration {
background-color: rgb(39, 53, 71);
padding: 80px 0;
}

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

#what-is-npm {
background-image: url('images/forklift.svg');
background-size: cover;
height: 600px;
}

.what-is-npm {
padding-top: 200px;
}

.button-what-is-npm {
background-color: rgb(49, 68, 88);
}

#section3 h1,
#section3 h2 {
color: rgb(83, 88, 98);
}

#section3 p {
color: rgb(135, 145, 156);
margin-top: 20px;
}

#section3 a {
color: rgb(208, 74, 73);
font-weight: bold;
}

.section3 {
padding-top: 80px;
}

.col {
float: left;
}

.col-middle {
margin: 0 5%;
}

.col-2 {
width: 40%;
margin: 0 5%;
}

.col-3 {
width: 30%;
}