major UI/UX improvements

Signed-off-by: ari melody <ari@arimelody.me>
This commit is contained in:
ari melody 2024-03-18 15:04:04 +00:00
parent 93539c8376
commit 6efd47c6c6
17 changed files with 739 additions and 458 deletions

View file

@ -1,3 +1,5 @@
@import url("/style/main.css");
@font-face {
font-family: "Monaspace Argon";
src: url("/font/monaspace-argon/MonaspaceArgonVarVF[wght,wdth,slnt].woff2") format("woff2-variations");
@ -10,6 +12,7 @@ html,
body {
margin: 0;
padding: 0;
font-size: 18px;
color: #fff;
background-color: #111;
font-family: "Monaspace Argon", monospace;
@ -29,39 +32,46 @@ body {
}
#go-back {
position: absolute;
top: 1rem;
position: fixed;
top: 4rem;
left: 1rem;
width: 2.5rem;
height: 2.5rem;
margin: 0;
font-size: 1.5rem;
line-height: 2.6rem;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
background-color: #fff1;
background-color: #111;
border-radius: 4px;
text-decoration: none;
box-shadow: 0 0 8px #0004;
z-index: 100
z-index: 1;
}
main {
position: absolute;
top: 3rem;
width: 100vw;
min-height: calc(100vh - 9rem);
margin: 0;
display: flex;
min-height: calc(100vh - 6rem);
justify-content: center;
align-items: center
align-items: center;
}
#music-container {
position: absolute;
width: min(960px, calc(100vw - 4rem));
height: 360px;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
gap: 4rem;
animation: card-init .5s forwards
font-size: 16px;
animation: card-init .5s forwards;
overflow-y: clip;
padding: 4rem;
}
#art-container {
@ -87,6 +97,7 @@ main {
width: 33.3%;
height: 33.3%;
z-index: 2;
/* pointer-events: none; */
}
#art-container > div.tilt-topleft {
@ -178,8 +189,8 @@ main {
#artwork {
--shine: 1.05;
--shadow: 0.8;
width: 100%;
max-width: 512px;
width: 360px;
height: 360px;
margin: auto;
display: flex;
justify-content: center;
@ -194,7 +205,19 @@ main {
div#vertical-line {
width: 1px;
background-color: #fff4;
box-shadow: 0 0 16px #000;
}
div#info {
display: flex;
flex-direction: column;
transition: transform .5s ease;
gap: 6rem;
}
#title-container {
display: flex;
align-items: baseline;
flex-direction: row;
}
#title {
@ -205,14 +228,15 @@ div#vertical-line {
#year {
margin-left: .9em;
font-size: .5em;
color: #eee
font-size: 1.2em;
color: #eee8;
font-weight: bold;
}
#artist {
margin: .2em 0 1em 0;
font-size: 1em;
color: #eee
color: #eee;
}
#title,
@ -227,11 +251,11 @@ div#vertical-line {
color: #fff;
background-color: #111;
text-transform: uppercase;
border-radius: 4px
border-radius: 4px;
}
#type.single {
background-color: #3b47f4
background-color: #3b47f4;
}
#type.ep {
@ -308,6 +332,46 @@ div#vertical-line {
font-size: 1.2em;
}
ul#extras {
list-style: none;
display: flex;
padding: 0;
gap: .6em;
}
ul#extras li a {
color: #888;
text-decoration: none;
font-style: italic;
}
div#info > div {
max-height: 360px;
min-height: 360px;
overflow-y: scroll;
padding: 2rem 4rem;
margin: -2rem -4rem;
mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}
a.scrollback {
color: #888;
font-style: italic;
}
#credits ul {
list-style: "> ";
}
#credits ul li {
margin-bottom: 1rem;
}
#lyrics p {
max-width: 500px;
white-space: pre-line;
}
#share {
margin: 0;
display: inline-block;
@ -416,6 +480,16 @@ footer a:hover {
text-decoration: underline
}
@media only screen and (min-width: 800px) {
div#info:has(> #credits:target) {
transform: translateY(calc(-360px + -6rem));
}
div#info:has(> #lyrics:target) {
transform: translateY(calc((-360px + -6rem) * 2));
}
}
@media only screen and (max-width: 800px) {
main {
min-height: calc(100vh - 4rem);
@ -424,10 +498,10 @@ footer a:hover {
#music-container {
width: calc(100vw - 8rem);
height: fit-content;
padding: 2rem 0 6rem 0;
gap: 1rem;
padding: 2rem 0;
flex-direction: column;
text-align: center
text-align: center;
}
#art-container {
@ -436,21 +510,40 @@ footer a:hover {
}
#artwork {
max-width: 40vh;
max-height: 40vh;
width: 50vw;
height: auto;
}
#vertical-line {
display: none;
}
#music-container #info {
width: 100%
div#info {
width: 100%;
gap: 2rem;
}
div#info > div {
max-height: fit-content;
min-height: fit-content;
padding: 0;
margin: 0;
overflow-y: unset;
mask-image: none;
}
a.scrollback {
display: none;
}
#title-container {
flex-direction: column;
align-items: center;
}
#year {
display: block;
margin: -.5em 0 .5rem;
margin: 0;
}
#links {
@ -458,6 +551,15 @@ footer a:hover {
justify-content: center;
}
#extras {
justify-content: center;
}
#credits ul {
padding: 0;
list-style: none;
}
#share.active: : after {
transform: translate(calc(-50% - .6em),1.5em);
}
@ -471,21 +573,10 @@ footer a:hover {
font-size: .8rem;
}
}
#pride-flag {
display: none;
}
#overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-image: linear-gradient(180deg, rgba(0,0,0,0) 15%, rgb(0, 0, 0) 40%, rgb(0, 0, 0) 60%, rgba(0,0,0,0) 85%);
background-size: 100vw .2em;
background-repeat: repeat;
opacity: .5;
pointer-events: none;
/* animation: linear .05s infinite alternate overlay-flicker; */
mix-blend-mode: overlay;
}
@keyframes background-init {