-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
290 lines (250 loc) · 9.99 KB
/
home.php
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Home Page</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css2?family=Cinzel+Decorative&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Varela+Round&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@300&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Mulish:wght@300&display=swap" rel="stylesheet">
<style>
body {
margin: 0;
background-image: url("images/quiz-bg.jpg");
background-size: cover;
display: flex;
flex-direction: column;
height: 100vh;
}
.header {
min-height: 50px;
background-image: linear-gradient(to right,#082032, #240054);
height: 7vh;
position: fixed;
top: 0;
width: 100%
}
#title {
color: #C355F5;
font-weight: 700;
font-size: 1.2rem;
font-family: 'Cinzel Decorative', cursive;
text-transform: uppercase;
}
.head-items {
display: flex;
flex-direction: row;
list-style: none;
padding: 5vh auto;
margin-top: 0;
}
.head-items>li {
margin: 0.8rem 1.6rem;
font-size: 1.1rem;
}
.head-items>li>a {
text-decoration: none;
color: #BC8CF2;
font-family: 'Noto Sans', sans-serif;
}
.head-items>li>a:hover {
transition: 500ms;
color: #EEEEEE;
}
#first-item {
margin-left: 52vw;
}
.footer {
color: #ECF2F9;
min-height: 50px;
margin-top: auto;
font-family: sans-serif;
width: 100%;
height: 50px;
text-align: center;
background-image: linear-gradient(to right, #3490DE, #6639A6);
place-items: center;
}
.facts-place {
text-align: left;
display: flex;
flex-wrap: wrap;
justify-content: left;
max-width: 1200px;
margin-block: 2rem;
gap: 4.6rem;
}
.facts-card {
display: flex;
flex-direction: column;
width: clamp(20rem, calc(20rem + 2vw), 22rem);
overflow: hidden;
box-shadow: 0 .1rem 1rem rgba(0, 0, 0, 0.1);
border-radius: 1em;
background: rgba(170, 20, 240, 0.3);
font-family: 'Quicksand', sans-serif;
}
.facts-card:hover {
transition: 200ms;
transform: scale(1.05);
}
img {
max-width: 100%;
display: block;
object-fit: cover;
}
.card__body {
padding: 1rem;
display: flex;
flex-direction: column;
gap: .5rem;
text-align: left
}
.card__body>h4 {
margin-top: 2vh;
padding: 0 0.6rem;
color: #E8F6EF;
font-size: 1.5rem;
text-transform: capitalize;
font-family: 'Nunito', sans-serif;
}
main {
margin-top: 5vh;
padding: 0 5vw;
text-align: center
}
.page-head {
font-family: 'Varela Round', sans-serif;
font-size: 4.5rem;
padding: 31vh 0;
color: #F1F8FD;
}
h2{
color: #08D9D6;
font-family: 'Mulish', sans-serif;
font-size : 1.75rem;
text-transform : capitalize
}
</style>
</head>
<body>
<?php include('header.php') ?>
<main>
<h1 class="page-head">Welcome to Quizophile!</h1>
<h2>You can read some facts since you're here.</h2>
<div class="facts-place">
<div class="facts-card">
<div class="card__header">
<img src="https://solarsystem.nasa.gov/system/content_pages/main_images/1534_50_Enceladus_768.jpg"
alt="card__image" class="card__image" width="600" height="250">
</div>
<div class="card__body">
<h4> Enceladus, one of Saturn’s smaller moons, reflects 90% of the Sun’s light. </h4>
</div>
</div>
<div class="facts-card">
<div class="card__header">
<img src="https://wonderfulengineering.com/wp-content/uploads/2017/07/hole-through-the-earth.png"
alt="card__image" class="card__image" width="600" height="250">
</div>
<div class="card__body">
<h4> It would take 19 minutes to fall from the North Pole to Earth’s core. </h4>
</div>
</div>
<div class="facts-card">
<div class="card__header">
<img src="https://www.treehugger.com/thmb/0YzrZoQ1XuYCdsMSG3meMO6_C58=/1000x562/smart/filters:no_upscale()/__opt__aboutcom__coeus__resources__content_migration__treehugger__images__2019__09__cloud-0693b27e05ee4a1c802182da4aa117a9.jpg"
alt="card__image" class="card__image" width="600" height="250">
</div>
<div class="card__body">
<h4> A cloud typically weighs 1.1 Million pounds. </h4>
</div>
</div>
<div class="facts-card">
<div class="card__header">
<img src="https://sciencenotes.org/wp-content/uploads/2015/05/glass-marble.jpg"
alt="card__image" class="card__image" width="600" height="250">
</div>
<div class="card__body">
<h4> A ball of glass bounces higher than ball of rubber. </h4>
</div>
</div>
<div class="facts-card">
<div class="card__header">
<img src="https://groovyhistory.com/content/50251/f3a19f8d9d4f9810ba5773370d875dcc.jpg"
alt="card__image" class="card__image" width="600" height="250">
</div>
<div class="card__body">
<h4> Nintendo was started while the Ottoman Empire still existed. </h4>
</div>
</div>
<div class="facts-card">
<div class="card__header">
<img src="https://www.danspapers.com/wp-content/uploads/2021/06/360_F_325682910_0QdehxnHliKYvz11ID0StPgySJhUdvBU.jpg"
alt="card__image" class="card__image" width="600" height="250">
</div>
<div class="card__body">
<h4> Lobsters don't die naturally nor do they age. </h4>
</div>
</div>
<div class="facts-card">
<div class="card__header">
<img src="https://miro.medium.com/max/1300/1*Amvp5CwsYdhW87qDkDWoDQ.jpeg"
alt="card__image" class="card__image" width="600" height="250">
</div>
<div class="card__body">
<h4> If you fold a paper 42 times, it would reach to moon. </h4>
</div>
</div>
<div class="facts-card">
<div class="card__header">
<img src="https://i.dailymail.co.uk/i/pix/2017/04/07/13/3F0B412C00000578-0-image-a-43_1491569118247.jpg"
alt="card__image" class="card__image" width="600" height="250">
</div>
<div class="card__body">
<h4> Coca-Cola was originally green in color. </h4>
</div>
</div>
<div class="facts-card">
<div class="card__header">
<img src="https://www.rd.com/wp-content/uploads/2017/08/06-Nothing-Rhymes-with-Orange%E2%80%94and-10-More-Words.-Bet-You-Cant-Guess-Them.jpg"
alt="card__image" class="card__image" width="600" height="250">
</div>
<div class="card__body">
<h4> "Rhythm" is the longest English word without a vowel. </h4>
</div>
</div>
<div class="facts-card">
<div class="card__header">
<img src="https://www.icytales.com/wp-content/uploads/2016/07/bears.jpg"
alt="card__image" class="card__image" width="600" height="250">
</div>
<div class="card__body">
<h4> All polar bears are left handed. </h4>
</div>
</div>
<div class="facts-card">
<div class="card__header">
<img src="https://images.everydayhealth.com/images/diet-nutrition/what-is-honey-nutrition-health-benefits-risks-and-uses-722x406.jpg"
alt="card__image" class="card__image" width="600" height="250">
</div>
<div class="card__body">
<h4> Honey is the only food that doesn't spoil. </h4>
</div>
</div>
<div class="facts-card">
<div class="card__header">
<img src="https://i0.wp.com/travelwineshoes.com/wp-content/uploads/2019/06/img_1428.png?fit=630%2C487&ssl=1"
alt="card__image" class="card__image" width="600" height="250">
</div>
<div class="card__body">
<h4> The name of all the continents end with the same letter that they start with. </h4>
</div>
</div>
</div>
</main>
<?php include('footer.php') ?>
</body>
</html>