refactor render function and add home page

This commit is contained in:
rramiachraf
2022-10-26 23:19:03 +01:00
parent e7e08aad6d
commit 4b70a153aa
6 changed files with 56 additions and 12 deletions

View File

@ -14,5 +14,6 @@ document.querySelectorAll("#lyrics a").forEach(item => {
function getAnnotation(e) {
e.preventDefault()
console.log(e.target.parentElement.getAttribute("href"))
//const uri = e.target.parentElement.getAttribute("href")
console.log("Annotations are not yet implemented!")
}

View File

@ -149,3 +149,32 @@ a {
display: none;
}
#home {
display: flex;
flex-direction: column;
gap: 1.5rem;
justify-content: center;
align-items: center;
padding: 2rem;
}
#home div {
text-align: center;
}
#home h1 {
font-weight: 600;
font-size: 2.2rem;
color: #222;
}
#home p {
color: #333;
}
#home code {
background-color: #eee;
padding: 0.3rem 1rem;
border-radius: .5rem;
color: #333;
}