-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
307 lines (251 loc) · 4.49 KB
/
Copy pathindex.css
File metadata and controls
307 lines (251 loc) · 4.49 KB
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
h1 {
font-size: 4rem;
color: white;
}
h2 {
font-size: 3rem;
padding: 5rem;
}
h3,
a {
font-size: 2.5rem;
}
h4 {
font-size: 2rem;
}
p {
font-size: 1.5rem;
}
body {
min-width: 750px;
color: white;
}
a {
color: white;
}
/* header section */
/* css-1 header'ın arkaplanına bir image ekleyelim, size olarak cover olsun, position'ı center yapalım ve tekrar etmesin(no-repeat) .*/
header {
width: 100%;
height: 100vh;
text-align: center;
color: white;
}
.header-content {
background-color: #00000083;
padding: 3vw;
}
/* css-2 nav içindeki i'ler için font-size ana font'un 3 katı olsun.*/
nav i {
margin: 2vw;
}
/* css-3 header'daki nav için flex özellikleri ile sütun şeklinde gösterelim ve yatayda ortalayalım ve boşluk ana font kadar olsun.*/
header nav {
}
/* css-4 nav-items class'ı için flex özellikleri ile yatayda ortalayalım ve boşluk ana font'un 2 katı kadar olsun.*/
/* spacer */
.spacer {
width: 100%;
height: 4vh;
background-color: rgb(0, 4, 17);
}
.spacer-sm {
width: 100%;
height: 2vh;
background-color: rgb(0, 4, 17);
}
/* about us section */
.about {
width: 100%;
min-height: 100vh;
text-align: center;
background-image: url('https://i.ibb.co/V9RG7fy/staff-cooks.jpg');
background-size: cover;
background-position: top;
background-repeat: no-repeat;
}
.about-container {
min-height: 100vh;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
background-color: rgb(0, 4, 17, 0.8);
}
.about h2 {
width: 100%;
}
.about-container .text {
width: 50%;
text-align: center;
}
.text p {
font-size: 2.5rem;
}
.text h3 {
font-size: 4rem;
}
/* contact us section */
.contact {
text-align: center;
background-image: url('https://i.ibb.co/HCZ4vjN/jumbo-restaurant-md.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-color: rgb(0, 4, 17);
}
.contact-container {
width: 100%;
height: 100%;
background-color: rgb(0, 4, 17, 0.8);
}
.contact h2 {
padding-top: 5vh;
}
.contact h3 {
padding-top: 2.5vh;
}
.contact p {
padding: 0.5vh 0;
}
.info {
width: 100%;
display: flex;
justify-content: space-around;
flex-wrap: wrap;
}
.address {
width: 25%;
}
.hours {
width: 25%;
padding-bottom: 2.5vh;
}
/* footer section */
footer {
width: 100%;
padding: 2.5vh;
font-size: 3rem;
background-color: rgb(0, 4, 17);
display: flex;
flex-direction: column;
gap: 2rem;
}
footer nav {
display: flex;
justify-content: center;
margin-top: 0px;
gap: 2rem;
}
footer form {
max-width: 500px;
margin: auto;
text-align: center;
}
footer p {
text-align: center;
}
footer a {
font-size: 2.2rem;
}
footer input {
padding: 5px;
width: 65%;
font-size: 2rem;
}
footer .button {
padding: 4px 20px;
display: inline-block;
background-color: rgb(226, 226, 226);
text-align: center;
font-size: 2rem;
}
footer div {
color: black;
}
/* mobile media query */
/* css-5 500px'e kadar olan ekran genişliği için media query kuralını ayarlayalım.*/
@media() {
/* css-6 body'de minimum width 350px yapalım, metinleri ortalayalım ve yazı rengini siyah yapalım.*/
h1 {
font-size: 6rem;
}
h2 {
font-size: 5rem;
padding-bottom: 2rem;
}
h3 {
font-size: 4.5rem;
text-align: center;
padding: 2rem;
}
h4,
a {
font-size: 3.5rem;
text-align: center;
width: 100%;
}
p {
font-size: 3rem;
text-align: center;
}
/* header section */
/* css-7 nav-items class'ı için flex yönünü sütun yapalım ve ters eksende ortalayalım, aralıkları 1rem yapalım, dış boşluğu dikeyde ana font'un 2 katı ve yatayda 0 yapalım..*/
/* about us section */
.about {
color: white;
height: 100%;
}
.about h2 {
width: 100%;
padding-top: 5vh;
}
.about-container .text {
width: 85%;
}
.text h3 {
font-size: 3.5rem;
}
.text p {
font-size: 2.5rem;
}
/* contact us section */
.contact {
color: white;
}
.contact h2 {
font-size: 4rem;
}
.contact h3 {
padding-top: 2.5vh;
font-size: 3rem;
}
.info {
flex-wrap: wrap;
}
.address {
width: 100%;
padding-bottom: 2.5vh;
}
.hours {
width: 100%;
}
.contacts {
width: 100%;
padding-bottom: 2.5vh;
}
/* footer section */
footer {
height: auto;
padding-top: 2.5vh;
font-size: 2rem;
color: white;
}
footer h3 {
border: unset;
font-size: 3rem;
}
footer p {
font-size: 2rem;
}
}