Rework my page and add info from listenbrainz

This commit is contained in:
2026-01-22 23:55:58 +03:00
parent e97985b624
commit ea5156aa6c
18 changed files with 336 additions and 227 deletions
@@ -0,0 +1,24 @@
// Palette: Catppuccin Mocha
// https://catppuccin.com/palette/
$base: #1e1e2e;
$text: #cdd6f4;
$mantle: #181825;
$crust: #11111b;
$overlay0: #6c7086;
$overlay1: #7f849c;
$overlay2: #9399b2;
$surface0: #313244;
$surface1: #45475a;
$surface2: #585b70;
$subtext0: #a6adc8;
$subtext1: #bac2de;
$red: #f38ba8;
$green: #a6e3a1;
$peach: #fab387;
$blue: #89b4fa;
$mauve: #8839ef;
+34 -45
View File
@@ -1,29 +1,5 @@
@use "sass:color";
// Palette: Catppuccin Mocha
// https://catppuccin.com/palette/
$base: #1e1e2e;
$text: #cdd6f4;
$mantle: #181825;
$crust: #11111b;
$overlay0: #6c7086;
$overlay1: #7f849c;
$overlay2: #9399b2;
$surface0: #313244;
$surface1: #45475a;
$surface2: #585b70;
$subtext0: #a6adc8;
$subtext1: #bac2de;
$red: #f38ba8;
$green: #a6e3a1;
$peach: #fab387;
$blue: #89b4fa;
$mauve: #8839ef;
@use "catppuccin" as theme;
html {
@@ -33,9 +9,9 @@ html {
body {
display: flex;
flex-direction: column;
background-color: $base;
background-color: theme.$base;
font-family: Pixeloid, PixelMPlus;
color: $text;
color: theme.$text;
width: 100%;
height: 100%;
margin: 0;
@@ -55,7 +31,7 @@ h1 {
a {
color: unset;
text: {
decoration: underline {color: $blue};
decoration: underline {color: theme.$blue};
underline-offset: 1px;
}
transition: 0.3s ease;
@@ -68,7 +44,7 @@ a {
transition: none !important;
display: inline-block;
transform: scale(.98) !important;
background-color: $mantle !important;
background-color: theme.$mantle !important;
}
&.block {
@@ -76,7 +52,7 @@ a {
&:hover {
transform: scale(1.02) translateY(-.25rem);
background-color: $surface1;
background-color: theme.$surface1;
}
}
}
@@ -92,7 +68,7 @@ ul {
header {
display: flex;
justify-content: space-between;
background-color: $mantle;
background-color: theme.$mantle;
padding: .5rem;
font-size: larger;
@@ -105,7 +81,7 @@ footer {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
background-color: $mantle;
background-color: theme.$mantle;
margin-top: 2rem;
padding: 1rem;
column-gap: 4ch;
@@ -113,38 +89,48 @@ footer {
.mono {
font-family: Monocraft, monospace;
background-color: $mantle;
background-color: theme.$mantle;
border-radius: 2px;
padding: 0 .25rem;
color: $subtext0;
color: theme.$subtext0;
overflow-wrap: anywhere;
&:hover {
transition: .3s ease;
background-color: $crust;
background-color: theme.$crust;
}
}
.block {
display: block;
background-color: $surface0;
background-color: theme.$surface0;
border-radius: .5rem;
padding: .5rem;
h2 {
margin: -.5rem -.5rem 1rem;
padding: .5rem;
text-align: center;
}
.block {
background-color: theme.$surface1;
}
& + & {
margin-top: .5rem;
}
&.red {
background-color: color.mix($surface0, $red, 60%);
background-color: color.mix(theme.$surface0, theme.$red, 60%);
}
&.orange {
background-color: color.mix($surface0, $peach, 60%);
background-color: color.mix(theme.$surface0, theme.$peach, 60%);
}
&.green {
background-color: color.mix($surface0, $green, 60%);
&:hover { background-color: color.mix($surface1, $green, 60%); }
&:active { background-color: color.mix($mantle, $green, 60%) !important; }
background-color: color.mix(theme.$surface0, theme.$green, 60%);
&:hover { background-color: color.mix(theme.$surface1, theme.$green, 60%); }
&:active { background-color: color.mix(theme.$mantle, theme.$green, 60%) !important; }
}
& .header {
@@ -215,9 +201,12 @@ footer {
margin-top: 0;
}
img {
a, img {
width: 88px;
height: 31px;
}
img {
transition-timing-function: ease-out;
transition-duration: .2s;
@@ -244,15 +233,15 @@ footer {
}
&-track {
background-color: $base;
background-color: theme.$base;
}
&-thumb {
background-color: $overlay0;
background-color: theme.$overlay0;
border-radius: .25rem;
&:hover {
background-color: $overlay1;
background-color: theme.$overlay1;
}
}
}