add caching and change the layout a bit

This commit is contained in:
rramiachraf
2022-07-01 23:40:13 +01:00
parent 7b2c43cc16
commit e7aa7403c7
8 changed files with 114 additions and 29 deletions

View File

@ -1,4 +1,4 @@
document.querySelectorAll("#lyrics > a").forEach(item => {
document.querySelectorAll("#lyrics a").forEach(item => {
item.addEventListener("click", getAnnotation)
})

View File

@ -45,10 +45,6 @@ body {
}
#lyrics {
position: absolute;
left: 50%;
transform: translateX(-50%);
padding: 1rem 0;
color: #171717;
line-height: 2.5rem;
}
@ -58,6 +54,10 @@ body {
color: inherit;
}
#lyrics a:hover {
background-color: #ccc;
}
#nav {
font-size: 2.5rem;
text-align: center;
@ -76,24 +76,30 @@ a {
#metadata {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
padding: 1rem;
text-align: center;
}
#metadata h1 {
font-size: 2.2rem;
font-size: 2rem;
color: #171717;
}
#metadata h2 {
font-size: 1.5rem;
font-size: 1.4rem;
color: #1E1E1E;
text-transform: uppercase;
font-weight: 500;
}
#metadata > img {
width: 20rem;
border-radius: 3px;
box-shadow: 0 1px 1px #ddd;
}
#container {
display: flex;
padding: 2rem;
gap: 5rem;
justify-content: center;
}