first commit! 🎉

Signed-off-by: ari melody <ari@arimelody.me>
This commit is contained in:
ari melody 2024-03-18 10:34:43 +00:00
commit 27d6e4f011
97 changed files with 2957 additions and 0 deletions

448
public/style/main.css Normal file
View file

@ -0,0 +1,448 @@
@font-face {
font-family: "Monaspace Argon";
src: url("/font/monaspace-argon/MonaspaceArgonVarVF[wght,wdth,slnt].woff2") format("woff2-variations");
font-weight: 125 950;
font-stretch: 75% 125%;
font-style: oblique 0deg 20deg;
}
:root {
--primary: #b7fd49;
--secondary: #f8e05b;
--tertiary: #f788fe;
--links: #5eb2ff;
}
.col-primary {
color: var(--primary);
}
.col-secondary {
color: var(--secondary);
}
.col-tertiary {
color: var(--tertiary);
}
body {
margin: 0;
padding: 0;
background: #080808;
color: #eee;
font-family: "Monaspace Argon", monospace;
font-size: 18px;
text-shadow: 0 0 3em;
scroll-behavior: smooth;
}
header {
position: fixed;
top: 0;
left: 0;
width: 100vw;
border-bottom: 1px solid #888;
background-color: #080808;
z-index: 1;
}
nav {
width: min(calc(100% - 4rem), 720px);
height: 3em;
margin: auto;
padding: 0 1em;
display: flex;
flex-direction: row;
gap: .8em;
align-items: center;
}
img#header-icon {
width: 2em;
height: 2em;
margin: .5em;
display: block;
}
#header-text {
width: 11em;
margin-left: -0.5rem;
display: flex;
flex-direction: column;
justify-content: center;
flex-grow: 1;
}
#header-text h1 {
margin: 0;
font-size: 1em;
}
#header-text h2 {
height: 1.2em;
line-height: 1.2em;
margin: 0;
font-size: .7em;
color: #bbb;
}
#header-links-toggle {
width: 3em;
height: 3em;
display: none;
justify-content: center;
align-items: center;
transition: background-color .2s;
}
#header-links-toggle:hover {
background-color: #fff2;
}
header ul#header-links {
margin: 0;
padding: 0;
display: flex;
flex-direction: row;
gap: .5em;
align-items: center;
}
header ul li {
list-style: none;
}
header ul li a,
header ul li span {
padding: .2em .5em;
border: 1px solid var(--links);
color: var(--links);
border-radius: 2px;
background-color: transparent;
transition-property: color, border-color, background-color;
transition-duration: .2s;
animation-delay: 0s;
animation: list-item-fadein .2s forwards;
opacity: 0;
}
header ul li span {
color: #aaa;
border-color: #aaa;
cursor: default;
text-decoration: none;
}
header ul li a:hover {
color: #eee;
border-color: #eee;
background-color: var(--links) !important;
text-decoration: none;
}
#toggle-crt a {
color: var(--primary);
border-color: var(--primary);
opacity: 1;
}
#toggle-crt a:hover {
color: #111;
background-color: var(--primary) !important;
}
#toggle-crt.disabled a {
opacity: .5 !important;
}
main {
width: min(calc(100% - 4rem), 720px);
min-height: calc(100vh - 10.3rem);
margin: 5rem auto 2rem auto;
}
main h1 {
line-height: 3rem;
color: var(--primary);
}
main h2 {
color: var(--secondary);
}
main h3 {
color: var(--tertiary);
}
a {
color: var(--links);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
small {
font-size: 1em;
color: #aaa;
}
span.newchar {
animation: newchar 0.25s;
}
@keyframes newchar {
from {
background: #fff8;
}
}
span.hide {
display: none;
}
h1:hover span.hide {
display: initial;
opacity: 0.1;
}
div#me_irl {
width: fit-content;
height: fit-content;
border: 2px solid white;
}
div#me_irl img {
display: block;
}
div#me_irl::before {
content: "";
position: absolute;
width: 104px;
height: 104px;
transform: translate(2px, 2px);
background-image: linear-gradient(to top right,
var(--primary),
var(--secondary));
z-index: -1;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
small,
blockquote {
transition: background-color 0.1s;
}
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
color: inherit;
}
h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
text-decoration: none;
}
main h1:hover,
main h2:hover,
main h3:hover,
main h4:hover,
main h5:hover,
main h6:hover,
main p:hover,
main small:hover,
main blockquote:hover {
background-color: #fff1;
}
blockquote {
margin: 1rem 0;
padding: 0 2.5rem;
}
hr {
text-align: center;
line-height: 0px;
border-width: 1px 0 0 0;
border-color: #888f;
margin: 1.5em 0;
overflow: visible;
}
ul.links {
display: flex;
gap: 1em .5em;
flex-wrap: wrap;
}
ul.links li {
list-style: none;
}
ul.links li a {
padding: .2em .5em;
border: 1px solid var(--links);
color: var(--links);
border-radius: 2px;
background-color: transparent;
transition-property: color, border-color, background-color;
transition-duration: .2s;
animation-delay: 0s;
animation: list-item-fadein .2s forwards;
opacity: 0;
}
ul.links li a:hover {
color: #eee;
border-color: #eee;
background-color: var(--links) !important;
text-decoration: none;
box-shadow: 0 0 1em var(--links);
}
@keyframes list-item-fadein {
from {
opacity: 1;
background: #fff8;
}
to {
opacity: 1;
background: transparent;
}
}
div#web-buttons {
margin: 2rem 0;
}
#web-buttons a {
text-decoration: none;
}
#web-buttons img {
image-rendering: auto;
image-rendering: crisp-edges;
image-rendering: pixelated;
}
#web-buttons img:hover {
margin: -1px;
border: 1px solid #eee;
transform: translate(-2px, -2px);
box-shadow: 1px 1px 0 #eee, 2px 2px 0 #eee;
}
footer {
border-top: 1px solid #888;
}
#footer {
width: min(calc(100% - 4rem), 720px);
margin: auto;
padding: 2rem 0;
color: #aaa;
}
@keyframes overlay-flicker {
from {
opacity: .5;
}
to {
opacity: .6;
}
}
@keyframes overlay-scroll {
from {
background-position-y: 0;
}
to {
background-position-y: .2em;
}
}
#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;
}
@media screen and (max-width: 780px) {
body {
font-size: 14px;
}
nav {
width: calc(100vw - 2rem);
margin: 0;
}
div#header-text {
flex-grow: 1;
}
a#header-links-toggle {
display: flex;
}
header ul#header-links {
position: fixed;
left: 0;
top: 2.7rem;
width: calc(100vw - 2rem);
padding: 1rem;
flex-direction: column;
gap: 1rem;
border-bottom: 1px solid #888;
background: #080808;
display: none;
}
header ul#header-links.open {
display: flex;
}
ul#header-links li {
width: 100%;
}
ul#header-links li a,
ul#header-links li span {
margin: 0;
display: block;
font-size: 1rem;
text-align: center;
}
main {
margin-top: 4rem;
}
}

