Skip to content

Commit 6917f42

Browse files
committed
Added advance level HTML projects
1 parent 5d5a3bf commit 6917f42

File tree

9 files changed

+922
-0
lines changed

9 files changed

+922
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,171 @@
1+
/* General Styles */
2+
* {
3+
margin: 0;
4+
padding: 0;
5+
box-sizing: border-box;
6+
font-family: "Poppins", sans-serif;
7+
}
8+
9+
body {
10+
background-color: #fff;
11+
color: #333;
12+
}
13+
14+
/* Header */
15+
header {
16+
display: flex;
17+
justify-content: space-between;
18+
align-items: center;
19+
padding: 20px 80px;
20+
background-color: #ff5a5f;
21+
color: white;
22+
font-weight: bold;
23+
}
24+
25+
.logo img {
26+
height: 30px;
27+
}
28+
29+
ul {
30+
list-style: none;
31+
display: flex;
32+
gap: 30px;
33+
}
34+
35+
ul li a {
36+
color: white;
37+
text-decoration: none;
38+
font-size: 18px;
39+
transition: color 0.3s;
40+
}
41+
42+
ul li a:hover {
43+
color: #ffe5e5;
44+
}
45+
46+
ul li a:active {
47+
color: yellow;
48+
}
49+
50+
/* Hero Section */
51+
.hero {
52+
background: url("../img/bg.png") center/cover no-repeat;
53+
height: 85vh;
54+
display: flex;
55+
flex-direction: column;
56+
align-items: center;
57+
justify-content: center;
58+
text-align: center;
59+
color: white;
60+
}
61+
62+
.hero img {
63+
width: 150px;
64+
margin-bottom: 20px;
65+
}
66+
67+
.hero p {
68+
font-size: 28px;
69+
font-weight: 600;
70+
margin-bottom: 25px;
71+
}
72+
73+
input {
74+
width: 50%;
75+
padding: 14px;
76+
border: none;
77+
border-radius: 8px;
78+
font-size: 18px;
79+
outline: none;
80+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
81+
}
82+
83+
/* Food Delivery Section */
84+
.food-delivery {
85+
padding: 50px;
86+
background-color: #f8f8f8;
87+
text-align: center;
88+
}
89+
90+
.food-content {
91+
max-width: 800px;
92+
margin: 0 auto;
93+
}
94+
95+
.food-content h2 {
96+
font-size: 32px;
97+
color: #333;
98+
margin-bottom: 20px;
99+
}
100+
101+
.food-content p {
102+
font-size: 18px;
103+
color: #555;
104+
line-height: 1.6;
105+
}
106+
107+
.food-items {
108+
display: flex;
109+
justify-content: center;
110+
gap: 20px;
111+
flex-wrap: wrap;
112+
margin-top: 20px;
113+
}
114+
115+
.food-item {
116+
background: white;
117+
padding: 15px;
118+
border-radius: 10px;
119+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
120+
text-align: center;
121+
transition: transform 0.3s ease-in-out;
122+
}
123+
124+
.food-item:hover {
125+
transform: scale(1.1);
126+
}
127+
128+
.food-item img {
129+
width: 150px;
130+
height: 150px;
131+
border-radius: 50%;
132+
margin-bottom: 10px;
133+
}
134+
135+
/* Additional Information Section */
136+
.additional-info {
137+
padding: 50px;
138+
background-color: #ffffff;
139+
text-align: center;
140+
}
141+
142+
.additional-info h2 {
143+
font-size: 30px;
144+
color: #333;
145+
margin-bottom: 20px;
146+
}
147+
148+
.info-items {
149+
display: flex;
150+
justify-content: center;
151+
gap: 30px;
152+
}
153+
154+
.info-item {
155+
background: #f8f8f8;
156+
padding: 20px;
157+
border-radius: 10px;
158+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
159+
text-align: center;
160+
width: 250px;
161+
}
162+
163+
/* Footer */
164+
footer {
165+
padding: 20px;
166+
background-color: #ff5a5f;
167+
color: white;
168+
text-align: center;
169+
font-size: 14px;
170+
font-weight: 500;
171+
}
70.7 KB
Loading
Loading
5.62 KB
Loading
222 KB
Loading
427 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// document.addEventListener("DOMContentLoaded", () => {
2+
// const inputField = document.querySelector("input");
3+
4+
// // Add focus effect to search bar
5+
// inputField.addEventListener("focus", () => {
6+
// inputField.style.boxShadow = "0 0 10px rgba(216, 35, 42, 0.5)";
7+
// });
8+
9+
// inputField.addEventListener("blur", () => {
10+
// inputField.style.boxShadow = "none";
11+
// });
12+
13+
// // Smooth scrolling for header links
14+
// document.querySelectorAll("ul li a").forEach((link) => {
15+
// link.addEventListener("click", (e) => {
16+
// e.preventDefault();
17+
// alert(`Navigating to ${link.textContent}`);
18+
// });
19+
// });
20+
21+
// // Add hover effect to food items
22+
// document.querySelectorAll(".food-item").forEach((item) => {
23+
// item.addEventListener("mouseenter", () => {
24+
// item.style.transform = "scale(1.1)";
25+
// item.style.transition = "0.3s ease-in-out";
26+
// });
27+
28+
// item.addEventListener("mouseleave", () => {
29+
// item.style.transform = "scale(1)";
30+
// });
31+
// });
32+
// });

0 commit comments

Comments
 (0)