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
92 changes: 92 additions & 0 deletions starter-code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,100 @@
<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 href="#">♥︎</a>
<span> 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="#">suport</a></li>
</ul>
</nav>
<!-- nav above is ok -->
<header class="background-image">
<div class="top-header">
<img class="col-left img-resize" src="images/npm-logo.png" alt="npm logo">
<input class="col-left col-middle-header input" type="text" placeholder="find packages">
<div class="ul-div-align">
<ul class="col-left col-right align-anchor align-ul">
<li><a href="#" class="anchor-header">sign up</a><span class="anchor-header"> or </span><a href="#" class="anchor-header">log in</a></li>
<li><img id="bear" class="img-resize" src="images/bear-logo.png" alt="bear log"></li>
</ul>
</div>
</div>
<div class="clearfix"></div>
<div class="center-header">
<h1>Build amazing things</h1>
<p>npm is the package manager for JavaScript and the world's largest<br>
software registry. Discover packages of reusable code - and<br>
assemble them in powerful new ways.</p>
<a href="#" class="button orange">Sign up for npm</a>
</div>
</header>
<!-- header above needs work on the top bar and search icon -->
<sector id="npmorgs">
<div class="dark-background">
<div class="orgs-container">
<img src="images/collaboration.svg" alt="people and bear" width="55%">
<div class="container-right">
<h2>npm Orgs is powerful collaboration - for free</h2>
<ul class="align-left-li">
<li>Encourage code disvorery and re-use with 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">Sign up for Orgs</a>
<p class="line-space">or, <a href="#">Learn more about Orgs</a></p>
</div>
</div>
</div>
<div class="clearfix"></div>
</sector>
<sector id="install">
<div class="background-image2">
<div class="center-install font-install">
<h2>What is npm?</h2>
<p>Use npm to instal, share, and distribute code;<br>
manage dependencies in your projects; and share &<br>
receive feedback with others.</p>
<a href="#" class="button blue">Install npm</a>
</div>
</div>
</sector>
<sector id="about">
<div class="about">
<div class="center center-text">
<h2 class="font-about">What can you make with 475,000 building blocks?</h2>
<p>The npm registry hosts the world's largest collection of free, reusable code.</p>
</div>
<div class="center">
<article class="service-box col col-3">
<img src="images/binoculars.svg" alt="binoculars">
<h3>Find</h3>
<p>Libraries like <a href="#">jQuery</a>, <a href="#">Bootstrap<a>, <a href="#">Reach</a>, and <a href="#">Angular</a>, and components from frameworks such as <a href="#">Ember</a>.</p>
</article>
<article class="service-box col col-3 col-middle">
<img src="images/mountain-flag.svg" alt="mountain with a flag">
<h3>Discover</h3>
<p>Packages for mobile, IoT, front end, back end, robotics... everything you need to start building amazing things.</p>
</article>
<article class="service-box col col-3">
<img src="images/backpack.svg" alt="backpack">
<h3>Build</h3>
<p>Assemble packages like building blocks to quickly develop awesome new projects.</p>
</article>
</div>
<div class="clearfix"></div>
</div>
</sector>
<!-- Your code goes here -->
</body>
</html>
295 changes: 295 additions & 0 deletions starter-code/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,295 @@
body {
font-family: sans-serif, Georgia;
margin: 0;
padding: 0;
font-size: 12px;
}

h1 {
font-size: 3.5em;
font-weight: lighter;
}

h2 {
font-size: 2em;
font-weight: lighter;
}

h3 {
font-size: 1.5em;
font-weight: bold;
}

p {
font-size: 1.3em;
font-weight: lighter;
line-height: 1.5em;
}

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

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

nav a:hover {
color: rgba(255,255,255,0.5);
}

.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 {
float: left;
margin: 0 30px;
}

header {
background: rgb(32, 101, 136);
color: white;
}

.background-image {
background-image: url(images/city-scape.svg);
background-repeat: no-repeat;
background-position: 0, 0;
background-size: cover;
width: 100%;
height: 500px;
padding-top: 30px;
position: relative;
}

.center-header {
width: 60%;
margin: 0 auto;
position: relative;
padding: 30px 0 0;
}

.top-header {
display: inline-block;
width: 100%;
margin: 0;
padding: 0;
position: relative;
top: -10px;
left: 30px;
float: right;
}

.top-header li {
float: left;
position: relative;
top: 0;
right: -40px;
}

.col-left {
float: left;
width: 10%;
}
.col-middle-header {
width: 70%;
margin: 0 2%;
}
.col-right {
width: 15%;
}

.input {
height: 30px;
box-sizing: border-box;
background: rgb(31, 82, 111);
border: 2px solid rgba(255,255,255,0.2)
}

.img-resize {
width: auto; /* you can use % */
height: 30px;
}

.align-anchor{
position: relative;
top: -20px;
right: -20px;
height: 30px;
}

.align-ul {
position: relative;
left: -30px;
}
.anchor-header {
text-align: left;
text-decoration: none;
margin: auto;
font-size: 1.5em;
color: white;
}

.ul-div-align{
margin: 0 auto;
padding-top: 10px;
}

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


.top-header-left {
float: left;
margin: 0 30px;
}

.clearfix {
clear: both;
}

.img-align {
vertical-align: middle;
}

.form-container {
width: 500px;
height: 30px;
background: rgb(31, 82, 111);
border: 1px solid rgb(31, 82, 111);
}

.dark-background {
background: rgb(39, 53, 71);
color: white;
height: 500px;
}

.orgs-container {
margin: 0 auto;
width: 60%;
padding: 100px 0;
}

.container-right {
float: right;
width: 40%;
}

#npmorgs li {
line-height: 1.5em;
font-size: 1.2em;
font-weight: lighter;
margin-bottom: 10px;
}

#npmorgs a {
text-decoration: none;
color: white;
}

.button {
font: bold;
font-size: 1.3em;
text-decoration: none;
background-color: rgb(203, 56, 55);
color: white;
padding: 10px 15px;
border-radius: 25px;
position: relative;
top: 20px;
}

.line-space {
line-height: 4em;
}

.align-left-li {
padding-left: 15px;
}

.background-image2 {
background-image: url(images/forklift.svg);
background-repeat: no-repeat;
background-position: 0, 0;
background-size: cover;
height: 400px;
padding-top: 50px;
position: relative;
top: 0px;
}

.blue {
background-color: rgb(49, 68, 88);
}
.orange {
background-color: rgb(240, 146, 51);
}

.center-install {
width: 60%;
margin: 0 auto;
position: relative;
padding: 50px 0;
}

.font-install {
color: white;
}

.font-about {
color: rgb(83, 88, 98);
}

#about p, h3{
color: rgb(135, 145, 156);
}

.service-box {
text-align: center;
margin: 50px 0;
}

.col { float: left; }

.col-3 { width: 30%; }

.col-middle { margin: 50px 5%; }

.center{
width: 60%;
margin: 0 auto;
position: relative;
padding: 0;
}

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

#about a {
text-decoration: none;
color: rgb(208, 74, 73);
}

@media only screen and (max-width: 1100px) {
#bear {
display: none;
}
}