rough first draft of v2!

This commit is contained in:
ari melody 2026-07-06 19:09:56 +01:00
parent 103bf3f1c3
commit dd04d44f47
Signed by: ari
GPG key ID: CF99829C92678188
29 changed files with 430 additions and 389 deletions

View file

@ -1,23 +1,36 @@
:root {
--background: #080808;
--on-background: #f0f0f0;
--background-dark: #080808;
--on-background-dark: #f0f0f0;
--primary-dark: #b7fd49;
--secondary-dark: #f8e05b;
--tertiary-dark: #f788fe;
--links-dark: #5eb2ff;
--background-light: #ffffff;
--on-background-light: #101010;
--primary-light: #6d9e23;
--secondary-light: #a5911e;
--tertiary-light: #a92cb1;
--links-light: #3ba1ff;
--background: var(--background-dark);
--on-background: var(--on-background-dark);
--primary: var(--primary-dark);
--secondary: var(--secondary-dark);
--tertiary: var(--tertiary-dark);
--links: var(--links-dark);
--primary: #b7fd49;
--secondary: #f8e05b;
--tertiary: #f788fe;
--links: #5eb2ff;
--live: #fd3737;
}
@media (prefers-color-scheme: light) {
:root {
--background: #ffffff;
--on-background: #101010;
--primary: #6d9e23;
--secondary: #a5911e;
--tertiary: #a92cb1;
--links: #3ba1ff;
--background: var(--background-light);
--on-background: var(--on-background-light);
--primary: var(--primary-light);
--secondary: var(--secondary-light);
--tertiary: var(--tertiary-light);
--links: var(--links-light);
}
}

View file

@ -1,63 +1,63 @@
header {
position: fixed;
top: 0;
top: 8px;
left: 0;
width: 100vw;
border-bottom: 1px solid #8888;
background-color: var(--background);
z-index: 1;
z-index: 999;
transition: color .2s, background-color .2s;
}
nav {
width: min(calc(100% - 4rem), 720px);
width: min-content; /* min(calc(100% - 7.25em), 900px); */
height: 3em;
margin: auto;
padding: 0 1em;
margin: auto; /* auto 6em auto auto; */
padding: 0 0 0 .25em;
display: flex;
flex-direction: row;
gap: .8em;
align-items: center;
border-radius: 2em;
backdrop-filter: blur(8px) brightness(110%);
box-shadow: 0 1px 2px #0004;
transition-property: background-color, color, backdrop-filter;
transition-duration: .2s;
img#header-icon {
width: 2em;
height: 2em;
padding: .5em;
transition: filter ease-out .1s;
}
}
@media (prefers-color-scheme: dark) {
nav {
backdrop-filter: blur(8px) brightness(200%);
img#header-icon {
filter: invert();
}
}
}
@media screen and (max-width: 540px) {
nav {
width: calc(100vw - 2em);
padding: 0 .25em;
}
}
#header-home {
flex-grow: 1;
display: flex;
gap: .5em;
}
img#header-icon {
width: 2em;
height: 2em;
margin: .5em;
display: block;
}
#header-text {
display: flex;
flex-direction: column;
justify-content: center;
}
#header-text h1 {
width: fit-content;
margin: 0;
font-size: 1em;
}
#header-text h2 {
width: fit-content;
height: 1.2em;
line-height: 1.2em;
margin: 0;
font-size: .7em;
color: #bbb;
}
#header-links-toggle {
width: 3em;
height: 3em;
margin-left: auto;
margin-right: .5em;
display: none;
justify-content: center;
align-items: center;
@ -69,73 +69,77 @@ img#header-icon {
}
header ul#header-links {
height: 100%;
margin: 0;
padding: 0;
display: flex;
flex-direction: row;
gap: .5em;
align-items: center;
gap: .5em;
li {
height: 100%;
margin: 0 -.5em;
list-style: none;
&:last-of-type {
margin-right: 0;
a {
padding-right: 1em;
}
}
a, span {
--colour: var(--links);
height: 100%;
min-width: 3em;
padding: 0 1em;
display: flex;
justify-content: center;
align-items: center;
color: var(--colour);
transition-property: color, background-color, box-shadow;
transition-duration: .05s;
transition-timing-function: ease-out;
text-decoration: none;
}
span {
color: #aaa;
border-color: #aaa;
cursor: default;
text-decoration: none;
}
a {
border-radius: 2em;
&:hover, &.active {
--bg-transparency: 90%;
background-color: color-mix(
in srgb,
var(--colour),
transparent var(--bg-transparency)
);
text-decoration: none;
&:active {
--bg-transparency: 75%;
}
}
}
}
}
header ul li {
list-style: none;
}
header ul li a,
header ul li span {
padding: .4em .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;
text-decoration: none;
}
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;
}
@media screen and (max-width: 780px) {
@media screen and (max-width: 540px) {
header {
font-size: 14px;
}
nav {
width: calc(100vw - 2rem);
margin: 0;
}
div#header-text {
flex-grow: 1;
}
@ -146,32 +150,40 @@ header ul li a:hover {
header ul#header-links {
position: fixed;
left: 0;
top: 2.7rem;
width: calc(100vw - 2rem);
padding: 1rem;
left: -.75em;
top: 3.5em;
width: calc(100vw - 4em);
height: fit-content;
margin: 0 1em;
padding: 1em;
display: none;
flex-direction: column;
gap: 1rem;
border-bottom: 1px solid #888;
border-radius: 1em;
box-shadow: 0 1px 2px #0004;
background: var(--background);
display: none;
li {
width: 100%;
&:last-of-type {
margin-right: -.5em;
}
a, span {
margin: 0;
display: block;
font-size: 1em;
text-align: center;
}
}
}
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: 1em;
text-align: center;
}
}
@keyframes list-item-fadein {
@ -185,4 +197,3 @@ header ul li a:hover {
background: transparent;
}
}

