forked from Iqbolshoh/php-test-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
150 lines (126 loc) · 3.81 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test Platform</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
</head>
<style>
.hero {
width: 100%;
text-align: center;
padding: 7rem 2rem;
background: #34495e;
color: #f39c12;
border-top-right-radius: 15px;
border-top-left-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
margin: 0 auto;
transform: translateY(0);
opacity: 0;
animation: fadeInUp 1s ease-out forwards;
}
@keyframes fadeInUp {
0% {
opacity: 0;
transform: translateY(50px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.hero__title {
font-size: 4.5rem;
font-weight: 600;
margin-bottom: 1.5rem;
letter-spacing: -1.5px;
text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
line-height: 1.2;
}
.hero__subtitle {
font-size: 1.8rem;
font-weight: 400;
margin-bottom: 2.5rem;
opacity: 0.9;
letter-spacing: 0.5px;
color: #ecf0f1;
}
.hero__button {
font-size: 1.7rem;
font-weight: 600;
padding: 1.3rem 3rem;
border-radius: 50px;
border: none;
cursor: pointer;
transition: all 0.3s ease;
letter-spacing: 1px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
margin: 10px;
}
.create-test-btn {
background-color: #e67e22;
color: white;
}
.create-test-btn:hover {
background-color: #d35400;
transform: scale(1.05);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.start-test-btn {
background-color: #3498db;
color: white;
}
.start-test-btn:hover {
background-color: #2980b9;
transform: scale(1.05);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.hero__button:focus {
outline: none;
}
.features {
background: #f39c12;
color: white;
text-align: center;
padding: 7rem 2rem;
border-bottom-right-radius: 15px;
border-bottom-left-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
width: 100%;
margin: 0 auto;
transform: translateY(0);
opacity: 0;
animation: fadeInUp 1s ease-out forwards;
}
@media (max-width: 768px) {
.hero__title {
font-size: 2.5rem;
}
.hero__subtitle {
font-size: 1.4rem;
}
.hero__button {
font-size: 1.4rem;
padding: 1rem 2rem;
}
}
</style>
<body>
<?php include 'includes/header.php' ?>
<div class="container">
<section class="hero">
<h1 class="hero__title">Welcome to Test Platform</h1>
<p class="hero__subtitle">Create your own tests, improve your skills, and share them with others.</p>
<a href="./admin/"><button class="hero__button create-test-btn">Create Test</button></a>
<a href="my_tests.php"><button class="hero__button start-test-btn">My Tests</button></a>
</section>
<br>
<section class="features">
<p class="hero__subtitle">Test Platform provides a comprehensive environment where you can create personalized tests on various topics. Whether you're preparing for exams or enhancing your skills, you can design quizzes, share them with others, and track progress. Join us to create, share, and test your knowledge while helping others do the same!</p>
</section>
</div>
<?php include 'includes/footer.php' ?>
</body>
</html>