Skip to content

lab-html-exercise | Matthew Kramer - completed #3982

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 7 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
75 changes: 75 additions & 0 deletions HTML 1 | <header> & <nav>.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<header>
<link rel="stylesheet" href="style.css">
<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="#"> Products </a></li>
<li><a href="#"> Solutions </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="main-header">
<img class="logo" src="images/npm-logo.png" alt="NPM Logo" />
<form class="search-form">
<input type="text" placeholder="Search packages" />
<button type="submit">Search</button>
</form>
<div class="header-buttons">
<a href="#" class="btn-login">Login</a>
<a href="#" class="btn-signup">Sign Up</a>
</div>
</header>
<body>
<section id="section1">
<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="button-row">
<button class="see-plans-btn">See plans</button>
<button class="join-btn">Join for free</button>
</div>
</section>

<section id="section2">
<img src="images/triangle-hexagon.svg" alt="Decorative shapes" />
<h2>Bring the best of open source to your company</h2>
<h3>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.</h3>

<section id="section3">
<div class="features-section3">
<div class="feature-box">
<img src="images/cursor-icon.svg" alt="Zero configuration" />
<h3>Zero configuration</h3>
<p>Create an org, add your team, and start collaborating. Nothing to configure, set up, or manage.</p>
</div>
<div class="feature-box">
<img src="images/people-icon.svg" alt="Team management" />
<h3>Team management</h3>
<p>Control who has access to what modules within your team namespace using straightforward team management capabilities.</p>
</div>
<div class="feature-box">
<img src="images/features-icon.svg" alt="Familiar features" />
<h3>Familiar features</h3>
<p>npm Orgs has 100% parity with all the public npm registry features your developers already use.</p>
</div>
<div class="feature-box">
<img src="images/audit-icon.svg" alt="npm audit" />
<h3>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>
<button class="create-org-btn">Create an Org</button>
</section>
</body>
</html>
220 changes: 220 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
@import url('https://fonts.googleapis.com/css?family=Poppins');

body {
font-family: 'Poppins';
}

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;
}

.blackHeart {
width: 20px;
margin-right: 1rem;
}
.search-form {
display: flex;
align-items: center;
background: rgba(0,0,0,.05);
border-radius: 4px;
padding: 4px 8px;
flex: 1;
}

.search-form input {
border: none;
background: rgba(0,0,0,.05);
padding: 8px;
outline: none;
flex: 1;
}

.search-form button {
background: #fb3e44;
color: white;
display: flex;
border: none;
padding: 8px 16px;
margin-left: 8px;
cursor: pointer;
}

.btn-login, .btn-signup {
text-decoration: none;
color: black;
padding: 8px 16px;
font-weight: 500;
}

.btn-login {
border: solid;
padding: 8px, 16px;
}

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

#section1 h1{
font-size: 72px;
}

#section1 article{
width: 500px;
text-align: center;
}

.see-plans-btn {
background: #FB3B49;
color: white;
box-shadow: 8px 8px 0 rgba(251,59,73,.2);
padding: 12px 32px;
font-size: 16px;
border: none;
border-radius: 6px;
margin: 20px 10px 0 0;
cursor: pointer;
}

.join-btn {
text-decoration: none;
color: black;
padding: 8px 16px;
font-weight: 700;
background: none;
border: none;
}

#section2 {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 600px;
padding: 60px 20px;
position: relative;
}

#section2 > img {
position: absolute;
top: 40px;
width: 200px;
z-index: 1;
}

#section2 h2 {
background-color: rgba(255,204,53,.4);
transform: skew(9deg,0deg);
font-style: italic;
font-size: 36px;
font-weight: bold;
text-align: center;
padding: 20px 30px;
margin: 40px 0 30px 0;
max-width: 900px;
line-height: 1.2;
}

#section2 h3 {
font-size: 16px;
font-weight: 400;
text-align: center;
max-width: 650px;
margin: 0 0 50px 0;
line-height: 1.5;
color: #333;
}

#section3 {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 60px 20px;

}

.features-section3 {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 30px;
max-width: 1200px;
margin-bottom: 60px;
width: 100%;
}

.feature-box {
display: flex;
flex-direction: column;
align-items: flex-start;
background: white;
border: 2px solid #ED1C24;
border-radius: 8px;
padding: 25px;
flex: 1;
max-width: 280px;
height: 300px;
}

.feature-box img {
width: 40px;
height: 40px;
margin-bottom: 20px;
}

#section3 .feature-box h3 {
color: #ED1C24;
font-size: 18px;
font-weight: 600;
border: 2px solid #ED1C24;
padding: 8px 12px;
border-radius: 4px;
display: inline-block;
}

.feature-box p {
font-size: 14px;
line-height: 1.5;
margin: 0;
color: #333;
text-align: left;
}

.create-org-btn {
background: black;
color: white;
box-shadow: 8px 8px 0 rgba(128,83,35,.2);
padding: 15px 40px;
font-size: 18px;
font-weight: 600;
border: none;
border-radius: 6px;
cursor: pointer;
text-transform: none;
}