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

sticky navbar initial commit #46

Merged
merged 1 commit into from
Oct 27, 2021
Merged
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
Binary file added navbar codes/Ritika-navbar-1/Ritika_Navbar.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions navbar codes/Ritika-navbar-1/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="./style.css">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito+Sans&family=Satisfy&display=swap" rel="stylesheet">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Ritika Navbar</title>
</head>
<body>
<div class="nav-div">
<div class="logo">
LOGO
</div>
<ul class="nav-list">

<a href="#home"><li class="nav-item">Home</li></a>

<a href="#about"><li class="nav-item">About</li></a>

<a href="#services"><li class="nav-item">Services</li></a>

<a href="#contact"><li class="nav-item">Contacts</li></a>

</ul>
</div>

<div id="home">
<div class="text-center heading">
Home
</div>
<div class="dummy-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas id nulla nec purus luctus posuere. Fusce tempus dignissim orci id facilisis. Phasellus et justo at risus aliquam egestas eget vitae libero. Praesent sit amet tortor eu lorem fringilla vestibulum dapibus in libero. Nulla efficitur tempus accumsan. Pellentesque auctor urna quam. Maecenas euismod semper scelerisque. Sed sodales tincidunt dolor, sed luctus lectus aliquam eu. Vivamus suscipit nisl sollicitudin lacinia sollicitudin. Donec pharetra risus nec tortor rhoncus, finibus bibendum tellus facilisis. Vestibulum porttitor elementum consectetur. Maecenas nec felis ex. Sed tempus pretium mollis.

Etiam tincidunt arcu et ullamcorper facilisis. Aenean scelerisque pellentesque lorem sed lacinia. Vestibulum id finibus nisi, finibus dignissim arcu. Maecenas sit amet libero pretium, pretium nunc a, sagittis quam. Praesent pellentesque mattis nulla, quis iaculis leo efficitur et. Donec eget eleifend ex. Sed in magna dui. Mauris vulputate dignissim mi. Nulla rutrum turpis sodales nisi fermentum volutpat. Nunc euismod aliquet arcu at finibus.
</div>
</div>
<div id="about">
<div class="text-center heading">
About
</div>
<div class="dummy-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas id nulla nec purus luctus posuere. Fusce tempus dignissim orci id facilisis. Phasellus et justo at risus aliquam egestas eget vitae libero. Praesent sit amet tortor eu lorem fringilla vestibulum dapibus in libero. Nulla efficitur tempus accumsan. Pellentesque auctor urna quam. Maecenas euismod semper scelerisque. Sed sodales tincidunt dolor, sed luctus lectus aliquam eu. Vivamus suscipit nisl sollicitudin lacinia sollicitudin. Donec pharetra risus nec tortor rhoncus, finibus bibendum tellus facilisis. Vestibulum porttitor elementum consectetur. Maecenas nec felis ex. Sed tempus pretium mollis.

Etiam tincidunt arcu et ullamcorper facilisis. Aenean scelerisque pellentesque lorem sed lacinia. Vestibulum id finibus nisi, finibus dignissim arcu. Maecenas sit amet libero pretium, pretium nunc a, sagittis quam. Praesent pellentesque mattis nulla, quis iaculis leo efficitur et. Donec eget eleifend ex. Sed in magna dui. Mauris vulputate dignissim mi. Nulla rutrum turpis sodales nisi fermentum volutpat. Nunc euismod aliquet arcu at finibus.
</div>
</div>
<div id="services">
<div class="text-center heading">
Services
</div>
<div class="dummy-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas id nulla nec purus luctus posuere. Fusce tempus dignissim orci id facilisis. Phasellus et justo at risus aliquam egestas eget vitae libero. Praesent sit amet tortor eu lorem fringilla vestibulum dapibus in libero. Nulla efficitur tempus accumsan. Pellentesque auctor urna quam. Maecenas euismod semper scelerisque. Sed sodales tincidunt dolor, sed luctus lectus aliquam eu. Vivamus suscipit nisl sollicitudin lacinia sollicitudin. Donec pharetra risus nec tortor rhoncus, finibus bibendum tellus facilisis. Vestibulum porttitor elementum consectetur. Maecenas nec felis ex. Sed tempus pretium mollis.

