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
3 changes: 1 addition & 2 deletions Easy/Task 2 - Anushka/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<a href=".." class="dropbtn">Journal</a>
<div class="dropdown-content">
<a href="..">Today's Entry</a>
<a href="..">Past Entries</a>
<a href="..">Past Entries</a>
<a href="..">Reflection (Or Not)</a>
</div>
</li>
Expand All @@ -24,7 +24,6 @@
</ul>
</nav>
</header>

<main>
<div class="journal-container">
<section class="today-entry">
Expand Down
Binary file added Easy/Task 3 - Anushka/img_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions Easy/Task 3 - Anushka/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Collapsible Sidebar</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<input type="checkbox" id="toggle">
<label for="toggle" class="menu-icon">&#9776;</label>

<div class="sidebar">
<h2>Menu</h2>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Artists</a></li>
<li><a href="#">Categories</a></li>
<li><a href="#">Shops</a></li>
<li><a href="#">Contacts</a></li>
</ul>
</div>

<main>
<div class="main-content">
<p>Welcome to Artora! Explore digital creativity and artistic expression like never before.</p>
<button>Click Me</button>
</div>
</main>

</body>
</html>
101 changes: 101 additions & 0 deletions Easy/Task 3 - Anushka/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
display: flex;
background-image: url("img_1.png");
}

.sidebar {
width: 200px;
background: #ffe5d9;
color: #f0e8dc;
height: 100vh;
padding: 20px;
box-sizing: border-box;
transition: transform 0.3s ease;
}

.sidebar ul {
list-style: none;
padding: 0;
}

.sidebar ul li a {
color: #f0e8dc;
text-decoration: none;
display: block;
padding: 30px 0;
}

.content {
padding: 20px;
flex: 1;
margin-left: 20;
text-align: center;
background-size: cover;
color: #000000;
}

.menu-icon {
position: absolute;
top: 10px;
left: 10px;
font-size: 30px;
color: white;
background: #333;
padding: 10px;
cursor: pointer;
z-index: 1000;
display: none;
}

#toggle {
display: none;
}


@media (max-width: 2000px) {
.menu-icon {
display: block;
}

.sidebar {
position: fixed;
width: 250px;
height: 100%;
background: #1e2c3b;
transform: translateX(-100%);
transition: transform 0.3s ease;
z-index: 999;
}
#toggle:checked ~ .sidebar {
transform: translateX(0);
}

h2 {
font-size: 40px;
text-align: center;
}
}

.main-content {
position: relative;
top : 350px;
left: 450px;
}


button {
position: relative;
top: 10px;
left: 185px;
background-color: #403016;
border-radius: 8px;
box-sizing: border-box;
color: #e6dfd0;
font-size: 16px;
font-weight: 600;
line-height: 20px;
padding: 13px 23px;
text-align: center;
}