Skip to content
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
9 changes: 9 additions & 0 deletions Domains/Frontend/MiniProjects/CSS Mini Project/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
let gallery_btn=document.querySelector("#gallery");
let newBtn=document.createElement("button");
gallery_btn.addEventListener("click",()=>{

gallery_btn.style.color="red";
document.querySelector(".menu").append(newBtn);
newBtn.innerText="new button";

})
90 changes: 90 additions & 0 deletions Domains/Frontend/MiniProjects/CSS Mini Project/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<!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="stylesheet " href="style.css"/>
<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="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&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&family=Qwitcher+Grypen:wght@400;700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet">
</head>
<body>
<div class="main_box">
<input type="checkbox" id="check" />
<div class="btn_one">
<label for="check" style="color: white">
<i class="fa-solid fa-bars"></i>
</label>
</div>

<div class="sidebar_menu">
<div class="logo">
<a href="#">Apna College</a>
</div>

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

<div class="menu">
<ul>
<li>
<i class="fa-solid fa-image"></i>
<a href="#" id="gallery">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>
<script src="app.js"></script>
</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
144 changes: 144 additions & 0 deletions Domains/Frontend/MiniProjects/CSS Mini Project/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
*{
margin: 0;
padding: 0;
font-family: "Poppins", sans-serif;
}

.main_box{
background-image: url("photo.jpg");
height: 100vh;
background-size: cover;
}

.btn_one{
color: white;
font-size: 30px;
font-weight: 700;
position: absolute;
line-height: 60px;
left: 16px;
cursor: pointer;
transition: all 0.3s linear;
}

.sidebar_menu{
position: fixed;
height: 100vh;
width: 300px;
left: -300px;
background-color:rgba(255, 255, 255, 0.1);
box-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
transition: all 0.3s linear;
}

.sidebar_menu .logo {
position: absolute;
line-height: 60px;
width: 100%;
box-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
height: 60px;
}

.sidebar_menu .logo a {
position: absolute;
color: white;
text-decoration: none;
left: 50px;
font-size: 25px;
font-weight: 700;
}

.sidebar_menu .btn_two i {
color: gray;
left: 275px;
font-size: 25px;
line-height: 60px;
position: absolute;
/* opacity: 0; */
cursor: pointer;
transition: all 0.3s linear;
}

.sidebar_menu .menu {
top: 60px;
position: absolute;
color: white;
width: 100%;
cursor: pointer;
}

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

.sidebar_menu .menu i {
color: white;
text-decoration: none;
padding-left: 10px;
font-size: 20px;
}

.sidebar_menu .menu a {
color: white;
text-decoration: none;
padding-left: 10px;
font-size: 20px;
}

.sidebar_menu .social_media {
position: absolute;
bottom: 50px;
left: 25%;
}

/* .sidebar_menu .sidebar_menu i {
color: white;
opacity: 0.5;
padding: 0 5px;
} */

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

#check{
display: none;
}

/* .sidebar_menu .menu li:hover {
box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.btn_two:hover {
font-size: 30px;
} */

.btn_one i:hover{
font-size: 40px;
}

.btn_two i:hover{
font-size: 30px;
}

.sidebar_menu .menu li:hover {
background: rgba(255, 255, 255, 0.2);
box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
/* transition: all 0.3s linear; */
}

.sidebar_menu .social_media i:hover{
opacity: 1;
transform: scale(1.1);
}

#check:checked ~ .sidebar_menu {
left: 0;
}

#check:checked ~ .btn_one{
opacity: 0;
}
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.
Binary file not shown.
Binary file not shown.
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
Loading