Etiam tincidunt arcu et ullamcorper facilisis. Aenean scelerisque pellentesque lorem sed lacinia. Vestibulum id finibus nisi, finibus dignissim arcu. Maecenas sit amet libero pretium, pretium nunc a, sagittis quam. Praesent pellentesque mattis nulla, quis iaculis leo efficitur et. Donec eget eleifend ex. Sed in magna dui. Mauris vulputate dignissim mi. Nulla rutrum turpis sodales nisi fermentum volutpat. Nunc euismod aliquet arcu at finibus.
</div>
</div>
<div id="contact">
<div class="text-center heading">
Contact
</div>
<div class="dummy-text">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas id nulla nec purus luctus posuere. Fusce tempus dignissim orci id facilisis. Phasellus et justo at risus aliquam egestas eget vitae libero. Praesent sit amet tortor eu lorem fringilla vestibulum dapibus in libero. Nulla efficitur tempus accumsan. Pellentesque auctor urna quam. Maecenas euismod semper scelerisque. Sed sodales tincidunt dolor, sed luctus lectus aliquam eu. Vivamus suscipit nisl sollicitudin lacinia sollicitudin. Donec pharetra risus nec tortor rhoncus, finibus bibendum tellus facilisis. Vestibulum porttitor elementum consectetur. Maecenas nec felis ex. Sed tempus pretium mollis.

Etiam tincidunt arcu et ullamcorper facilisis. Aenean scelerisque pellentesque lorem sed lacinia. Vestibulum id finibus nisi, finibus dignissim arcu. Maecenas sit amet libero pretium, pretium nunc a, sagittis quam. Praesent pellentesque mattis nulla, quis iaculis leo efficitur et. Donec eget eleifend ex. Sed in magna dui. Mauris vulputate dignissim mi. Nulla rutrum turpis sodales nisi fermentum volutpat. Nunc euismod aliquet arcu at finibus.
</div>
</div>
</body>
</html>
55 changes: 55 additions & 0 deletions navbar codes/Ritika-navbar-1/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
body{
margin:0;
padding:0;
font-family: 'Nunito Sans', sans-serif;
}
.nav-list{
display:flex;
flex-wrap:wrap;
list-style:none;
width:max-content;
margin-left:auto;
margin-right:2rem;
}
.nav-list a{
text-decoration: none;
}
.nav-div{
display:flex;
flex-wrap:wrap;
background:#e78d9c;
color:#0c2bbfed;
margin:0;
padding:0;
position: sticky;
top:0;
font-size: 18px;
font-weight: bold;
}
.logo{
width:max-content;
margin: auto 2rem;

}
.nav-item{
padding: 0px 1.5rem;

}
.heading{
text-align: center;
font-size: 35px;
font-weight: 600;
padding-top:60px;
font-family: 'Satisfy', cursive;

}
.dummy-text{
padding: 0.5rem 1.5rem;
line-height: 120%;
font-size: 18px;
font-weight: 500;
}
.nav-list li:hover{
transform: scale(1.06);
color: whitesmoke;
}
25 changes: 25 additions & 0 deletions navbars.html
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,31 @@ <h1 class="name">Responsive nav</h1>
</div>
</div>
</div>
</div>
<br><br>
<div class="product">
<div class="product-img">
<img src="./navbar codes/Ritika-navbar-1/Ritika_Navbar.gif" alt="Ritika Navbar">
<span class="tag">Navbar 12</span>
</div>
<div class="product-listing">
<div class="content">
<h1 class="name">Sticky Navigable Desktop Navbar</h1>
<p class="info">A sticky navbar for desktopwith componenet of navbar linked to
their respective sections on the page.</p>
<p class="stack">Tech stack : HTML/CSS</p>
<div class="btn-and-rating-box">
<div class="rating">
<img src="https://github.com/kunaal438/product-page/blob/master/img/star.png?raw=true" alt="">
<img src="https://github.com/kunaal438/product-page/blob/master/img/star.png?raw=true" alt="">
<img src="https://github.com/kunaal438/product-page/blob/master/img/star.png?raw=true" alt="">
<img src="https://github.com/kunaal438/product-page/blob/master/img/star%20stroke.png?raw=true" alt="">
<img src="https://github.com/kunaal438/product-page/blob/master/img/star%20stroke.png?raw=true" alt="">
</div>
<a class="btn" href="https://codepen.io/ritikakhandelwal-17/pen/eYEmmLp" target="_blank">See Code</a>
</div>
</div>
</div>
</div>
<!--=============== SCROLL UP ===============-->
<a href="#" class="scrollup" id="scroll-up">
Expand Down