Skip to content

Commit 7783aa0

Browse files
committed
Module_5 Assignment Dome. HTML CSS Tailwind JS Responsivenes All Done Ready to Submit..😊😊
1 parent 76c5b41 commit 7783aa0

7 files changed

Lines changed: 62 additions & 11 deletions

File tree

-19.3 KB
Binary file not shown.

Module_5/Assets/Union2.png

10.5 KB
Loading
-14.4 KB
Binary file not shown.

Module_5/index.html

Lines changed: 33 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
integrity="sha512-2SwdPD6INVrV/lHTZbO2nodKhrnDdJK9/kg2XD1r9uGqPo1cUbujc+IYdlYdEErWNu69gVcYgdxlmVmzTWnetw=="
99
crossorigin="anonymous" referrerpolicy="no-referrer" />
1010
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
11+
<link rel="icon" type="image/png" href="./Assets/Logo.png">
1112
<link rel="stylesheet" href="style.css">
1213
<title>Medi Bridge</title>
1314
</head>
@@ -19,16 +20,32 @@
1920
<img src="./Assets/Logo.png" alt="">
2021
<span class="font-bold">Medi Bridge</span>
2122
</div>
22-
<menu class="fixed md:static top-0 right-0 h-screen md:h-auto md:w-auto
23+
<menu class="fixed md:static top-0 right-0 h-screen w-[80%] md:h-auto md:w-auto
2324
bg-gray-400 md:bg-transparent z-50
2425
transform translate-x-full md:translate-x-0
2526
transition-transform duration-300 ease-in-out">
2627
<ul
27-
class="flex flex-col md:flex-row list-none items-center justify-around h-full md:h-auto gap-8 md:gap-4">
28-
<button class="hidden"><i class="fa-solid fa-angle-right" id="menu_Close"></i></button>
28+
class="flex flex-col md:flex-row list-none items-center justify-center h-full md:h-auto gap-8 md:gap-4">
29+
<button
30+
class=" py-2 px-4 m-4 bg-yellow-500 border border-yellow-500 hover:bg-transparent transition-transform duration-300 ease-in-out rounded-2xl font-semibold md:hidden "
31+
id="menu_Close"><i class="fa-solid fa-angle-right"></i></button>
2932
<li><a href="#" class="hover:text-blue-600 whitespace-nowrap">About Us</a></li>
30-
<li class="flex justify-center items-center cursor-pointer gap-1">
31-
Features <i class="fa-solid fa-angle-down text-xs"></i>
33+
<li class="flex flex-col justify-center items-center cursor-pointer gap-1 md:relative"
34+
id="collapse_Menu">
35+
<div class="flex"> Features
36+
<span id="arrow_Down"><i
37+
class="fa-solid fa-angle-down text-xs transition-transform duration-300"></i></span>
38+
<!-- <span>
39+
<i class="fa-solid fa-angle-up text-xs transition-transform duration-300" id="arrow_up"></i></span> -->
40+
</div>
41+
42+
<ul class="opacity-0 max-h-0 overflow-hidden transition-all duration-300 ease-in-out md:absolute md:top-5 md:left-2 "
43+
id="collapse_List">
44+
<li>Feature 1</li>
45+
<li>Feature 2</li>
46+
<li>Feature 3</li>
47+
<li>Feature 4</li>
48+
</ul>
3249
</li>
3350
<li><a href="#" class="hover:text-blue-600 whitespace-nowrap">Find Doctors</a></li>
3451
<li><a href="#" class="hover:text-blue-600">Blog</a></li>
@@ -39,7 +56,9 @@
3956
<button class="mx-2 px-5 py-2 bg-green-800 border-green-800 rounded-xl text-white">Register</button>
4057
</div>
4158

