-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
145 lines (143 loc) · 3.8 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
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
<!DOCTYPE html>
<html>
<head>
<title>자기소개</title>
<meta charset="utf-8">
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
<py-script src="/script.py"></py-script>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100;300;400;500;700;900&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width">
<style>
body { font-family: 'Noto Sans KR', sans-serif; }
.hidden { display: none; }
.container {
background: white;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
height: 58vmin;
width: 80vmin;
border-radius: 4vmin;
display: flex;
flex-direction: column;
justify-content: space-between;
filter: drop-shadow(3vmin 3vmin 3vmin rgba( 0, 0, 0, 0.15 ));
padding: 6vmin;
}
.hcontainer {
width: 80vmin;
position: absolute;
display: flex;
flex-direction: row;
justify-content: start;
}
.vcontainer {
padding-left: 3vmin;
position: relative;
top: -0.7vmin;
display: flex;
flex-direction: column;
justify-content: space-around;
}
.acontainer {
height: 40vmin;
width: 45vmin;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.fcontainer {
position: relative;
display: flex;
flex-direction: row;
justify-content: space-between;
top: 18vmin;
}
.profile {
height: 15vmin;
width: 15vmin;
border-radius: 100%;
}
.picture {
border-radius: 2vmin;
height: 40vmin;
width: 30vmin;
}
.major {
font-weight: 700;
font-size: 3vmin;
}
.minor {
padding-left: 1vmin;
font-weight: 500;
font-size: 3vmin;
}
#name {
font-weight: 700;
font-size: 8vmin;
}
#description {
font-weight: 500;
font-size: 3vmin;
position: relative;
top: -1vmin;
}
#button {
color: white;
background-color: black;
font-weight: 500;
font-size: 3vmin;
height: 7vmin;
width: 45vmin;
border-radius: 2vmin;
border: none;
margin-top: 0.6vmin;
}
</style>
</head>
<body>
<span class="hidden" id="g0">white</span>
<span class="hidden" id="g1">white</span>
<div class="container">
<div class="hcontainer">
<img src="/profile.png" class="profile">
<div class="vcontainer">
<span id="name">Loading...</span>
<span id="description">Loading...</span>
</div>
</div>
<div class="fcontainer">
<div class="acontainer">
<div class="tcontainer">
<span class="major" id="a0">Loading</span>
<span class="minor" id="b0">...</span>
</div>
<div class="tcontainer">
<span class="major" id="a1">Loading</span>
<span class="minor" id="b1">...</span>
</div>
<div class="tcontainer">
<span class="major" id="a2">Loading</span>
<span class="minor" id="b2">...</span>
</div>
<div class="tcontainer">
<span class="major" id="a3">Loading</span>
<span class="minor" id="b3">...</span>
</div>
<button id="button" pys-onClick="button">Loading...</button>
</div>
<img src="/picture.png" class="picture">
</div>
</div>
</body>
<script>
var status = 0;
function BackgroundReset(){
document.title = document.getElementById("name").innerText;
let gradient = document.getElementsByClassName("hidden");
document.getElementsByTagName("html")[0].style.background = "linear-gradient(90deg, " + gradient[0].innerText + ", " + gradient[1].innerText + ")";
}
if (status < 50) { status++; setInterval(BackgroundReset, 0.1); }
</script>
</html>