View file

@ -0,0 +1,550 @@
@font-face {
font-family: "Monaspace Argon";
src: url("/font/monaspace-argon/MonaspaceArgonVarVF[wght,wdth,slnt].woff2") format("woff2-variations");
font-weight: 125 950;
font-stretch: 75% 125%;
font-style: oblique 0deg 20deg;
}
html,
body {
margin: 0;
padding: 0;
color: #fff;
background-color: #111;
font-family: "Monaspace Argon", monospace;
}
#background {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-size: cover;
background-position: center;
filter: blur(25px) saturate(25%) brightness(0.5);
-webkit-filter: blur(25px) saturate(25%) brightness(0.5);;
animation: background-init .5s forwards,background-loop 30s ease-in-out infinite
}
#go-back {
position: absolute;
top: 1rem;
left: 1rem;
width: 2.5rem;
height: 2.5rem;
margin: 0;
font-size: 1.5rem;
display: flex;
justify-content: center;
align-items: center;
color: #fff;
background-color: #fff1;
border-radius: 4px;
text-decoration: none;
box-shadow: 0 0 8px #0004;
z-index: 100
}
main {
display: flex;
min-height: calc(100vh - 6rem);
justify-content: center;
align-items: center
}
#music-container {
position: absolute;
width: min(960px, calc(100vw - 4rem));
display: flex;
flex-direction: row;
flex-wrap: nowrap;
gap: 4rem;
animation: card-init .5s forwards
}
#art-container {
display: flex;
align-items: center;
position: relative;
width: 20rem;
transition: transform .5s cubic-bezier(0,0,0,1);
}
#art-container:hover {
transform: scale(1.05) translateY(-5px);
}
#art-container:hover img#artwork {
box-shadow: 0 16px 18px #0003;
}
/* TILT CONTROLS */
#art-container > div {
position: absolute;
width: 33.3%;
height: 33.3%;
z-index: 2;
}
#art-container > div.tilt-topleft {
top: 0;
left: 0;
}
#art-container > div.tilt-topleft:hover ~ #artwork {
transform: rotate3d(-1, 1, 0, 20deg);
filter: brightness(var(--shine));
-webkit-filter: brightness(var(--shine));
}
#art-container > div.tilt-top {
top: 0;
left: 33.3%;
}
#art-container > div.tilt-top:hover ~ #artwork {
transform: rotate3d(-1, 0, 0, 20deg);
filter: brightness(var(--shine));
-webkit-filter: brightness(var(--shine));
}
#art-container > div.tilt-topright {
top: 0;
right: 0;
}
#art-container > div.tilt-topright:hover ~ #artwork {
transform: rotate3d(-1, -1, 0, 20deg);
filter: brightness(var(--shine));
-webkit-filter: brightness(var(--shine));
}
#art-container > div.tilt-right {
top: 33.3%;
right: 0;
}
#art-container > div.tilt-right:hover ~ #artwork {
transform: rotate3d(0, -1, 0, 20deg);
}
#art-container > div.tilt-bottomright {
bottom: 0;
right: 0;
}
#art-container > div.tilt-bottomright:hover ~ #artwork {
transform: rotate3d(1, -1, 0, 20deg);
filter: brightness(var(--shadow));
-webkit-filter: brightness(var(--shadow));
}
#art-container > div.tilt-bottom {
bottom: 0;
left: 33.3%;
}
#art-container > div.tilt-bottom:hover ~ #artwork {
transform: rotate3d(1, 0, 0, 20deg);
filter: brightness(var(--shadow));
-webkit-filter: brightness(var(--shadow));
}
#art-container > div.tilt-bottomleft {
bottom: 0;
left: 0;
}
#art-container > div.tilt-bottomleft:hover ~ #artwork {
transform: rotate3d(1, 1, 0, 20deg);
filter: brightness(var(--shadow));
-webkit-filter: brightness(var(--shadow));
}
#art-container > div.tilt-left {
top: 33.3%;
left: 0;
}
#art-container > div.tilt-left:hover ~ #artwork {
transform: rotate3d(0, 1, 0, 20deg);
}
/* TILT CONTROLS */
#artwork {
--shine: 1.05;
--shadow: 0.8;
width: 100%;
max-width: 512px;
margin: auto;
display: flex;
justify-content: center;
line-height: 15rem;
border-radius: 4px;
color: #888;
background-color: #ccc;
box-shadow: 0 16px 16px #0004;
transition: transform 1s cubic-bezier(0,0,0,1), filter .3s linear, box-shadow .3s linear;
}
div#vertical-line {
width: 1px;
background-color: #fff4;
box-shadow: 0 0 16px #000;
}
#title {
margin: 0;
line-height: 1em;
font-size: 3em;
}
#year {
margin-left: .9em;
font-size: .5em;
color: #eee
}
#artist {
margin: .2em 0 1em 0;
font-size: 1em;
color: #eee
}
#title,
#artist {
text-shadow: 0 .05em 2px #0004
}
#type {
display: inline-block;
margin: 0;
padding: .3em .8em;
color: #fff;
background-color: #111;
text-transform: uppercase;
border-radius: 4px
}
#type.single {
background-color: #3b47f4
}
#type.ep {
background-color: #f419bd
}
#type.album {
background-color: #34c627
}
#type.comp {
background-color: #ee8d46
}
#type.upcoming {
background-color: #ff3e3e
}
#type.upcoming span {
animation: bob 2s ease-in-out infinite;
display: inline-block;
}
#links {
margin: 1rem 0;
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: .5rem
}
#links a {
padding: .5em .8em;
border-radius: 4px;
flex-grow: 1;
font-size: 1em;
color: #111;
background-color: #fff;
text-align: center;
text-decoration: none;
transition: filter .1s,-webkit-filter .1s
}
#links a.buy {
background-color: #ff94e9
}
#links a.presave {
background-color: #ff94e9
}
#links a.spotify {
background-color: #8cff83
}
#links a.applemusic {
background-color: #8cd9ff
}
#links a.soundcloud {
background-color: #fdaa6d
}
#links a.youtube {
background-color: #ff6e6e
}
#links a:hover {
filter: brightness(125%);
-webkit-filter: brightness(125%)
}
#description {
font-size: 1.2em;
}
#share {
margin: 0;
display: inline-block;
text-shadow: 0 .05em 2px #0004;
cursor: pointer;
opacity: .5;
transition: opacity .1s linear;
}
#share:hover {
opacity: 1;
}
#share.active {
animation: share-click .5s forwards
}
#share.active::after {
content: "✓";
font-size: 1.5em;
line-height: .75em;
position: absolute;
transform: translateX(.3em);
animation: share-after 2s cubic-bezier(.5,0,1,.5) forwards
}
#tracks {
flex-basis: 100%;
max-height: 10rem;
margin: auto 8rem;
display: flex;
flex-wrap: wrap;
gap: 0 2rem;
overflow-y: auto;
scrollbar-color: #fff transparent;
scrollbar-width: thin
}
#tracks .track-preview {
width: 100%;
height: 2.5rem;
display: flex;
flex-direction: row;
border-bottom: 1px solid #fff2;
border-radius: 4px;
user-select: none;
transition: background-color .2s,color .2s
}
#tracks .track-preview: last-of-type {
border-bottom: none
}
.track-preview:hover {
background-color: #0002
}
.track-preview.playing {
color: #111;
background-color: #fff
}
.track-preview i {
width: .7em;
margin: auto .8em;
pointer-events: none
}
.track-preview p {
margin: auto 0;
display: inline-block;
line-height: 2em;
font-size: 1em;
pointer-events: none
}
.track-preview audio {
width: 100%
}
footer {
position: fixed;
left: 0;
bottom: 0;
width: 100vw;
height: 6rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: #eee;
background-color: #0008;
backdrop-filter: blur(25px)
}
footer p {
margin: 0
}
footer a {
color: inherit;
text-decoration: none
}
footer a:hover {
text-decoration: underline
}
@media only screen and (max-width: 800px) {
main {
min-height: calc(100vh - 4rem);
}
#music-container {
width: calc(100vw - 8rem);
height: fit-content;
gap: 1rem;
padding: 2rem 0;
flex-direction: column;
text-align: center
}
#art-container {
width: 100%;
margin-bottom: 2rem;
}
#artwork {
max-width: 40vh;
max-height: 40vh;
}
#vertical-line {
display: none;
}
#music-container #info {
width: 100%
}
#year {
display: block;
margin: -.5em 0 .5rem;
}
#links {
margin: 2rem 0;
justify-content: center;
}
#share.active: : after {
transform: translate(calc(-50% - .6em),1.5em);
}
#tracks {
margin: 0;
}
footer {
height: 4rem;
font-size: .8rem;
}
}
#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 {
from {
opacity: 0
}
to {
opacity: 1
}
}
@keyframes background-loop {
from {
transform: scale(1)
}
50% {
transform: scale(1.05)
}
to {
transform: scale(1)
}
}
@keyframes card-init {
from {
opacity: 0;
transform: scale(.9)
}
to {
opacity: 1;
transform: scale(1)
}
}
@keyframes share-click {
from {
color: #5dfc01
}
to {
color: #eee
}
}
@keyframes share-after {
from {
opacity: 1
}
to {
opacity: 0
}
}
@keyframes bob {
from,
to {
transform: translateY(-10%);
}
50% {
transform: translateY(10%);
}
}

