Skip to content

html-lab-exercise-brett #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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: 82 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,82 @@
NPM Clone Nifty Penguin Magic npm Enterprise Products Solutions Resources Docs Support Search Join Log In Build amazing
things Essential JavaScript development tools that help you go to market faster and build powerful applications using
modern open source code. See plans Join for free Bring the best of open source to your company npm is the tool used by
over 11,000,000 JavaScript developers around the world. Your developers already use it. Your company depends on it.
Create an Org and get more out of the tools your team already knows and loves. Zero configuration Create an org, add
your team, and start collaborating. Nothing to configure, set up, or manage. Team management Control who has access to
what modules within your team namespace using straightforward team management capabilities. Familiar features npm Orgs
has 100% parity with all the public npm registry features your developers already use. npm audit Enjoy the security
auditing features built into the npm client, a zero-friction way to make open source software safer. Create an Org
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NPM Clone </title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<div>
<div>
<img class="blackHeart" src="/images/black-heart.png" alt="Black Heart">
<span>Nifty Penguin Magic</span>
</div>
<nav>
<ul>
<li><a href="#">npm Enterprise</a></li>
<li><a href="#">Solutions</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">Resources</a></li>
<li><a href="#">Docs</a></li>
<li><a href="#">Support</a></li>
</ul>
</nav>
</div>
<div class="searchArea">
<img class="npmLogo" src="/images/npm-logo.png" alt="NPM Logo">

<form action="#" method="post" id="search">
<label for="search"><img src="/images/magnifying-glass.png" alt="Search Icon"></label>
<input type="search" name="search" placeholder="Search Packages">
<button type="submit">Search</button>
</form>

<a href="#" class="join"><button class="joinButton">Join</button></a>
<a href="#" class="logIn"><button class="logInButton">Log In</button></a>
</div>
</header>

<section class="landing">
<h1>Build amazing things</h1>
<article>Essential JavaScript development tools that help you go to market faster and build powerful applications using modern open source code.</article>
<div class="landingLinks">
<a href="#" class="plansButton" style="color: white">See plans</a>
<a href="#" class="landingJoinButton">Join for free</a>
</div>
</section>

<section class="about">
<img src="images/triangle-hexagon.svg" alt="Triangle Hexagon Image">
<h2>Bring the best of open source to your company</h2>
<article>npm is the tool used by over 11,000,000 JavaScript developers around the world. Your developers already use it. Your company depends on it. Create an Org and get more out of the tools your team already knows and loves.</article>
</section>

<section class="info">
<div class="cardContainer">
<div class="card">
<img src="images/zero-configuration.svg" alt="zero configuration">
<h3 class="cardHeader">Zero configuration </h3>
<p>Create an org, add your team, and start collaborating. Nothing to configure, set up, or manage.</p>
</div>
<div class="card">
<img src="images/team-management.svg" alt="team management">
<h3 class="cardHeader">Team management</h3>
<p>Control who has access to what modules within your team namespace using straightforward team management capabilities.</p>
</div>
<div class="card">
<img src="images/familiar-features.svg" alt="Familiar features">
<h3 class="cardHeader">Familiar features</h3>
<p>npm Orgs has 100% parity with all the public npm registry features your developers already use.</p>
</div>
<div class="card">
<img src="images/npm-audit.svg" alt="npm audit">
<h3 class="cardHeader">npm audit</h3>
<p>Enjoy the security auditing features built into the npm client, a zero-friction way to make open source software safer.</p>
</div>
</div>
<a href="#" class="createButton">Create an Org</a>
</section>
</body>
</html>
227 changes: 227 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@
@import url('https://fonts.googleapis.com/css?family=Poppins');

body {
font-family: 'Poppins', 'serif';
}

header > div {
padding: 0 25px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid lightgray;
}


nav {
width: 600px;
}

nav ul {
list-style: none;
display: flex;
justify-content: space-between;
align-items: center;
}

nav a {
text-decoration: none;
color: black;
}

nav ul li a:hover {
background-color: lightgray;
}

.blackHeart {
width: 20px;
margin-right: 1rem;
}

.npmLogo {
width: 75px;
}

form {
display: flex;
align-items: center;
flex-grow: 1;
margin-right: 20px;
padding: 10px 20px;
}

form label {
padding: 8px;
background-color: rgba(0, 0, 0, .05);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}

form label img {
width: 15px;
height: 16px;
}

form input {
width: 100%;
padding: 8px;
border: none;
box-sizing: border-box;
font-weight: bold;
background-color: rgba(0, 0, 0, .05);
}

form input:focus {
outline: none;
}

form button {
padding: 8px 12px;
border: none;
background-color: #fb3e44;
color: white;
font-weight: bold;
cursor: pointer;
}

form button:hover {
background-color: #ad050a;
}

.join button, .logIn button {
padding: 6px 20px;
background-color: white;
font-weight: bold;
cursor: pointer;
margin-left: 10px;
}

.joinButton {
border: 1px solid black;
}

.logInButton {
border: none;
}

.join button:hover, .logIn button:hover {
background-color: lightgray;
}

.landing {
height: 600px;
background-color: rgba(232,217,217,.3);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.landing h1 {
font-size: 50px;
}

.landing article {
width: 400px;
}

.landingLinks {
margin-top: 20px;
width: 400px;
display: flex;
justify-content: space-around;
}

.landing a {
text-decoration: none;
color: black;
padding: 10px 40px;
}

.landingJoinButton:hover {
background-color: lightgray;
}

.plansButton {
background-color: #fb3b49;
box-shadow: 8px 8px 0 rgba(251,59,73,.2);
color: white;
}

.plansButton:hover {
background-color: #ad050a;
}

.about {
height: 600px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.about img {
width: 200px;
margin: 20px;
}

.about h2 {
background-color: rgba(255,204,53,.4);
transform: skew(9deg,0deg);
font-style: italic;
padding: 0 30px;
font-size: 35px;
}

.about article {
width: 650px;
text-align: center;
}

.info {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 50px;
}

.info img {
width: 30px;
}

.cardContainer {
display: flex;
width: 75%;
margin: 50px 0;
}

.card {
margin: 10px;
padding: 10px;
}

.cardHeader {
color: #ED1C24;
margin-top: 5px;
font-size: 14px;
}

.card p {
font-size: 12px;
}

.createButton {
box-shadow: 8px 8px 0 rgba(128,83,35,.2);
color: white;
background-color: black;
text-decoration: none;
padding: 10px 75px;
}

.createButton:hover {
background-color: #706e6e;
}