-
Notifications
You must be signed in to change notification settings - Fork 0
/
home-page.html
199 lines (183 loc) · 6.5 KB
/
home-page.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EduHack</title>
<link rel="icon" href="screen-icon.jpg">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <style>
@import url('https://fonts.googleapis.com/css2?family=Maven+Pro:wght@300;400;500;600;700&display=swap');
:root{
--Playfair: 'Playfair Display', serif;
--MavenPro: 'Maven Pro', sans-serif;
--Roboto: 'Roboto', sans-serif;
--dark: #3c393d;
--exDark: #2b2b2b;
}
*{
padding: 0;
margin: 0;
font-family: 'Maven Pro', sans-serif;
}
body{
line-height: 1.4;
color: var(--dark);
font-family: 'Maven Pro', sans-serif;
}
img{
width: 100%;
display: block;
}
.container{
max-width: 1320px;
margin: 0 auto;
padding: 0 1.2rem;
}
header{
min-height: 100vh;
background: linear-gradient(rgba(0, 0, 0, 0.05),rgba(0, 0, 0, 0.05)), url(bg-1.png) center/cover no-repeat fixed;
display: flex;
flex-direction: column;
justify-content: stretch;
}
.banner{
flex: 1;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: #fff;
}
.banner-title{
font-size: 5.5rem;
font-family: var(--MavenPro);
line-height: 1;
}
.banner-title span{
font-family: var(--MavenPro);
color: var(--exDark);
}
.banner p{
padding: 1rem 0 2rem 0;
font-size: 1.2rem;
font-family: var(--MavenPro);
font-weight: 300;
word-spacing: 2px;
}
.banner form{
background: #fff;
border-radius: 2rem;
padding: 0.6rem 1rem;
display: flex;
justify-content: space-between;
}
/* Define the animation */
@keyframes fade-in {
0% {
opacity: 0;
transform: translateY(50%);
}
100% {
opacity: 1;
transform: translateY(0%);
}
}
/* Apply the animation to the banner content */
.banner-title,
.banner p,
.banner form {
animation: fade-in 1s ease-out;
animation-fill-mode: forwards;
opacity: 0;
transform: translateY(50%);
}
.paragraph-input{
font-family: var(--MavenPro);
font-size: 1.1rem;
width: 100%;
outline: 0;
padding: 0.6rem 0;
border: none;
}
.paragraph-input::placeholder{
text-transform: capitalize;
}
.paragraph-btn{
width: 40px;
font-size: 1.1rem;
color: var(--dark);
border: none;
background: transparent;
outline: 0;
cursor: pointer;
}
.border-corner{
--b: 8px; /* border thickness*/
--s: 60px; /* size of the corner*/
--g: 14px; /* the gap*/
--c: #EDC951;
padding: calc(var(--b) + var(--g));
background-image:
conic-gradient(from 90deg at top var(--b) left var(--b),#0000 25%,var(--c) 0),
conic-gradient(from -90deg at bottom var(--b) right var(--b),#0000 25%,var(--c) 0);
background-position:
var(--_p,0%) var(--_p,0%),
calc(100% - var(--_p,0%)) calc(100% - var(--_p,0%));
background-size: var(--s) var(--s);
background-repeat: no-repeat;
background-image:
conic-gradient(from 180deg at top var(--b) right var(--b),#0000 25%,var(--c) 0),
conic-gradient(from 0deg at bottom var(--b) left var(--b),#0000 25%,var(--c) 0);
background-position:
calc(100% - var(--_p,0%)) var(--_p,0%),
var(--_p,0%) calc(100% - var(--_p,0%));
border-radius: 10px;
}
@media (max-width: 768px) {
header {
background-size: cover;
background-attachment: scroll;
}
.banner-title {
font-size: 3rem;
}
.banner form {
flex-direction: column;
}
.paragraph-input {
width: 100%;
margin-top: 1rem;
}
.paragraph-btn {
width: 100%;
margin-top: 1rem;
}
}
</style>
<script type="text/javascript" src = "backend.js"></script>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7073487192838712"
crossorigin="anonymous"></script>
</head>
<body>
<header>
<div class="banner">
<div class="container">
<div class="border-corner" style="--g:60px; --b:8px; --s: 100px; --c:#ffffff;">
<h1 class="banner-title">
<span>EduHack.</span> QuizWiz
</h1>
<p>from forgotten notes to <b><i><u>Unforgettable Knowledge.</u></i></b></p>
<form>
<input type="text" class="paragraph-input" id="paragraph-input" placeholder="Enter your paragraph...">
<button type="button" class="paragraph-btn" onclick = "processParagraph()">
<a href="quiz-page.html">
<i class="fas fa-arrow-right"></i>
</a>
</button>
</form>
</div>
</div>
</header>
</body>
</html>