134
public/style/music.css Normal file
View file

@ -0,0 +1,134 @@
div.music {
margin-bottom: 1rem;
padding: 1.5rem;
display: flex;
flex-direction: row;
gap: 1.5em;
border: 1px solid #222;
border-radius: 4px;
background-color: #ffffff08;
transition: background-color .1s;
text-decoration: none;
cursor: pointer;
}
div.music:hover {
background-color: #fff1;
}
div.music a {
text-decoration: none;
}
.music h1:hover,
.music h2:hover,
.music h3:hover {
background: initial;
}
.music-artwork img {
border: 1px solid #888;
}
.music-title {
margin: 0;
color: #eee;
font-size: 1.6em;
line-height: 1.6em;
}
.music-year {
color: #888;
}
.music-artist {
margin: -.5rem 0 0 0;
font-size: 1em;
color: #aaa;
}
h3[class^=music-type] {
margin: 0 0 1rem 0;
font-size: .8em;
color: #eee;
}
h3.music-type-single {
color: var(--tertiary);
}
h3.music-type-compilation {
color: var(--secondary);
}
h3.music-type-album {
color: var(--primary);
}
h3.music-type-upcoming {
color: #f47070;
}
.music-links {
width: fit-content;
margin: .5em 0;
padding: 0;
display: flex;
gap: .5rem;
flex-wrap: wrap;
line-height: 1.7em;
justify-content: center;
}
.music-links li {
list-style: none;
}
.music-links li a {
padding: .2em .5em;
border: 1px solid #65b4fd;
color: #65b4fd;
border-radius: 2px;
background-color: transparent;
transition-property: color, border-color, background-color;
transition-duration: .2s;
animation: list-item-fadein .2s forwards;
animation-delay: 0s;
opacity: 0;
}
.music-links li a:hover {
color: #eee;
border-color: #eee;
background-color: var(--links) !important;
text-decoration: none;
}
h2.question {
margin: 1rem 0;
padding: 1rem 1.5rem;
border-radius: 4px;
cursor: pointer;
}
.collapse {
margin: -1rem 0 1rem 0;
padding: .5em 1.5em;
border-radius: 4px;
}
@media screen and (max-width: 740px) {
div.music {
flex-direction: column;
}
.music-artwork,
.music-details {
text-align: center;
align-items: center;
display: flex;
flex-direction: column;
}
}