42-
<button class="md:hidden w-10" id="menu_Open"><i class="fa-solid fa-angle-left"></i></button>
59+
<button
60+
class="md:hidden py-2 px-4 bg-green-500 border border-green-700 hover:bg-transparent transition-transform duration-300 ease-in-out rounded-2xl font-semibold "
61+
id="menu_Open"><i class="fa-solid fa-angle-left"></i></button>
4362
</nav>
4463
</header>
4564
<main>
@@ -48,7 +67,7 @@
4867
<div class="hero md:flex ">
4968
<div class="content p-4 m-2 md:w-[50%]">
5069
<div
51-
class="snapBar flex items-center justify-center gap-2 bg-[rgba(138,195,188,0.15)] border-green-400 rounded-3xl py-2 px-2 m-4 font-semibold text-[.8rem] text-green-900 md:w-[40%]">
70+
class="snapBar flex items-center justify-center gap-2 bg-[rgba(138,195,188,0.15)] border-green-400 rounded-3xl py-2 px-2 m-4 font-semibold text-[.8rem] text-green-900 w-fit">
5271
<i class="fa-solid fa-award p-2 rounded-full bg-[rgba(138,195,188,0.40)] text-green-900"></i>
5372
<span>Top-rated healthcare service</span>
5473
</div>
@@ -68,7 +87,7 @@ <h1 class="text-5xl font-semibold text-black">Transforming <br> Healthcare for a
6887
<div class="bgDoc">
6988
<img src="./Assets/womanDoc.png" alt="" class="self-center justify-center-safe">
7089
<div
71-
class=" grid grid-cols-3 items-center justify-center sidDiv absolute left-0 top-40 z-20 p-3 bg-white rounded-xl w-full md:w-[70%]">
90+
class=" grid grid-cols-3 items-center justify-center sidDiv absolute left-0 top-40 z-20 p-3 bg-white rounded-xl w-full md:w-[70%] md:grid-cols-2 xl:grid-cols-3">
7291
<img src="./Assets/Avatar.png" alt="">
7392
<div class="miniContent">
7493
<button>Available</button>
@@ -80,7 +99,8 @@ <h2>Dr. Andrea G.</h2>
8099
class="flex items-center justify-center text-green-700 font-semibold border border-green-600 bg-transparent p-2 m-2 rounded-2xl h-9"><i
81100
class="fa-solid fa-phone"></i> Book Now</button>
82101
</div>
83-
<div class="bottomDiv absolute bottom-0 right-0 md:w-[50%] bg-green-700 rounded-xl p-4 text-white">
102+
<div
103+
class="bottomDiv absolute bottom-0 right-0 md:w-[50%] bg-green-700 rounded-xl p-4 text-white md:z-20">
84104
<div class="textDiv font-semibold">
85105
<p>“The workshops were insightful, the networking opportunities were abundant”</p>
86106
<div class="spalteDiv flex justify-between">
@@ -356,14 +376,17 @@ <h2 class="bg-green-900 text-white font-semibold px-2 h-20 rounded-t-xl flex ite
356376

357377
<!-- Appointment Section Code -->
358378
<div
359-
class="appointemnt bg-[#34978B] flex flex-col items-center justify-center rounded-2xl p-16 m-16 h-[60vh] text-white">
379+
class="appointemnt bg-[#017D6E] flex flex-col items-center justify-center rounded-2xl p-16 m-16 h-[60vh] text-white relative">
380+
<img src="./Assets/Union2.png" alt="" class="absolute top-0 left-0 opacity-70 h-60 hidden md:block">
381+
360382
<h1 class="text-3xl font-semibold m-3">Discover Comprehensive <br>
361383
Care Tailored to Your Needs</h1>
362384
<p class="text-gray-200
363385
">Experience personalized healthcare solutions designed to prioritize your well-being</p>
364386
<button
365387
class="py-2 px-3 my-3 bg-gray-200 border border-gray-300 rounded-[.4rem] text-[1rem] font-semibold text-black hover:text-white hover:scale-110 hover:bg-transparent transition-all duration-300 ease-in-out w-fit">Make
366388
an Appoinment</button>
389+
<img src="./Assets/Union1.png" alt="" class="absolute bottom-0 right-0 opacity-70 hidden md:block">
367390
</div>
368391
</main>
369392

Module_5/script.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
let openBtn = document.querySelector("#menu_Open");
2+
let closeBtn = document.querySelector("#menu_Close");
3+
let menu = document.querySelector("menu")
4+
openBtn.addEventListener("click", ()=>{
5+
menu.classList.remove( "translate-x-full");
6+
});
7+
8+
closeBtn.addEventListener("click", ()=>{
9+
menu.classList.add("translate-x-full");
10+
});
11+
12+
let collapseMenu = document.querySelector("#collapse_Menu");
13+
let collapseList = document.querySelector("#collapse_List");
14+
let arrowDown = document.querySelector("#arrow_Down");
15+
16+
collapseMenu.addEventListener("click", () => {
17+
if (collapseList.classList.contains("max-h-0")) {
18+
collapseList.classList.remove("opacity-0", "max-h-0");
19+
collapseList.classList.add("opacity-100", "max-h-50");
20+
arrowDown.style.transform = "rotate(180deg)";
21+
22+
}
23+
else {
24+
collapseList.classList.add("opacity-0", "max-h-0");
25+
collapseList.classList.remove("opacity-100", "max-h-50");
26+
arrowDown.style.transform = "rotate(0deg)";
27+
}
28+
});

Module_5/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ menu ul li {
1313

1414
}
1515

16-
memu ul li a {
16+
menu ul li a {
1717
text-align: center;
1818
}
1919

0 commit comments

Comments
 (0)