View file

@ -1,85 +1,60 @@
main {
width: min(calc(100% - 4rem), 720px);
width: min(calc(100% - 4rem), 900px);
min-height: calc(100vh - 10.3rem);
margin: 0 auto 2rem auto;
padding-top: 4rem;
}
main h1 {
line-height: 3rem;
color: var(--primary);
.fancyheader-inner {
display: flex;
justify-content: space-between;
.right {
margin-top: auto;
}
h1 .icon {
width: .5em;
height: .5em;
transform: translateY(-.3em);
animation: wiggle-loop 2s cubic-bezier(.4,0,.6,1) alternate infinite;
}
}
main h2 {
@media (prefers-color-scheme: dark) {
.fancyheader-inner h1 .icon {
filter: invert();
}
}
@keyframes wiggle-loop {
from { transform: translateY(-.3em) rotate(0deg); }
to { transform: translateY(-.3em) rotate(10deg); }
}
h2 {
color: var(--secondary);
}
main h3 {
h3 {
color: var(--tertiary);
}
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 {
h1, h2, h3, h4, h5, h6, p, small, blockquote {
transition: background-color 0.1s;
&:hover {
background-color: #fff1;
}
}
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
color: inherit;
}
h1, h2, h3, h4, h5, 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;
&:hover {
text-decoration: none;
}
}
}
blockquote {
@ -97,45 +72,48 @@ hr {
}
ul.platform-links {
padding-left: 1em;
display: flex;
gap: .5em;
flex-wrap: wrap;
margin: 0 0 0 auto;
padding: 0;
li {
list-style: none;
a {
padding: .5em;
display: flex;
justify-content: center;
align-items: center;
background-color: transparent;
transition-property: background-color, box-shadow;
transition-duration: .2s;
animation:
social-button-bouncein .5s forwards cubic-bezier(0, 1.5, .5, 1),
social-button-fadein .2s forwards ease-out;
opacity: 0;
img {
height: 1em;
width: 1em;
}
&:hover {
background-color: var(--on-background) !important;
box-shadow: 0 0 1em var(--on-background);
text-decoration: none;
}
}
}
}
ul.platform-links li {
list-style: none;
@keyframes social-button-bouncein {
from { transform: translateY(1em); }
to { transform: none; }
}
ul.platform-links li a {
padding: .4em .5em;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap: .5em;
border: 1px solid var(--links);
color: var(--links);
border-radius: 2px;
background-color: transparent;
transition-property: color, border-color, background-color, box-shadow;
transition-duration: .2s;
animation-delay: 0s;
animation: list-item-fadein .2s forwards;
opacity: 0;
}
ul.platform-links li a:hover {
color: #eee;
border-color: #eee;
background-color: var(--links) !important;
text-decoration: none;
box-shadow: 0 0 1em var(--links);
}
ul.platform-links li a img {
height: 1em;
width: 1em;
@keyframes social-button-fadein {
from { opacity: 0; }
to { opacity: 1; }
}
ul#projects {

View file

@ -14,19 +14,84 @@
}
body {
margin: 0;
margin: 4em 0 0 0;
padding: 0;
background: var(--background);
color: var(--on-background);
font-family: "Monaspace Argon", monospace;
font-family: "Lora", serif;
font-size: 18px;
scroll-behavior: smooth;
transition: color .2s, background-color .2s;
}
body.crt #overlay {
display: block;
.fancyheader {
width: 100vw;
margin: 5em 0 2em 0;
background-color: var(--background);
color: var(--on-background);
background-image: radial-gradient(
circle at 0% 0%,
color-mix(in srgb, var(--primary-dark), transparent 75%),
transparent
);
.fancyheader-inner {
width: 900px;
margin: 0 auto;
padding: 2em 0;
gap: 1em;
}
span {
font-family: "Monaspace Argon", monospace;
}
}
@media screen and (max-width: 980px) {
.fancyheader .fancyheader-inner {
width: calc(100% - 4em);
padding: 2em;
}
}
@media screen and (max-width: 540px) {
.fancyheader .fancyheader-inner {
flex-direction: column;
}
}
h1 {
margin: 0;
font-family: "Inter Display", "Inter", sans-serif;
font-size: 4em;
}
.subheader {
height: 2em;
display: flex;
flex-direction: row;
gap: 2px;
align-items: center;
.swatch {
--colour: #f0f;
width: .5em;
height: .5em;
background-color: var(--colour);
box-shadow: 1px 1px 0 #000;
&.primary { --colour: var(--primary-dark); }
&.secondary { --colour: var(--secondary-dark); }
&.tertiary { --colour: var(--tertiary-dark); }
&:last-of-type {
margin-right: .5em;
}
}
}
a {
@ -135,10 +200,6 @@ a#backtotop:hover {
body {
font-size: 14px;
}
main {
margin-top: 4rem;
}
}
@ -164,9 +225,3 @@ a#backtotop:hover {
filter: invert(.9);
}
}
@media (prefers-color-scheme: dark) {
body.crt {
text-shadow: 0 0 3em;
}
}

View file

@ -1,8 +1,7 @@
main {
width: min(calc(100% - 4rem), 720px);
width: min(calc(100% - 4rem), 900px);
min-height: calc(100vh - 10.3rem);
margin: 0 auto 2rem auto;
padding-top: 4rem;
}
main nav {
@ -101,18 +100,11 @@ h3.music-type-upcoming {
}
h2.question {
margin: 1rem 0;
padding: 1rem 1.5rem;
margin: 1em 0;
border-radius: 4px;
cursor: pointer;
}
div.answer {
margin: -1rem 0 1rem 0;
padding: .5em 1.5em;
border-radius: 4px;
}
@media screen and (max-width: 740px) {
div.music {
flex-direction: column;