-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (62 loc) · 1.54 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
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://ndzn.github.io/lastfm-obsoverlay/fm.js"></script>
</head>
<body>
<h3><div id="status"></div></h3>
<div class="track-container">
<img class="track-image" id="image" alt="" src="../blank.png">
<div class="track-info" id="currentTrack">
<div id="track"></div>
<div id="artist"></div>
</div>
</div>
</body>
<style>
@import url(https://fonts.bunny.net/css?family=lexend-deca:100,200,300,400,500,600,700,800,900);
body {
color: #fff;
font-family: 'Lexend Deca', sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
.track-container {
display: flex;
align-items: center;
justify-content: left;
width: 327px;
height: 97px;
border-radius: 9px;
position: relative;
overflow: hidden;
}
.track-image {
width: 100%;
height: 100%;
object-fit: cover;
filter: brightness(20%);
transition: opacity .2s ease-in-out;
pointer-events: none;
}
.track-info {
position: absolute;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
text-align: left;
color: #fff;
padding: 10px;
font-family: 'Lexend Deca', sans-serif;
opacity: 0;
transition: opacity .4s ease-in-out;
}
.fade-in {
opacity: 1;
}
</style>
</html>