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
Binary file added starter-code/images/magnifying-glass.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
100 changes: 100 additions & 0 deletions starter-code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,108 @@
<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="#" class="heart link">♥︎</a>
<span class="acronym">Neophobe Plebeian Mumpsimus</span>
</div>
<ul class="top-links">
<li><a href="#" class="link">npm Enterprise</a></li>
<li><a href="#" class="link">features</a></li>
<li><a href="#" class="link">pricing</a></li>
<li><a href="#" class="link">documentation</a></li>
<li><a href="#" class="link">support</a></li>
</ul>
</nav>
<header>
<div id="npm-searchbar">
<img src="images/npm-logo.png" alt="" id="npm-logo">
<input type="text" id="find-packages">
<img src="images/magnifying-glass.PNG" alt="" id="magnifying-glass">
<span id="signup">
<a href="#" class="link">sign up</a>
<span>or</span>
<a href="#" class="link">log in</a>
<img src="images/bear-logo.png" alt="" id="bear-logo">
</span>

</div>
<div class="amazing-header section-container">
<h1>Build amazing things</h1>
<p>npm is the package manager for JavaScript and the worlds's largest software registry.
Discover packages of reusable code - and assemble them in powerful new ways.
</p>
<a href="#" class="btn signup-npm">Sign up for npm </a>
</div>
</header>
<section class="first-signup">
<div class="first">
<img src="images/collaboration.svg" alt="" id="collaboration">
<div id="collaboration-content">
<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="btn signup-orgs">Sign up for Orgs</a>
<p>or, <a href="#" class="link collaboration-link">Learn more about Orgs</a></p>
</div>
</div>
</section>
<section class="second-install">
<div class="second section-container">
<h1>What is npm?</h1>
<p>Use npm to install share, and distribute code;
manage dependancies in your projects; and share & receive feedback with others.
</p>
<a href="#" class="btn install-npm">Install npm</a>
</div>
</section>
<section class="third-blocks">
<div class="third section-container">
<h1>What can you make with 475,000 building blocks?</h1>
<p>The npm registry hosts almost half a million of free, reusable code -
the largest registry in the world.
</p>
</div>
<div class="cards-container">
<div class="card">
<img src="images/binoculars.svg" alt="" class="card-image">
<h3 class="card-header">Find</h3>
<div class="card-body">Libraries like
<a href="#" class="card-link">jQuery</a>
,
<a href="#" class="card-link">Bootstrap</a>
,
<a href="#" class="card-link">React</a>
, and
<a href="#" class="card-link">Angular</a>
, and components from frameworks such as
<a href="#" class="card-link">Ember</a>
</div>
</div>
<div class="card">
<img src="images/mountain-flag.svg" alt="" class="card-image">
<h3 class="card-header">Discover</h3>
<div class="card-body">
Packages for mibile, IoT, front end, back end, robotics...
everything you need to start building amazing things.
</div>
</div>
<div class="card">
<img src="images/backpack.svg" alt="" class="card-image">
<h3 class="card-header">Build</h3>
<div class="card-body">
Assemble packages like building blicks to quickly
develop awesome new projects.
</div>
</div>
</div>
</section>
</body>
</html>
209 changes: 209 additions & 0 deletions starter-code/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
* {
margin: 0; padding: 0;
}
nav {
background-color: #C12127;
color: rgba(255,255,255,0.8);
padding: 10px 0 10px 0;
height: auto;
display: flex;
justify-content: space-between;
}

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

}
.top-left {
margin: 0 0 0 8px;
}

.top-links {
display: inline-block;
padding: 0;
margin: 0 20px 0 0;
}
.link {
text-decoration: none;
color: rgba(255,255,255,0.8);
}
.link:hover{
color:rgb(157, 164, 169);
}
.top-links li {
display: inline-block;
margin: 0 10px;
}
.acronym {
margin: 0 0 0 8px;
}

.btn {
color: white;
text-decoration: none;
border-radius: 1rem;
display: inline-block;
text-align: center;
padding: .375rem .75rem;
margin: 1rem 0;

}
.signup-npm {
background-color: rgb(240, 146, 51);
border: 2px solid rgb(240, 146, 51);
}

.signup-npm:hover {
background-color: rgb(216, 131, 46);
border-color: rgb(216, 131, 46);
}

header {
background-color: #215c7d;
padding-bottom: 10px;
background-image: url(images/city-scape.svg);
background-size: cover;
background-repeat: no-repeat;
height: 370px;

}
#npm-searchbar {
display: flex;
justify-content: space-between;
padding-top: 10px;

}
#npm-searchbar img {
height: 40px;
width: auto;
}
#npm-logo {
padding-top: 4px;
margin-left: 1rem;
}
#magnifying-glass {
height: 46px !important;
}
input[type="text"] {
background-color: #1F526F;
border: 2px solid rgb(64, 108, 132);
flex-grow: 4;
color: white;
margin-left: 10px;

}
#signup {
color: rgba(255,255,255,0.8);
display: flex;
align-items: center;
justify-content: space-evenly;
padding: 3px;
}
#signup span {
padding: 0 3px;
}
.first-signup {
background-color: #273547;
color: white;
min-height: 370px;
height: auto;
}
.amazing-header {
color: white;
}
.section-container {
width: 620px;
margin: 0 auto;
padding-top: 2rem;
}
.first {
display: flex;
justify-content: center;
}
#collaboration {
height: 250px;
margin: 1rem;
}
#collaboration-content {
max-width: 300px;
float: right;
margin: 1rem;
}
.signup-orgs {
background-color: rgb(203, 56, 55);
border: 2px solid rgb(203, 56, 55);
}
.signup-orgs:hover {
background-color: rgb(154, 43, 42);
border-color:rgb(154, 43, 42);
}
.collaboration-link {
text-decoration: none;
color: white;
font-weight: bold;
margin: 0;
}
.first-signup {
padding-top: 1.5rem;
height: 400px;
}
.first-signup p {
margin: 0;
}
.first-signup li {
line-height: 1.7;
}
.second-install {
background-image: url(images/forklift.svg);
background-size: cover;
background-repeat: no-repeat;
height: 370px;
color: white;
}
.install-npm {
background-color: rgb(49, 68, 88);
border: 2px solid rgb(49, 68, 88);
}
.install-npm:hover {
background-color: rgb(41, 52, 64);
border-color: 2px solid rgb(49, 68, 88);
}

.second p{
width: 300px;
padding: 1rem 0;
}
.third{
text-align: center;
line-height: 2;
}
.third h1{
color: rgb(83, 88, 98);
}
.third p{
color: rgb(135, 145, 156);
}
.cards-container {
margin: 2rem 10rem 4rem 10rem;
display:flex;
justify-content: center;
}
.card {
margin: 0 2rem;
width: 220px;
text-align: center;
}
.card h3 {
margin: 1rem 0;
}
.card-link{
text-decoration: none;
color: rgb(208, 74, 73);
}
.card-link:hover {
color: rgb(119, 35, 81);
}