blob: 4dae7ea81101ee3c78bc90919ffa846d99274d33 (
plain)
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
|
:root {
--im-happy: dodgerblue;
--im-angry: orangered;
--im-good: hsl(120, 85%, 85%);
--im-active: hsl(20, 85%, 85%);
}
html {
width: 100%;
}
body {
width: 100%;
margin: 0;
box-sizing: border-box;
display: flex;
flex-direction: column;
}
a {
font-family: monospace;
}
#main-article {
max-width: 880px;
margin-top: 1em;
padding: 0 1em;
align-self: center;
}
#title-name {
font-family: monospace;
background-color: black;
color: white;
}
@keyframes content-enter {
from {
opacity: 0;
transform: translateY(100px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes avatar-enter {
from {
opacity: 0;
transform: translateX(100%);
}
to {
opacity: 1;
transform: translateY(0);
}
}
#main-article > * {
animation: content-enter 0.8s;
}
#avatar {
float: right;
animation: avatar-enter 0.8s;
}
.slogan-container {
width: 100%;
position: fixed;
z-index: 1;
top: 0;
}
.slogan {
width: 100%;
padding: 0.5em 1em;
text-align: center;
box-sizing: border-box;
color: white;
position: absolute;
transform: translateY(-100%);
transition: transform 0.8s;
}
.slogan.happy {
background-color: var(--im-happy);
}
.slogan.angry {
background-color: var(--im-angry);
}
body[data-emotion="happy"] .slogan.happy {
transform: translateY(0);
}
body[data-emotion="angry"] .slogan.angry {
transform: translateY(0);
}
.friend-link {
display: inline-block;
font-family: unset;
}
.friend-img {
display: block;
object-fit: cover;
}
.friend-name {
display: block;
text-align: center;
}
footer img {
vertical-align: middle;
}
|