Skip to content
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
1 change: 1 addition & 0 deletions Delta-apna-college
Submodule Delta-apna-college added at a0429c
Binary file added camera.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
86 changes: 86 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<!DOCTYPE html>
<html lang="en">
<head>
<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>CSS Project</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Poppins&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
/>
<link rel="stylesheet" href="style.css"/>
<link href="https://fonts.googleapis.com/css2?family=Cal+Sans&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">

</head>
<body>
<div class="main_box">
<input type="checkbox" id="check" />
<div class="btn_one">
<label for="check" >
<i class="fa-solid fa-bars"></i>
</label>
</div>

<div class="sidebar_menu">
<div class="logo">
<a href="#">Vineet Waman</a>
</div>

<div class="btn_two">
<label for="check" style="color: grey">
<i class="fa-solid fa-xmark"></i>
</label>
</div>

<div class="menu">
<ul>
<li>
<i class="fa-solid fa-image"></i>
<a href="#">Gallery</a>
</li>
<li>
<i class="fa-solid fa-arrow-up-right-from-square"></i>
<a href="#">Shortcuts</a>
</li>
<li>
<i class="fa-solid fa-photo-film"></i>
<a href="#">Exhibits</a>
</li>
<li>
<i class="fa-solid fa-calendar-days"></i>
<a href="#">Events</a>
</li>
<li>
<i class="fa-solid fa-store"></i>
<a href="#">Store</a>
</li>
<li>
<i class="fa-solid fa-phone"></i>
<a href="#">Contact</a>
</li>
<li>
<i class="fa-regular fa-comments"></i>
<a href="#">Feedback</a>
</li>
</ul>
</div>

<div class="social_media">
<ul>
<a href="#"><i class="fa-brands fa-facebook"></i></i></a>
<a href="#"><i class="fa-brands fa-twitter"></i></a>
<a href="#"><i class="fa-brands fa-instagram"></i></i></a>
<a href="#"><i class="fa-brands fa-youtube"></i></a>
</ul>
</div>
</div>
</div>
</body>
</html>
123 changes: 123 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
*{
margin: 0;
padding: 0;
font-family: "Poppins", sans-serif;
}

.main_box{
background-image: url("camera.jpg");
height: 100vh;
background-size: cover;
}
.btn_one i{
font-size: 30px;
color: white;
font-weight: 700;
position: absolute;
left: 16px;
line-height: 70px;
cursor: pointer;
transition: all 0.3s linear;
}
.sidebar_menu{
position: fixed;
left: -350px;
height: 100vh;
width: 300px;
background-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
transition: all 0.3s linear;
}
.logo{
position: absolute;
width: 100%;

line-height:60px;
box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
top: 8px;
height: 60px;


}
.logo a{
position: absolute;
left: 50px;
color: white;
text-decoration: none;
font-size: 20px;
font-weight: 500;
}
.menu{
color: white;
position: absolute;
width: 100%;
top: 80px;
}
.btn_two i{
color: grey;
font-size: 25px;
line-height: 70px;
position: absolute;
left: 275px;
transition: all 0.3s linear;


}
.menu li{
margin-top: 6px;
padding: 14px 20px;


}
.menu li a,i{
color: white;
text-decoration: none;
font-size: 20px;
}
.menu li i{
padding-right: 8px;
}
.social_media{

position: absolute;
left: 25%;
bottom: 50px;

}
.social_media i{
color: white;
opacity: 0.5;
padding: 0 5px;


}
#check{
display: none;
}
.menu li:hover{
box-shadow: 0 0 4px rgba(255, 255, 255, 0.6);

}
.btn_one i:hover{
font-size: 40px;
}
.btn_two i:hover{
font-size: 30px;
}
.social_media i:hover{
opacity: 1;
transform: scale(1.1);
}
#check:checked~.sidebar_menu{
left: 0;
}
#check:checked~.btn_one i{
opacity: 0;
}
#check:checked~.sidebar_menu.btn_two i{
opacity: 1;
}
.logo a{
font-family: 'Cal Sans'}