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: 91 additions & 0 deletions starter-code/index.html
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,100 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet">
<title>npm</title>
</head>
<body>
<!-- Your code goes here -->
<nav class="nav-bar">
<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>
<header class="header">
<div class="header-top">
<a href="#" class="logo"><img src="images/npm-logo.png" alt="Npm logo" height="60px" width="auto"></a>
<div class="search-container">
<form action="/action_page.php">
<input type="text" name="search" placeholder="find packages">
<a href="#"><i class="fa fa-search"></i></a>
</form>
</div>
<a href="#" class="sign-up">sign up or login <img src="images/bear-logo.png" alt="Sign up or login" width="auto" height="30px;"></a>
</div>
<div class="header-bottom">
<h1>Build amazing things</h1>
<aside>
<p class="text">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>
<a href="link-signup" class="btn-1">Sign up for npm</a>
</aside>
</div>
</header>
<!--Collaboration section-->
<section id="section-1">
<div class="container">
<article class="collaboration col col-2">
<img src="images/collaboration.svg" alt="collaboration" width="100%" height="350px">
</article>
<article class="collaboration col col-2">
<h2>npm Orgs is powerful <br/>colllaboration – for free</h2>
<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="btn-2">Sign up for Orgs</a>
<a href="#" class="link-info">or Learn more about Orgs</a>
</article>
<div class="clearfix"></div>
</div>
</section>
<!--What is a NPM-->
<section id="section-2">
<div class="container">
<div class="col col-2">
<h2>What is npm?</h2>
<p class="text">Use npm to install, share, and distribute code; manage dependencies in your projects; and share & receive feedback with others.</p>
<a href="#" class="btn-3">Install npm</a>
</div>
</div>
</section>
<!--what can you make-->
<section id="section-3">
<div class="container">
<div>
<h3>What can you make with 700,000 building blocks?</h3>
<p class="featured-text">The npm registry hosts almost half a milion of free, reusable code – the largest software registry in the world.</p>
</div>
<div>
<article class="col col-3">
<img src="images/binoculars.svg" alt="Find">
<h4>Find</h4>
<p>Libraries like <a href="#" target="_blank">jQuery</a>, <a href="_blank">Bootstrap</a>, <a href="#" target="_blank">React</a>, and <a href="_blank">Angular</a> and components from frameworks such as <a href="_blank">Ember</a>.</p>
</article>
<article class="col col-3 col-middle">
<img src="images/mountain-flag.svg" alt="Discover">
<h4>Discover</h4>
<p>Packages for mobile, IoT, front end, back end, robotics... everything you need to start building amazing things.</p>
</article>
<article class="col col-3">
<img src="images/backpack.svg" alt="Build">
<h4>Build</h4>
<p>Assemble packages like building blocks to quickly develop awesome new projects.</p>
</article>
<div class="clearfix"></div>
</div>
</div>
</section>
</body>
</html>
247 changes: 247 additions & 0 deletions starter-code/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
/*Reset styles*/
*{
padding:0;
margin:0;
}
/*Global Styles*/
body{
font-family: 'Open Sans', sans-serif;
}
h1{
font-size:4em;
color:white;
font-weight:100;
}
h2{
font-size:2.8em;
color:white;
font-weight:100;
line-height:1.2em;
margin-bottom:40px;
}
h3{
font-size:2em;
color:rgb(83, 88, 98);
font-weight:600;
line-height:1.2em;
margin-bottom:20px;
text-align:center;
}
h4{
font-size:1.4em;
color:rgb(83, 88, 98);
font-weight:600;
line-height:1.6em;
margin-bottom:20px;
text-align:center;
}
.container{
margin:0 auto;
width:80%;
}
.col{
float:left;
}
.col-3{
width:30%;
}
.col-2{
width:50%;
}
.col-middle{
margin:auto 5%;
}
.clearfix{
clear:both;
}
.text{
font-size:1.4em;
color:white;
font-weight:100;
line-height:1.6em;
}
.featured-text{
font-size:1.4em;
color:rgb(83, 88, 98);
font-weight:100;
text-align:center;
}
.btn-1{
background-color:rgb(240, 146, 51);
border-radius: 25px;
color:white;
font-size:1.4em;
letter-spacing: 0.5px;
text-align:center;
text-decoration:none;
display:inline-block;
margin:40px auto;
padding:10px 25px;
}
.btn-2{
background-color:rgb(203, 56, 55);
border-radius: 25px;
color:white;
font-size:1.4em;
letter-spacing: 0.5px;
text-align:center;
text-decoration:none;
display:inline-block;
margin:40px auto;
padding:10px 25px;
}
.btn-3{
background-color:rgb(49, 68, 88);
border-radius: 25px;
color:white;
font-size:1.4em;
letter-spacing: 0.5px;
text-align:center;
text-decoration:none;
display:inline-block;
margin:40px auto;
padding:10px 25px;
}
/*Navigation*/
.nav-bar{
background-color:#C12127;
color: rgba(255,255,255,0.8);
padding-top:15px;
height:40px;
}
.nav-bar a{
color: rgba(255,255,255,0.8);
text-decoration: none;
}
.top-links{
display:inline-block;
float:right;
padding:0;
margin:0 20px 0 0;
}
.top-links li{
display:inline-block;
margin:0 10px;
}
.top-left{
display:inline-block;
float:left;
}
.top-left .heart{
padding:0 20px;
}
/*Header*/
.header{
background: url('images/city-scape.svg') right bottom no-repeat rgb(32, 101, 136);
background-size:cover;
height:650px;
position:relative;
padding:15px 20px;
}
/*Header-top*/
.header-top .search-container{
position:absolute;
display:inline-block;
margin:0px 10px 11px 30px;
width:80%;
}
.header-top .search-container input[type=text]{
font-size:1.2em;
padding:8px 14px;
margin:0;
border:1px solid rgba(255,255,255,0.2);
background-color: rgb(31, 82, 111);
color:rgba(255,255,255,0.2);
width:95%;
height:40px;
outline:none;
}
.header-top .search-container a{
margin:0;
background-color: rgb(31, 82, 111);
border:1px solid rgba(255,255,255,0.2);
color:rgba(255,255,255,0.2);
position:absolute;
margin-left:-1px;
padding:8px 14px;
height:40px;
}
.header-top .search-container a i{
position:relative;
top:4px;
font-size:1.4em;
color:white;
line-height:1.4em;
}
.header-top .sign-up{
width:20%;
position:relative;
float:right;
color:#ffffff;
font-size:1.2em;
font-weight:100;
text-decoration: none;
line-height:3em;
text-align:right;
}
.header-top .sign-up img{
vertical-align:middle;
}
/*Header-bottom*/
.header-bottom{
margin:0 auto;
position:absolute;
left:10%;
bottom:10vh;
}
.header-bottom aside{
width:45%;
margin-top:40px;
}
/*Collaboration section*/
#section-1{
background-color:rgb(39, 53, 71);
padding:100px 0;
}
.collaboration ul{
font-size:1.4em;
font-weight:100;
margin-left:25px;
color:white;
line-height:1.8em;
letter-spacing:0.5px;
}
.collaboration .link-info{
color:white;
text-decoration:none;
display:block;
margin-top:-20px;
}
.collaboration .link-info:hover{
text-decoration:underline;
}
/*What is a NPM*/
#section-2{
background: url('images/forklift.svg') right bottom no-repeat rgb(32, 101, 136);
background-size:cover;
height:450px;
position:relative;
padding:100px 0;
}
/*What can you make*/
#section-3{
padding:100px 0;
}
#section-3 article{
margin-top:40px;
text-align:center;
}
#section-3 article p{
color:rgb(135, 145, 156);
font-size:1.2em;
}
#section-3 article a{
color:rgb(208, 74, 73);
text-decoration:none;
}