feat(portfolio): add manifesto and numbered capability rows
This commit is contained in:
@@ -4,10 +4,13 @@ import { m, useReducedMotion } from "motion/react";
|
||||
|
||||
import { manifesto } from "@/lib/portfolio";
|
||||
|
||||
const SURVIVE_PHRASE = "survive contact";
|
||||
const PROOF_PHRASE = "proof";
|
||||
|
||||
export function Manifesto() {
|
||||
const shouldReduceMotion = useReducedMotion();
|
||||
const [beforeSurvive, afterSurvive = ""] = manifesto.split("survive contact");
|
||||
const [betweenAccents, afterProof = ""] = afterSurvive.split("proof");
|
||||
const [beforeSurvive, afterSurvive = ""] = manifesto.split(SURVIVE_PHRASE);
|
||||
const [betweenAccents, afterProof = ""] = afterSurvive.split(PROOF_PHRASE);
|
||||
|
||||
return (
|
||||
<m.section
|
||||
@@ -24,9 +27,9 @@ export function Manifesto() {
|
||||
className="max-w-5xl font-display text-[clamp(28px,4vw,56px)] font-semibold leading-[0.98] tracking-[-0.06em] text-blacksite-muted"
|
||||
>
|
||||
{beforeSurvive}
|
||||
<span className="text-signal-cyan">survive contact</span>
|
||||
<span className="text-signal-cyan">{SURVIVE_PHRASE}</span>
|
||||
{betweenAccents}
|
||||
<span className="text-signal-orange">proof</span>
|
||||
<span className="text-signal-orange">{PROOF_PHRASE}</span>
|
||||
{afterProof}
|
||||
</h2>
|
||||
</m.section>
|
||||
|
||||
Reference in New Issue
Block a user