-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ejs
183 lines (154 loc) · 4.34 KB
/
index.ejs
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
<head>
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">
<title>멜론 알리미</title>
</head>
<style>
@import url(https://cdn.jsdelivr.net/gh/moonspam/[email protected]/nanumsquare.css);
body {
margin: 0;
display: flex;
justify-content: center;
}
.move {
margin-top: 5px;
font-weight: 600;
color: gray;
}
.wrap_content {
width: 100%;
height: 100%;
overflow: auto;
padding-bottom: 100px;
background-color: rgb(233, 233, 233);
display: flex;
flex-direction: column;
align-items: center;
}
.left_left {
display: flex;
align-items: center;
flex-direction: column;
}
.main_title {
font-family: 'NanumSquare', sans-serif;
display: flex;
width: 100%;
height: 400px;
justify-content: center;
align-items: center;
flex-direction: column;
padding-top: 30px;
padding-bottom: 30px;
font-size: 30px;
}
.floor {
font-family: 'NanumSquare', sans-serif;
display: flex;
justify-content: space-between;
width: 90%;
background-color: white;
border: 1px solid white;
border-radius: 15px;
margin-top: 8px;
margin-bottom: 8px;
height: 70px;
}
.left {
display: flex;
align-items: center;
}
.rank {
font-size: 18px;
width: 60px;
display: flex;
justify-content: center;
font-weight: 600;
}
.right {
width: 60%;
margin-left: 15px;
display: flex;
justify-content: center;
align-items: flex-start;
flex-direction: column;
}
.wrap_title {
display: flex;
flex-direction: row;
font-weight: 700;
}
.title {
font-weight: 600;
margin-bottom: 5px;
}
.melon {
color: rgb(81, 171, 76);
font-weight: 600;
}
.small {
margin-top: 20px;
font-size: 18.5px;
}
footer {
margin-top: 60px;
color: gray;
}
</style>
<body>
<div class="wrap_content">
<div class="main_title">
<div class="wrap_title">
임영웅 실시간 <span class="melon"> 멜론 </span> 순위
</div>
<br />
<div class="small">
<%= time %>
</div>
<div class="small">
<%= data.length %>개 곡이 차트에 있습니다.
</div>
</div>
<% for (var i=0; i < data.length; i ++) { %>
<div class="floor">
<div class="left">
<div class="left_left">
<div class="rank">
<%= data[i].rank %>
</div>
<div class="move">
<% if (data[i].rank_move === '순위 동일') { %>
-
<% } %>
<% if (data[i].rank_move === '단계 상승') { %>
<style> .up { color: #cb7474;} </style>
<div class="up">
▲ <%= data[i].up_value %>
</div>
<% } %>
<% if (data[i].rank_move === '단계 하락') { %>
<style> .down { color: #4f4fcb;} </style>
<div class="down">
▼ <%= data[i].down_value %>
</div>
<% } %>
</div>
</div>
<div class="image_url">
<img src="<%= data[i].image_url %>" class="img" width="70px"/>
</div>
</div>
<div class="right">
<div class="title">
<%= data[i].title %>
</div>
<div class="artist">
<%= data[i].artist %>
</div>
</div>
</div>
<% } %>
<footer>
개발자: 이하람
</footer>
</div>
</body>