forked from oneee-playground/teacher-birthday
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
66 lines (58 loc) · 1.67 KB
/
index.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
<!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">
<link rel='stylesheet' href='https://cdn-uicons.flaticon.com/uicons-regular-straight/css/uicons-regular-straight.css'>
<link rel="stylesheet" href="reset.css">
<style>
body {
background-color: black;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
canvas {
width: 100%;
height: 720px;
}
#header {
position: absolute;
display: flex;
flex-direction: column;
background: linear-gradient(to right, #fbcac9, #8ca6ce, #ec6ead);
background-size: 300% 300%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-size: 90px;
font-weight: bold;
animation: gradient 3s ease infinite;
}
#header h1 {
margin-left: 70px;
}
#header i {
font-size: 70px;
text-align: center;
}
@keyframes gradient {
0%{background-position:78% 0%}
50%{background-position:23% 100%}
100%{background-position:78% 0%}
}
</style>
<title>Happy Birthday!</title>
</head>
<body>
<canvas id="canvas">
</canvas>
<div id="header">
<i class="fi fi-rs-cake-birthday"></i>
<h1>Happy Birthday!</h1>
</div>
<script src="./app.js"></script>
</body>
</html>