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

Vertical Navbar #150

Open
wants to merge 2 commits into
base: main
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
63 changes: 63 additions & 0 deletions Navbar/navbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');
*{
margin: 0;
padding:0;
font-family: 'poppins',sans-serif;
outline: none;
border: none;
text-decoration: none;
box-sizing: border-box;
}
body{
background: #dfe9f5;
}
.wrapper{
display: flex;
position: relative;
}
.wrapper .snavbar{
position: fixed;
width: 200px;
height: 100%;
background: #4b4376;
padding: 30px 0;
}
.wrapper .snavbar ul li{
padding: 15px;
border-bottom: 1px solid rgba(0,0,0,0.05);
border-top: 1px solid rgba(225,225,225,0.05);
}
.wrapper .snavbar ul li a{
color: #bdb8d7;
display: block;
}
.wrapper .snavbar ul li a .fas{
width: 25px;
}
.wrapper .snavbar ul li:hover{
background:#594f8d;
}
.wrapper .snavbar ul li:hover a{
background:#fff;
}
.wrapper .snavbar .socialmedia{
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
display: flex;
}

.wrapper .snavbar .socialmedia a{
display: block;
width: 40px;
background: #594f8d;
height: 40px;
line-height: 40px;
text-align: center;
margin: 0 5px;
color: #bdb8d7;
border-top-right-radius: 5px;
border-top-left-radius:5px ;
}

74 changes: 74 additions & 0 deletions Navbar/navbar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Navbar</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" media="screen" href="navbar.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css"
integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
</head>
<body>
<div class="wrapper">
<div class="snavbar">
<nav>
<ul>
<li>
<a href="#">
<i class="fa-solid fa-house"></i>
Home
</a>
</li>
<li>
<a href="#">
<i class="fa-regular fa-address-card"></i>
About
</a>
</li>
<li>
<a href="#">
<i class="fa-regular fa-user"></i>
User
</a>
</li>
<li>
<a href="#">
<i class="fa-solid fa-chart-simple"></i>
Charts
</a>
</li>
<li>
<a href="#">
<i class="fa-solid fa-location-dot"></i>
Location
</a>
</li>
<li>
<a href="#">
<i class="fa-solid fa-file"></i>
Document
</a>
</li>
</ul>
</nav>
</div>
<div class="socialmedia">
<a href="#">
<i class="fa-brands fa-facebook"></i>
</a>
<a href="#">
<i class="fa-brands fa-twitter"></i>
</a>
<a href="#">
<i class="fa-brands fa-instagram"></i>
</a>
</div>
</div>
</body>
</html>
107 changes: 107 additions & 0 deletions ShoppingCard/card.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');
*{
margin: 0;
padding:0;
font-family: 'poppins',sans-serif;
}

body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #232526; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #414345, #232526); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #414345, #232526); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}
.card{
position: relative;
width: 320px;
height: 420px;
background: #122936;
border-radius: 23px;
overflow: hidden;
}
.card::before{
content:'';
position: absolute;
top: -50%;
width: 100%;
height: 100%;
background: #d8790d;
transform: skewY(340deg);
transition: 0.5s;
}
.card:hover::before{
top: -70%;
transform: skewY(498deg);
}
.card::after{
content: 'Asus';
position: absolute;
bottom: 0;
left: 0;
font-weight: 600;
font-size: 8em;
color:rgba(0,0,0,0.1);
}

.card .imgbx{
position: relative;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
padding-top: 20px;
z-index: 1;
}
.card .imgbx img{
max-width: 100%;
transition: 0.5s;
}
.card:hover .imgbx img{
max-width: 50%;

}
.card .contentbx{
position: relative;
padding: 20px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
z-index: 1;
}
.card .contentbx h3{
font-size: 18px;
color: #fff;
font-weight: 780;
text-transform: uppercase;
letter-spacing: 1px;
}
.card .contentbx .price{
font-size: 24px;
color: #fff;
font-weight: 700;
letter-spacing: 1px;
}

.card .contentbx .buy{
position: relative;
top: 200px;
opacity: 0;
padding: 10px 30px;
margin-top: 13px;
color: #fff;
text-decoration: none;
background: #2196f3;
border-radius: 30px;
text-transform: uppercase;
letter-spacing: 1px;
transition: 0.5s;
}
.card .contentbx .buy{
top: 0;
opacity: 1;
}
23 changes: 23 additions & 0 deletions ShoppingCard/card.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Shop card</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='card.css'>

</head>
<body>
<div class="card">
<div class="imgbx">
<img src="rog.png"/>
</div>
<div class="contentbx">
<h3>Asus Zephyrus G14</h3>
<h2 class="price">$899</h2>
<a href="#" class="buy">Buy Now</a>
</div>
</div>
</body>
</html>
Binary file added ShoppingCard/rog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.