forked from Kavya100206/Delicious-Bites
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebsite.html
227 lines (207 loc) · 5.64 KB
/
website.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=\, initial-scale=1.0">
<title>Document</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* header */
header{
/* position: relative; */
display:flex;
justify-content: space-between;
align-items: center;
background-color: #333;
color: white;
padding: 1rem 2rem;
}
.cont1{
/* position: absolute; */
font-size: 1.5rem;
font-weight: bold;
transition: color 0.3s;
/* left: 0%; */
}
.cont1:hover{
color: #f4a261;
}
header nav ul{
display: flex;
list-style-type: none;
}
header nav ul li{
margin-left: 1rem;
}
header nav ul li a {
/* why is this not working under header nav ul li */
color: white;
text-decoration: none;
padding: 0.5rem;
transition: color 0.3s;
}
header nav ul li a:hover {
color: #f4a261;
}
.cont2{
background-color: red;
}
.hero{
display: flex;
/* background-color: darkgray; */
background-image: url(Untitled\ design.png);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
padding:80px;
justify-content: space-between;
flex-direction: column;
text-align: center;
align-items: center;
}
h1{
color: blueviolet;
font-weight: bold;
font-size: 3rem;
animation: leftToRight 5s ease-in-out;
animation-iteration-count: infinite;
}
.hero p{
color: lime;
font-size: 2rem;
font-weight: bold;
margin-top: 2rem;
}
.hero .btn {
background-color: #f4a261;
color: white;
padding: 1rem 1rem;
text-decoration: none;
border-radius: 5px;
transition: background-color 0.3s;
display: inline-block; /* Ensure the button behaves like an inline block element */
width: 150px;
margin-top: 2rem;
}
.hero .btn:hover {
background-color: #e76f51;
}
.menu-section {
padding: 3rem 2rem;
background-color: #fff;
text-align: center;
}
h2{
font-size: 2rem;
margin-bottom: 2rem;
}
.menu-items{
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 2rem;
}
.menu-item{
background-color: rgba(128, 128, 128, 0.404);
padding: 3rem 2rem;
width: 200px;
color: #e76f51;
border-radius: 10px;
}
.menu-item p{
color: black;
}
.about-section{
background-color: #f4a261;
padding: 2rem 3rem;
text-align: center;
}
.about-section h2{
font-size: 2rem;
margin-bottom: 2rem;
color: white;
}
.about-section p{
font-size: larger;
}
.Contact-us{
background-color: #333;
text-align: center;
padding: 2rem 3rem;
}
.Contact-us h2{
color: white;
}
.Contact-us p{
font-size: larger;
color: white;
}
@keyframes leftToRight {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
.menu-item:hover
{
background-color: rgba(177, 32, 32, 0.404);
}
</style>
</head>
<body>
<header>
<div class="cont1">Delicious Bites</div>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Menu</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<section id="home" class="hero">
<h1>Welcome to Delicious Bites</h1>
<p>Your favorite place for the best food in town.</p>
<button class="btn">Explore Our Menu</button>
</section>
<section id="menu" class="menu-section">
<h2>Our Menu</h2>
<div class="menu-items">
<div class="menu-item">
<h3>Pizza</h3>
<p>Delicious cheesy pizza with fresh toppings.</p>
</div>
<div class="menu-item">
<h3>Burger</h3>
<p>Juicy Burger with fresh lettuce and tomato.</p>
</div>
<div class="menu-item">
<h3>Pasta</h3>
<p>Creamy pasta with rich flavors and herbs.</p>
</div>
<div class="menu-item">
<h3>Salad</h3>
<p>Fresh garden salad with a variety of vegetables.</p>
</div>
</div>
</section>
<section id="about" class="about-section">
<h2>About Us</h2>
<p>Delicious Bites has been serving the community with the best food since 1990. Our commitment to quality and taste is unmatched. Come experience the taste of excellence!
</p>
</section>
<section id="contact" class="Contact-us">
<h2>Contact Us</h2>
<p>Visit us at 123 Food Street, Flavor Town, or call us at (123) 456-7890.
</p>
</section>
</body>
</html>