Skip to content

html-lab-Alele-Chigozie #4

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 5 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
102 changes: 93 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,93 @@
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">
<link rel="stylesheet" href="style/style.css">
<title>Lab HTML Exercise</title>
</head>
<body>
<header>
<div id="header-top">
<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="search-input-content">
<img class="site-log" src="images/npm-logo.png" alt="site-log">
<div id="search-iput">
<!-- <img class="site-log" src="images/magnifying-glass.png" alt="magnifying-glass"> -->
<div class="search">
<input type="text" placeholder="Search">
<button>Search</button>
</div>
</div>
<div id="header-links">
<a href="">Join</a>
</div>
<div class="header-links">
<a href="">Login</a>
</div>
</div>

</header>

<section class="main">
<h1>Build amazing things</h1>
<article class="article">
Essential JavaScript development tools that help you <br> go to market faster and build powerful applications <br> using modern open source code.
</article>
<div>
<button>See Plans</button>
<a href="">Join for Free</a>
</div>
</section>
<div class="hex-image">
<img src="images/triangle-hexagon.svg" alt="triangle-hexagon">
</div>
<section class="section1">

<h2>Bring the best of open source to your company</h2>
<article class="article">
npm is the tool used by over 11,000,000 JavaScript developers <br> around the world. Your developers already use it. Your company depends on it. Create an Org and get more out of the tools your <br> team already knows and loves.
</article>
</section>

<section class="flex">
<div class="flexi">
<span class="flexi-image"><img src="images/zero-configuration.svg" alt="zero-configuration"></span>
<h2>Zero Configuration</h2>
<p>Create an org, add your team, and start collaborating. Nothing to configure, set up, or manage.</p>
</div>
<div class="flexi">
<span class="flexi-image"><img src="images/team-management.svg" alt="team-management"></span>
<h2>Team Management</h2>
<p>Control who has access to what modules within your team namespace using straightforward team management capabilities.</p>
</div>
<div class="flexi">
<span class="flexi-image"><img src="images/familiar-features.svg" alt="familiar-features"></span>
<h2>Familiar Features</h2>
<p>npm Orgs has 100% parity with all the public npm registry features your developers already use.</p>
</div>
<div class="flexi">
<span class="flexi-image"><img src="images/npm-audit.svg" alt="npm-audit"></span>
<h2>npm audit</h2>
<p>Enjoy the security auditing features built into the npm client, a zero-friction way to make open source software safer.</p>
</div>

</section>
<div class="black-button">Create an Org</div>
</body>
</html>
252 changes: 252 additions & 0 deletions style/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,252 @@
@import url(https://fonts.google.com);
body{
font-family: 'Poppins';
}

header > div{
padding: 0 25px;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid light;
}
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;
}

/* Styles for the search input content */
.search-input-content {
background-color: rgba(0,0,0,.05);
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 25px;
border-bottom: 1px solid light;
background-color: #faf7f7;
color: #fff;
box-sizing: border-box;
}

/* Styles for the logo */
.search-input-content .site-log {
width: 80px;
margin-right: 1rem;
}

/* Styles for the search input section */
#search-iput {
background-color: rgba(0,0,0,.05);
display: flex;
align-items: center;
flex: 1;
}

/* Styles for the magnifying glass image */
#search-iput .site-log {
width: 30px;
margin-right: 1rem;
}



#search-iput .search input[type="text"] {
flex: 2;
padding: 15px;
border: none;
border-radius: 5px;
background-image: url(../images/magnifying-glass.png);
background-position: 10px 10px;
background-size: 20px;
background-repeat: no-repeat;




}

#search-iput button {
background-color: #fb3e44;
color: #fff;
border: none;
padding: 8px 15px;
border-radius: 5px;
box-sizing: border-box;
resize: none;
height: 40px;
width: 100px;

}
::placeholder{
padding: 40px;
font-size: 20px;
}
/* Style for the "Join" link */
#header-links a {
text-decoration: none;
color: black;
border: 1px solid black;
padding: 5px 10px;
border-radius: 5px;
margin-right: 1rem;
}

/* Style for the "Login" link */
.header-links a {
text-decoration: none;
color: black;
padding: 5px 10px;
border-radius: 5px;
margin-left: 1rem;
}


/* Center the text within the main section */
.main {
text-align: center;
padding: 120px;
background-color: rgba(232,217,217,.3);
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
max-width: 1920px;
height: 600px;

}

/* Style the heading */
.main h1 {
font-size: 60px;
margin-bottom: 10px;
padding: 20px;


}

/* Style the article content */
.main .article {
font-size: 18px;
margin-bottom: 20px;
padding: 20px;
}

/* Style the button */
.main button {
background-color: red;
color: #fff;
border: none;
padding: 10px 20px;
border-radius: 5px;
margin-right: 10px;
box-shadow: 8px 8px 0 rgba(251, 59, 73, 0.2); /* Add the box shadow */
}


/* Style the "Join for Free" link */
.main a {
text-decoration: none;
color: black;
margin-left: 10px;
}

/* Center the content within the section */
section {
text-align: center;
padding: 20px;
}
/* Style the container of section1 */
.section1 {
display: flex;
justify-content: flex-start;
align-items: center;
margin: 20px 0;

/* Add a background color with skew transformation */
background-color: rgba(255, 204, 53, 0.4);
transform: skew(-9deg, 0deg);
font-style: italic;
padding: 20px;
}

/* Style the image within section1 */
.hex-image {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}

.hex-image img {
max-width: 200px;
padding: 50px;
}
/* Style the heading within section1 */
.section1 h2 {
font-size: 24px;
margin: 0;
color: #333; /* Text color */
}

/* Style the article content within section1 */
.section1 .article {
font-size: 16px;
margin: 0;
color: #333; /* Text color */
}

/* Container for the flex items */
.flex {
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
gap: 20px;
}

/* Individual flex items */
.flexi {
flex: 1;
text-align: center;
border: 1px solid red;
padding: 20px;
position: relative;
}

/* Images floated to the top left */
.flexi .flexi-image img {
width: 40px;
position: absolute;
top: 0;
left: 0;
margin: 10px;
}

/* Red headings */
.flexi h2 {
color: red;
}

/* Black button */
.black-button {
text-align: center;
background-color: black;
color: white;
padding: 10px 20px;
width: 150px;
margin: 20px auto;
border: none;
border-radius: 5px;
}