Add local p5.min.js

This commit is contained in:
John Gatward committed 2026-10-08 12:44:23 +01:00
1 parent c744979818
commit 68e773d77b
27 files changed
+212 -840

No files matched your search

+52 -89
View File
@@ -1,123 +1,78 @@
body {
display: flex;
flex-direction: column;
min-height: 100vh;
min-height: 100dvh;
}
.not-found {
flex: 1;
display: flex;
flex-direction: column;
display: grid;
align-items: center;
justify-content: center;
text-align: center;
padding: 7rem 2rem 5rem;
gap: 0;
position: relative;
width: 100%;
max-width: 1100px;
margin: 0 auto;
padding: 8rem 3rem 5rem;
}
.nf-code {
font-family: 'Fraunces', serif;
font-size: clamp(7rem, 22vw, 16rem);
font-weight: 600;
line-height: 1;
color: var(--surface0);
letter-spacing: -0.02em;
user-select: none;
position: relative;
opacity: 0;
animation: fadeUp 0.6s 0.1s forwards;
.nf-layout {
display: grid;
grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
align-items: center;
gap: 3rem;
}
.nf-eyebrow {
font-size: 0.7rem;
letter-spacing: 0.2em;
margin-bottom: 1.5rem;
font-family: var(--font-mono);
font-size: 0.72rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--mauve);
margin-bottom: 0.75rem;
display: flex;
align-items: center;
gap: 0.75rem;
opacity: 0;
animation: fadeUp 0.6s 0.3s forwards;
}
.nf-eyebrow::before,
.nf-eyebrow::after {
content: '';
display: block;
height: 1px;
width: 3rem;
background: var(--mauve);
opacity: 0.5;
}
.nf-heading {
font-family: 'Fraunces', serif;
font-size: clamp(1.6rem, 4vw, 2.8rem);
font-weight: 600;
color: var(--text);
line-height: 1.15;
margin-bottom: 1rem;
opacity: 0;
animation: fadeUp 0.6s 0.4s forwards;
}
.nf-heading em {
font-style: italic;
color: var(--mauve);
}
.nf-desc {
font-size: 0.88rem;
color: var(--subtext0);
max-width: 420px;
line-height: 1.8;
margin-bottom: 2.5rem;
opacity: 0;
animation: fadeUp 0.6s 0.5s forwards;
color: var(--link-accent);
}
.nf-terminal {
min-width: 0;
padding: 1.5rem;
background: var(--mantle);
border: 1px solid var(--surface0);
border-radius: 8px;
padding: 1rem 1.5rem;
font-family: var(--font-mono);
font-size: 0.78rem;
color: var(--subtext1);
text-align: left;
max-width: 440px;
width: 100%;
margin-bottom: 2.5rem;
opacity: 0;
animation: fadeUp 0.6s 0.6s forwards;
}
.nf-terminal-bar {
display: flex;
gap: 0.5rem;
margin-bottom: 0.75rem;
}
.nf-dot {
width: 10px;
height: 10px;
border-radius: 50%;
opacity: 0.7;
}
.nf-dot--red {
background: var(--red);
opacity: 0.7;
}
.nf-dot--yellow {
background: var(--yellow);
opacity: 0.7;
}
.nf-dot--green {
background: var(--green);
opacity: 0.7;
}
.nf-code {
margin: 1.5rem 0;
font-size: clamp(5rem, 10vw, 8rem);
font-weight: 700;
line-height: 1;
letter-spacing: -0.06em;
color: var(--mauve);
user-select: none;
}
.nf-terminal-line {
@@ -131,6 +86,8 @@ body {
}
.nf-cmd {
min-width: 0;
overflow-wrap: anywhere;
color: var(--text);
}
@@ -139,33 +96,39 @@ body {
}
.nf-comment {
color: var(--overlay1);
color: var(--subtext0);
}
#nf-response,
#nf-hint {
transition: opacity 0.3s;
}
.nf-cursor {
display: inline-block;
width: 0.55em;
height: 1em;
margin-top: 0.45em;
background: var(--mauve);
vertical-align: text-bottom;
animation: blink 1.1s step-end infinite;
}
@keyframes blink {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0;
}
}
.nf-actions {
display: flex;
gap: 1.25rem;
flex-wrap: wrap;
justify-content: center;
opacity: 0;
animation: fadeUp 0.6s 0.7s forwards;
@media (max-width: 768px) {
.not-found {
padding: 6rem 1.5rem 3rem;
}
.nf-layout {
grid-template-columns: 1fr;
gap: 2.5rem;
}
.nf-terminal {
max-width: 440px;
}
}