Skip to content
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

Updates index.html with proper document structure & Added styles.css #7

Open
wants to merge 3 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
156 changes: 154 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,161 @@
NPM Clone Nifty Penguin Magic npm Enterprise Products Solutions Resources Docs Support Search Join Log In Build amazing
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>npm | Homepage</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<!-- header -->
<header>
<!-- logo and navogation-->
<div id="topheading">
<!-- logo -->
<div>
<img
class="blackHeart"
src="images/black-heart.png"
alt="black heart"
/>
<span> Nifty Penguin Magic </span>
</div>
<!-- navigation -->
<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>
<!-- sub header - logo, search, button -->
<div id="subheading">
<!-- add logo, search bar and buttons (or links and style them as buttons later) -->
<img class="npmlogo" src="images/npm-logo.png" alt="NPM Logo" />

<form action="#" method="post" id="search_bar">
<img
src="images/magnifying-glass.png"
alt="Search"
class="search_icon"
/>
<input
type="search"
name=""
id="search_box"
placeholder="Search packages"
/>
<input type="submit" value="Search" id="search-btn" />
</form>

<a href="#" class="bordered heading-btn">Join</a>
<a href="#" class="heading-btn">Log In</a>
</div>
</header>
<!-- section for build amazing things heading-->
<section class="base content-1">
<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="plans">
<a href="#" class="heading-btn2 content1-btn"> See plans</a>
<a href="#" class="heading-btn2 content2-btn"> Join for free</a>
</div>
</section>
<!-- section for logo with sub heading from section 1 -->
<section class="base content-2">
<img
src="images/triangle-hexagon.svg"
alt=""
class="svgicon"
height="150px"
width="150px"
/>

<h4>Bring the best of open source to your company</h4>
<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 with 4 divs and a centered button before footer part -->
<section class="last-section">
<div class="box-container">
<div class="box">
<img
src="images/zero-configuration.svg"
alt="Zero Configuration"
height="50"
width="50"
/>
<h5 class="box-heading">Zero configuration</h5>
Create an org, add your team, and start collaborating. Nothing to
configure, set up, or manage.
</div>
<div class="box">
<img
src="images/team-management.svg"
alt="team management"
height="50"
width="50"
/>

<h5 class="box-heading">Team management</h5>
Control who has access to what modules within your team namespace
using straightforward team management capabilities.
</div>
<div class="box">
<img
src="images/familiar-features.svg"
alt="familiar features"
height="50"
width="50"
/>

<h5 class="box-heading">Familiar features</h5>
npm Orgs has 100% parity with all the public npm registry features
your developers already use.
</div>
<div class="box">
<img
src="images/npm-audit.svg"
alt="NPM Audit"
height="50"
width="50"
/>

<h5 class="box-heading">npm audit</h5>
Enjoy the security auditing features built into the npm client, a
zero-friction way to make open source software safer. Create an Org
</div>
</div>
<div class="orgbtn-container">
<a href="#" class="org-btn">Create an Org</a>
</div>
</section>
</body>
</html>






<!-- 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
auditing features built into the npm client, a zero-friction way to make open source software safer. Create an Org -->

201 changes: 201 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
@import url("https://fonts.googleapis.com/css?family=Poppins");

* {
margin: 0 auto;
padding: 0;
box-sizing: border-box;
}

body {
font-family: "Poppins";
}

header > div#topheading {
padding: 20px 0;
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;
}

.npmlogo {
width: 90px;
}

.search_icon {
height: 20px;
padding: 15px;
position: absolute;
}

header > #subheading {
padding: 15px 0;

display: flex;
flex-wrap: wrap;

column-gap: 10px;
border-bottom: 1px solid lightgray;
}
#search_bar {
display: inline-block;
justify-content: space-between;
align-items: center;
}
#search_bar input {
font-size: 1.2em;
border: none;
outline: none;
}

#search_bar input#search_box {
background-color: rgba(0, 0, 0, 0.05);
padding: 15px 15px 15px 50px;
width: 500px;
}

#search_bar input#search-btn {
background-color: #fb3e44;
color: #fff;
padding: 15px;
}

.subhead-div-1 {
display: flex;
justify-content: space-around;
padding: 0 15px;
}

/* link styling */
a {
text-decoration: none;
color: #5c5c5c;
}

a.heading-btn {
padding: 10px 20px;
margin: 0px 5px;
}
.bordered {
border: 1px solid #5c5c5c;
font-weight: bold;
}

.base {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
flex-direction: column;
}
.base h1 {
text-align: center;
}
section.content-1 {
background-color: rgba(232, 217, 217, 0.3);
height: 600px;
}

section.content-1 > article,
section.content-2 > article,
section.content-1 > div {
width: 600px;
text-align: center;
}
section.content-1 > h1 {
font-size: 5em;
}
section.content-1 > .plans {
margin: 20px 0;
display: flex;
justify-content: center;
align-items: center;
}
.heading-btn2 {
padding: 15px 70px;
}
section.content-1 > div > .content1-btn {
background-color: #fb3b49;
color: #fff;
box-shadow: 8px 8px 0 rgba(251, 59, 73, 0.2);
}
section.content-1 > div > .content2-btn {
background-color: #ffffff;
}

section.content-2 {
height: 400px;
}
section.content-2 > img {
size: 12px;
}
section.content-2 > h4 {
background-color: rgba(255, 204, 53, 0.4);
transform: skew(9deg, 0deg);
font-style: italic;
margin: 0 10px;
font-size: 1.7em;
padding: 0 15px;
}

/* LAST */

.last-section {
width: 80%;
height: 550px;
margin-top: 100px;
}

.last-section > .box-container {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 10px;
margin-bottom: 20px;
}
.last-section > div > .box {
padding: 15px;
height: 400px;
width: 300px;
/* border: 1px solid #000; */
}
.box-heading {
color: #ed1c24;
padding: 5px 0;
margin-bottom: 15px;
font-size: 1.1em;
}
.last-section > .orgbtn-container {
display: flex;
justify-content: center;
align-items: center;
margin: 50px auto;

}
.last-section > .orgbtn-container > .org-btn {
padding: 15px 120px ;
background-color: #000;
color: #fff;
box-shadow: 8px 8px 0 rgba(128, 83, 35, 0.2);
}