-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit c59a071
Showing
9 changed files
with
953 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const hamburger = document.querySelector('.header .nav-bar .nav-list .hamburger'); | ||
const mobile_menu = document.querySelector('.header .nav-bar .nav-list ul'); | ||
const menu_item = document.querySelectorAll('.header .nav-bar .nav-list ul li a'); | ||
const header = document.querySelector('.header.container'); | ||
|
||
hamburger.addEventListener('click', () => { | ||
hamburger.classList.toggle('active'); | ||
mobile_menu.classList.toggle('active'); | ||
}); | ||
|
||
document.addEventListener('scroll', () => { | ||
var scroll_position = window.scrollY; | ||
if (scroll_position > 250) { | ||
header.style.backgroundColor = '#29323c'; | ||
} else { | ||
header.style.backgroundColor = 'transparent'; | ||
} | ||
}); | ||
|
||
menu_item.forEach((item) => { | ||
item.addEventListener('click', () => { | ||
hamburger.classList.toggle('active'); | ||
mobile_menu.classList.toggle('active'); | ||
}); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,217 @@ | ||
<!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.css"> | ||
<title>My Website</title> | ||
</head> | ||
<body> | ||
<!-- Header --> | ||
<section id="header"> | ||
<div class="header container"> | ||
<div class="nav-bar"> | ||
<div class="brand"> | ||
<a href="#hero"><h1><span>U</span>sha <span>N</span>amdeo</h1></a> | ||
</div> | ||
<div class="nav-list"> | ||
<div class="hamburger"><div class="bar"></div></div> | ||
<ul> | ||
<li><a href="#hero" data-after="Home">Home</a></li> | ||
<li><a href="#services" data-after="Service">Services</a></li> | ||
<li><a href="#projects" data-after="Projects">Projects</a></li> | ||
<li><a href="#about" data-after="About">About</a></li> | ||
<li><a href="#contact" data-after="Contact">Contact</a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
<!-- End Header --> | ||
|
||
|
||
<!-- Hero Section --> | ||
<section id="hero"> | ||
<div class="hero container"> | ||
<div> | ||
<h1>Hello, <span></span></h1> | ||
<h1>My Name is <span></span></h1> | ||
<h1>Usha <span></span></h1> | ||
<a href="#projects" type="button" class="cta">Portfolio</a> | ||
</div> | ||
</div> | ||
</section> | ||
<!-- End Hero Section --> | ||
|
||
<!-- Service Section --> | ||
<section id="services"> | ||
<div class="services container"> | ||
<div class="service-top"> | ||
<h1 class="section-title">Serv<span>i</span>ces</h1> | ||
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Ipsum deleniti maiores pariatur assumenda quas magni et, doloribus quod voluptate quasi molestiae magnam officiis dolorum, dolor provident atque molestias voluptatum explicabo!</p> | ||
</div> | ||
<div class="service-bottom"> | ||
<div class="service-item"> | ||
<div class="icon"><img src="https://img.icons8.com/bubbles/100/000000/services.png"/></div> | ||
<h2>Web Design</h2> | ||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Corporis debitis rerum, magni voluptatem sed architecto placeat beatae tenetur officia quod</p> | ||
</div> | ||
<div class="service-item"> | ||
<div class="icon"><img src="https://img.icons8.com/bubbles/100/000000/services.png"/></div> | ||
<h2>Web Design</h2> | ||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Corporis debitis rerum, magni voluptatem sed architecto placeat beatae tenetur officia quod</p> | ||
</div> | ||
<div class="service-item"> | ||
<div class="icon"><img src="https://img.icons8.com/bubbles/100/000000/services.png"/></div> | ||
<h2>Web Design</h2> | ||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Corporis debitis rerum, magni voluptatem sed architecto placeat beatae tenetur officia quod</p> | ||
</div> | ||
<div class="service-item"> | ||
<div class="icon"><img src="https://img.icons8.com/bubbles/100/000000/services.png"/></div> | ||
<h2>Web Design</h2> | ||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Corporis debitis rerum, magni voluptatem sed architecto placeat beatae tenetur officia quod</p> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
<!-- End Service Section --> | ||
|
||
<!-- Projects Section --> | ||
<section id="projects"> | ||
<div class="projects container"> | ||
<div class="projects-header"> | ||
<h1 class="section-title">Recent <span>Projects</span></h1> | ||
</div> | ||
<div class="all-projects"> | ||
<div class="project-item"> | ||
<div class="project-info"> | ||
<h1>Project 1</h1> | ||
<h2>Coding is Love</h2> | ||
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ad, iusto cupiditate voluptatum impedit unde rem ipsa distinctio illum quae mollitia ut, accusantium eius odio ducimus illo neque atque libero non sunt harum? Ipsum repellat animi, fugit architecto voluptatum odit et!</p> | ||
</div> | ||
<div class="project-img"> | ||
<img src="./images/image4.jpg" alt="img"> | ||
</div> | ||
</div> | ||
<div class="project-item"> | ||
<div class="project-info"> | ||
<h1>Project 2</h1> | ||
<h2>Coding is Love</h2> | ||
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ad, iusto cupiditate voluptatum impedit unde rem ipsa distinctio illum quae mollitia ut, accusantium eius odio ducimus illo neque atque libero non sunt harum? Ipsum repellat animi, fugit architecto voluptatum odit et!</p> | ||
</div> | ||
<div class="project-img"> | ||
<img src="./images/image4.jpg" alt="img"> | ||
</div> | ||
</div> | ||
<div class="project-item"> | ||
<div class="project-info"> | ||
<h1>Project 3</h1> | ||
<h2>Coding is Love</h2> | ||
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ad, iusto cupiditate voluptatum impedit unde rem ipsa distinctio illum quae mollitia ut, accusantium eius odio ducimus illo neque atque libero non sunt harum? Ipsum repellat animi, fugit architecto voluptatum odit et!</p> | ||
</div> | ||
<div class="project-img"> | ||
<img src="./images/image4.jpg" alt="img"> | ||
</div> | ||
</div> | ||
<div class="project-item"> | ||
<div class="project-info"> | ||
<h1>Project 4</h1> | ||
<h2>Coding is Love</h2> | ||
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ad, iusto cupiditate voluptatum impedit unde rem ipsa distinctio illum quae mollitia ut, accusantium eius odio ducimus illo neque atque libero non sunt harum? Ipsum repellat animi, fugit architecto voluptatum odit et!</p> | ||
</div> | ||
<div class="project-img"> | ||
<img src="./images/image4.jpg" alt="img"> | ||
</div> | ||
</div> | ||
<div class="project-item"> | ||
<div class="project-info"> | ||
<h1>Project 5</h1> | ||
<h2>Coding is Love</h2> | ||
<p>Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ad, iusto cupiditate voluptatum impedit unde rem ipsa distinctio illum quae mollitia ut, accusantium eius odio ducimus illo neque atque libero non sunt harum? Ipsum repellat animi, fugit architecto voluptatum odit et!</p> | ||
</div> | ||
<div class="project-img"> | ||
<img src="./images/image4.jpg" alt="img"> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
<!-- End Projects Section --> | ||
|
||
<!-- About Section --> | ||
<section id="about"> | ||
<div class="about container"> | ||
<div class="col-left"> | ||
<div class="about-img"> | ||
<img src="images/image6.jpg" alt="img"> | ||
</div> | ||
</div> | ||
<div class="col-right"> | ||
<h1 class="section-title">About <span>me</span></h1> | ||
<h2>Front End Developer</h2> | ||
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Asperiores, velit alias eius non illum beatae atque repellat ratione qui veritatis repudiandae adipisci maiores. At inventore necessitatibus deserunt exercitationem cumque earum omnis ipsum rem accusantium quis, quas quia, accusamus provident suscipit magni! Expedita sint ad dolore, commodi labore nihil velit earum ducimus nulla quae nostrum fugit aut, deserunt reprehenderit libero enim!</p> | ||
<a href="#" class="cta">Download Resume</a> | ||
</div> | ||
</div> | ||
</section> | ||
<!-- End About Section --> | ||
|
||
<!-- Contact Section --> | ||
<section id="contact"> | ||
<div class="contact container"> | ||
<div><h1 class="section-title">Contact <span>info</span></h1></div> | ||
<div class="contact-items"> | ||
<div class="contact-item"> | ||
<div class="icon"><img src="https://img.icons8.com/bubbles/100/000000/phone.png"/></div> | ||
<div class="contact-info"> | ||
<h1>Phone</h1> | ||
<h2>+1 234 123 1234</h2> | ||
<h2>+1 234 123 1234</h2> | ||
</div> | ||
</div> | ||
<div class="contact-item"> | ||
<div class="icon"><img src="https://img.icons8.com/bubbles/100/000000/new-post.png"/></div> | ||
<div class="contact-info"> | ||
<h1>Email</h1> | ||
<h2>[email protected]</h2> | ||
<h2>[email protected]</h2> | ||
</div> | ||
</div> | ||
<div class="contact-item"> | ||
<div class="icon"><img src="https://img.icons8.com/bubbles/100/000000/map-marker.png"/></div> | ||
<div class="contact-info"> | ||
<h1>Address</h1> | ||
<h2>Chaurbhagh, Andheri-west, Delhi</h2> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
<!-- End Contact Section --> | ||
|
||
<!-- Footer --> | ||
<section id="footer"> | ||
<div class="footer container"> | ||
<div class="brand"><h1><span>U</span>sha <span>N</span>amdeo</h1></div> | ||
<h2>Your Complete Web Solution</h2> | ||
<div class="social-icon"> | ||
<div class="social-item"> | ||
<a href="#"><img src="https://img.icons8.com/bubbles/100/000000/facebook-new.png"/></a> | ||
</div> | ||
<div class="social-item"> | ||
<a href="#"><img src="https://img.icons8.com/bubbles/100/000000/instagram-new.png"/></a> | ||
</div> | ||
<div class="social-item"> | ||
<a href="#"><img src="https://img.icons8.com/bubbles/100/000000/twitter.png"/></a> | ||
</div> | ||
<div class="social-item"> | ||
<a href="#"><img src="https://img.icons8.com/bubbles/100/000000/behance.png"/></a> | ||
</div> | ||
</div> | ||
<p>Copyright © 2021 Usha. All rights reserved</p> | ||
</div> | ||
</section> | ||
<!-- End Footer --> | ||
<script src="./app.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.