commit
aaa
diff --git a/src/app/home.css.ts b/src/app/home.css.ts
index 28691bc..2748da9 100644
--- a/src/app/home.css.ts
+++ b/src/app/home.css.ts
@@ -7,17 +7,22 @@
* pages/Index.tsx).
*/
-import { globalStyle, style, keyframes } from "@vanilla-extract/css";
+import { globalStyle, style } from "@vanilla-extract/css";
import { vars } from "@/styles/theme.css";
-// Shared trans-flag gradient title, uniform across every site.
-const transSlide = keyframes({
- to: { backgroundPositionX: "200%" },
-});
-
const mix = (color: string, pct: number) =>
`color-mix(in srgb, ${color} ${pct}%, transparent)`;
+/** Trans-flag stripe, reused as a thin accent rule under the header and above
+ * the footer instead of the old animated gradient page title. */
+export const flagStripe = style({
+ height: "3px",
+ width: "100%",
+ flexShrink: 0,
+ background:
+ "repeating-linear-gradient(90deg, #5BCEFA 0 20%, #F5A9B8 20% 40%, #ffffff 40% 60%, #F5A9B8 60% 80%, #5BCEFA 80% 100%)",
+});
+
export const loadingWrap = style({
display: "flex",
alignItems: "center",
@@ -33,10 +38,32 @@ export const loadingText = style({
});
export const page = style({
+ position: "relative",
+ isolation: "isolate",
minHeight: "100vh",
backgroundColor: vars.bg,
color: vars.text,
- transition: "background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease",
+});
+
+/** Full-bleed background image behind everything else on the page — blurred
+ * and darkened so panel text stays legible over it. Swap the URL for a
+ * different asset here if the source image ever moves. */
+export const bgImageLayer = style({
+ position: "fixed",
+ inset: "-40px",
+ zIndex: -1,
+ backgroundImage: "url('https://m.doughmination.gay/img/bg/main.png')",
+ backgroundSize: "cover",
+ backgroundPosition: "center",
+ filter: "blur(16px) brightness(0.55) saturate(0.9)",
+ transform: "scale(1.08)",
+});
+
+export const bgScrim = style({
+ position: "fixed",
+ inset: 0,
+ zIndex: -1,
+ backgroundColor: "rgba(5, 6, 10, 0.45)",
});
export const wsBanner = style({
@@ -45,13 +72,15 @@ export const wsBanner = style({
left: 0,
right: 0,
zIndex: 50,
- backgroundColor: "#eab308",
- color: "#000",
+ backgroundColor: vars.accentAlt,
+ color: vars.bgDeep,
textAlign: "center",
padding: "0.5rem 0",
- fontSize: "0.875rem",
+ fontSize: "0.75rem",
fontFamily: vars.fontComic,
- fontWeight: 600,
+ fontWeight: 700,
+ textTransform: "uppercase",
+ letterSpacing: "0.06em",
});
/* Header */
@@ -61,11 +90,8 @@ export const header = style({
left: 0,
width: "100%",
zIndex: 40,
- backgroundColor: mix(vars.bg, 90),
- backdropFilter: "blur(4px)",
- WebkitBackdropFilter: "blur(4px)",
- borderBottom: `1px solid ${vars.surface}`,
- transition: "background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease",
+ backgroundColor: mix(vars.bgDeep, 82),
+ borderBottom: `2px solid ${vars.surfaceHigher}`,
});
export const headerInner = style({
@@ -78,13 +104,26 @@ export const headerInner = style({
});
export const logoLink = style({
- fontSize: "1.5rem",
+ fontSize: "1.0625rem",
fontWeight: 700,
fontFamily: vars.fontComic,
- color: vars.accent,
+ textTransform: "uppercase",
+ letterSpacing: "0.04em",
+ color: vars.text,
textDecoration: "none",
transition: "color 0.15s ease",
- ":hover": { color: mix(vars.accent, 80) },
+ display: "inline-flex",
+ alignItems: "center",
+ gap: "0.625rem",
+ ":hover": { color: mix(vars.text, 80) },
+ "::before": {
+ content: "''",
+ display: "inline-block",
+ width: "8px",
+ height: "8px",
+ backgroundColor: vars.accent,
+ flexShrink: 0,
+ },
});
export const navUser = style({
@@ -105,10 +144,10 @@ export const mobileMenuBtn = style({
alignItems: "center",
justifyContent: "center",
padding: "0.5rem",
- borderRadius: "0.375rem",
+ borderRadius: 0,
backgroundColor: vars.surface,
color: vars.text,
- border: "none",
+ border: `1px solid ${vars.surfaceHigher}`,
cursor: "pointer",
transition: "color 0.15s ease, background-color 0.15s ease",
":hover": {
@@ -147,11 +186,8 @@ export const mobilePanel = style({
width: "16rem",
maxWidth: "80vw",
height: "100vh",
- boxShadow: "0 10px 15px -3px rgb(0 0 0 / 0.1)",
- backgroundColor: mix(vars.bg, 95),
- backdropFilter: "blur(4px)",
- WebkitBackdropFilter: "blur(4px)",
- borderLeft: `1px solid ${vars.surface}`,
+ backgroundColor: vars.bgDeep,
+ borderLeft: `2px solid ${vars.surfaceHigher}`,
});
export const mobileList = style({
@@ -182,38 +218,31 @@ export const mobileLink = style({
display: "block",
width: "100%",
padding: "0.75rem 1rem",
- borderRadius: "0.5rem",
- fontSize: "0.875rem",
+ borderRadius: 0,
+ fontSize: "0.8125rem",
textAlign: "center",
- transition: "all 0.15s ease",
+ textTransform: "uppercase",
+ letterSpacing: "0.04em",
+ transition: "background-color 0.15s ease, color 0.15s ease",
fontFamily: vars.fontComic,
- fontWeight: 600,
+ fontWeight: 700,
backgroundColor: vars.surface,
- color: vars.text,
+ color: vars.textSoft,
textDecoration: "none",
- border: "none",
+ border: `1px solid ${vars.surfaceHigher}`,
cursor: "pointer",
":hover": {
backgroundColor: vars.accent,
- color: vars.accentAlt,
+ color: vars.bgDeep,
},
});
-export const mobileLogout = style({
- width: "100%",
- padding: "0.75rem 1rem",
- backgroundColor: vars.danger,
- color: vars.bg,
- borderRadius: "0.5rem",
- fontSize: "0.875rem",
- textAlign: "center",
- transition: "background-color 0.15s ease",
- fontFamily: vars.fontComic,
- fontWeight: 600,
- border: "none",
- cursor: "pointer",
- ":hover": { backgroundColor: mix(vars.danger, 80) },
-});
+export const mobileLogout = style([mobileLink, {
+ backgroundColor: "transparent",
+ color: vars.danger,
+ border: `1px solid ${vars.danger}`,
+ ":hover": { backgroundColor: vars.danger, color: vars.bgDeep },
+}]);
export const headerSpacer = style({ height: "5rem" });
@@ -240,49 +269,90 @@ export const contentWrapper = style({
},
});
+export const pageOverline = style({
+ fontSize: "0.75rem",
+ fontFamily: vars.fontComic,
+ fontWeight: 600,
+ color: vars.textDim,
+ letterSpacing: "0.08em",
+ textTransform: "uppercase",
+ textAlign: "center",
+ marginBottom: "0.375rem",
+});
+
export const pageTitle = style({
- fontSize: "2.25rem",
+ fontSize: "1.75rem",
fontWeight: 700,
marginBottom: "2rem",
textAlign: "center",
fontFamily: vars.fontComic,
- letterSpacing: "-0.02em",
- backgroundImage:
- "linear-gradient(90deg, #5BCEFA, #F5A9B8, #ffffff, #F5A9B8, #5BCEFA, #5BCEFA)",
- backgroundSize: "200% 100%",
- WebkitBackgroundClip: "text",
- backgroundClip: "text",
- color: "transparent",
- animation: `${transSlide} 6s linear infinite`,
- "@media": {
- "(prefers-reduced-motion: reduce)": {
- animation: "none",
- },
- },
+ letterSpacing: "-0.01em",
+ textTransform: "uppercase",
+ color: vars.text,
});
/* Mental state banner extras */
export const bannerRow = style({
+ display: "flex",
+ alignItems: "stretch",
+ gap: 0,
+});
+
+export const bannerIconBlock = style({
+ width: "3.25rem",
+ flexShrink: 0,
display: "flex",
alignItems: "center",
justifyContent: "center",
- gap: "0.75rem",
+ backgroundColor: "currentColor",
});
-export const bannerIcon = style({ fontSize: "1.5rem" });
+export const bannerIcon = style({
+ width: "1.25rem",
+ height: "1.25rem",
+ color: vars.bgDeep,
+});
-export const bannerNotes = style({
- marginTop: "0.5rem",
+export const bannerBody = style({
+ padding: "0.875rem 1.125rem",
+ flex: 1,
+ textAlign: "left",
+});
+
+export const bannerLabelRow = style({
+ display: "flex",
+ alignItems: "baseline",
+ gap: "0.625rem",
+});
+
+export const bannerLabelKey = style({
+ fontSize: "0.6875rem",
+ letterSpacing: "0.08em",
+ textTransform: "uppercase",
+ color: vars.textDim,
fontFamily: vars.fontComic,
+});
+
+export const bannerLabelValue = style({
fontSize: "0.875rem",
- opacity: 0.8,
+ fontWeight: 700,
+ letterSpacing: "0.03em",
+ textTransform: "uppercase",
+ fontFamily: vars.fontComic,
+});
+
+export const bannerNotes = style({
+ marginTop: "0.375rem",
+ fontFamily: vars.fontComic,
+ fontSize: "0.8125rem",
+ color: vars.textSoft,
});
export const bannerUpdated = style({
display: "block",
marginTop: "0.5rem",
- opacity: 0.75,
- textAlign: "center",
+ fontSize: "0.6875rem",
+ color: vars.textFaint,
fontFamily: vars.fontComic,
});
@@ -290,14 +360,17 @@ export const bannerUpdated = style({
export const frontingSection = style({
marginBottom: "1.5rem",
padding: "1rem",
- borderBottom: `1px solid ${vars.surface}`,
+ border: `1px solid ${vars.surfaceHigher}`,
});
export const frontingTitle = style({
- fontSize: "1.25rem",
+ fontSize: "0.6875rem",
fontFamily: vars.fontComic,
- fontWeight: 600,
- marginBottom: "0.75rem",
+ fontWeight: 700,
+ letterSpacing: "0.08em",
+ textTransform: "uppercase",
+ color: vars.textDim,
+ marginBottom: "0.875rem",
textAlign: "center",
});
@@ -315,88 +388,47 @@ export const frontingItem = style({
position: "relative",
});
-/* Thought-bubble status */
-export const bubbleWrap = style({
- position: "absolute",
- top: "-2.5rem",
- left: "50%",
- transform: "translateX(-50%)",
- zIndex: 20,
-});
-
-export const bubbleWrapGrid = style([bubbleWrap, { top: "-3rem" }]);
-
-export const bubble = style({
- position: "relative",
- backgroundColor: vars.bg,
- border: `2px solid ${vars.surface}`,
- borderRadius: "30px",
- padding: "0.375rem 0.75rem",
- boxShadow: "0 10px 15px -3px rgb(0 0 0 / 0.1)",
- maxWidth: "140px",
+/* Status tag — a plain bordered box in normal flow, replacing the old
+ floating thought-bubble-with-dots treatment. */
+export const statusTagWrap = style({
+ marginTop: "0.5rem",
+ textAlign: "center",
});
-export const bubbleRow = style({
- display: "flex",
+export const statusTag = style({
+ display: "inline-flex",
alignItems: "center",
- gap: "0.375rem",
+ gap: "0.3rem",
+ justifyContent: "center",
+ backgroundColor: vars.bgDeep,
+ border: `1px solid ${vars.surfaceHigher}`,
+ padding: "0.3rem 0.6rem",
+ maxWidth: "140px",
});
-export const bubbleEmoji = style({ fontSize: "0.875rem" });
+export const statusTagEmoji = style({ fontSize: "0.8125rem" });
-export const bubbleText = style({
- fontSize: "0.75rem",
+export const statusTagText = style({
+ fontSize: "0.6875rem",
fontFamily: vars.fontComic,
fontWeight: 600,
- color: vars.text,
+ color: vars.textSoft,
overflow: "hidden",
textOverflow: "ellipsis",
whiteSpace: "nowrap",
});
-export const bubbleDotWrapLarge = style({
- position: "absolute",
- bottom: "-1.25rem",
- left: "50%",
- transform: "translateX(calc(-50% + 0.5rem))",
-});
-
-export const bubbleDotWrapSmall = style({
- position: "absolute",
- bottom: "-1.75rem",
- left: "50%",
- transform: "translateX(calc(-50% + 0.75rem))",
-});
-
-export const bubbleDotLarge = style({
- width: "0.625rem",
- height: "0.625rem",
- backgroundColor: vars.bg,
- border: `2px solid ${vars.surface}`,
- borderRadius: "9999px",
- boxShadow: "0 4px 6px -1px rgb(0 0 0 / 0.1)",
-});
-
-export const bubbleDotSmall = style({
- width: "0.375rem",
- height: "0.375rem",
- backgroundColor: vars.bg,
- border: `1px solid ${vars.surface}`,
- borderRadius: "9999px",
- boxShadow: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
-});
-
/* Avatars & member cards */
export const avatarImg = style({
width: "4rem",
height: "4rem",
- borderRadius: "9999px",
+ borderRadius: 0,
objectFit: "cover",
- borderWidth: "3px",
+ borderWidth: "2px",
borderStyle: "solid",
- transition: "all 0.15s ease",
+ transition: "filter 0.15s ease",
cursor: "pointer",
- ":hover": { transform: "scale(1.05)" },
+ ":hover": { filter: "brightness(1.15)" },
});
export const avatarImgGrid = style([
@@ -457,18 +489,21 @@ export const tagRow = style({
export const tagRowSpaced = style([tagRow, { marginTop: "0.5rem" }]);
export const tagChip = style({
- fontSize: "0.75rem",
+ fontSize: "0.6875rem",
padding: "0.125rem 0.5rem",
- borderRadius: "9999px",
- backgroundColor: vars.surface,
- color: vars.text,
+ borderRadius: 0,
+ border: `1px solid ${vars.surfaceHigher}`,
+ backgroundColor: "transparent",
+ color: vars.textSoft,
fontFamily: vars.fontComic,
- fontWeight: 600,
+ fontWeight: 700,
+ textTransform: "uppercase",
+ letterSpacing: "0.03em",
});
export const tagMore = style({
- fontSize: "0.75rem",
- color: vars.textMuted,
+ fontSize: "0.6875rem",
+ color: vars.textDim,
fontFamily: vars.fontComic,
fontWeight: 600,
});
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 467164b..3076582 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -77,6 +77,12 @@ export default function RootLayout({
href="https://m.doughmination.gay"
crossOrigin=""
/>
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
+ <link
+ href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap"
+ rel="stylesheet"
+ />
</head>
<body>
<Providers>
diff --git a/src/components/HomePage.tsx b/src/components/HomePage.tsx
index e6bb0e3..3374d3f 100644
--- a/src/components/HomePage.tsx
+++ b/src/components/HomePage.tsx
@@ -21,7 +21,14 @@ import { Button } from "@/components/ui/button";
import { cn, normalizeColor, readableOnDark } from "@/lib/utils";
import * as site from "@/styles/site.css";
import * as s from "@/app/home.css";
-import { Github } from "react-bootstrap-icons";
+import {
+ Github,
+ CheckCircleFill,
+ ExclamationTriangleFill,
+ ExclamationCircleFill,
+ ExclamationOctagonFill,
+ ShieldFillExclamation,
+} from "react-bootstrap-icons";
// The member shape comes straight from the package now.
type Member = PluralMember;
@@ -201,15 +208,12 @@ export default function HomePage() {
return labels[level] || level;
};
- const getMentalStateIcon = (level: string) => {
- const icons: { [key: string]: string } = {
- safe: "✅",
- unstable: "⚠️",
- idealizing: "❗",
- "self-harming": "🚨",
- "highly at risk": "⛔",
- };
- return icons[level] || "❓";
+ const MENTAL_STATE_ICONS: Record<string, React.ComponentType<{ className?: string }>> = {
+ safe: CheckCircleFill,
+ unstable: ExclamationTriangleFill,
+ idealizing: ExclamationCircleFill,
+ "self-harming": ExclamationOctagonFill,
+ "highly at risk": ShieldFillExclamation,
};
if (loading) {
@@ -224,9 +228,13 @@ export default function HomePage() {
<div className={s.page}>
{/* WebSocket Connection Indicator */}
{!wsConnected && (
- <div className={s.wsBanner}>⚠️ Live updates disconnected. Reconnecting...</div>
+ <div className={s.wsBanner}>[ ! ] Live updates disconnected. Reconnecting...</div>
)}
+ {/* Background image — see home.css.ts bgImageLayer for the source URL */}
+ <div className={s.bgImageLayer} />
+ <div className={s.bgScrim} />
+
{/* Header with navigation */}
<header className={s.header}>
<div className={s.headerInner}>
@@ -352,6 +360,7 @@ export default function HomePage() {
</div>
</div>
)}
+ <div className={s.flagStripe} />
</header>
{/* Space for fixed header */}
@@ -361,33 +370,41 @@ export default function HomePage() {
<main className={s.main}>
<div className={s.contentWrapper}>
<div>
+ <div className={s.pageOverline}>// system.members</div>
<h1 className={s.pageTitle}>System Members</h1>
{/* Mental State Banner */}
- {systemInfo?.mental_state && (
- <div
- className={cn(
- site.mentalStateBanner,
- MENTAL_STATE_CLASSES[systemInfo.mental_state.level],
- )}
- >
- <div className={s.bannerRow}>
- <span className={s.bannerIcon}>
- {getMentalStateIcon(systemInfo.mental_state.level)}
- </span>
- <div>
- <span>Current Status: </span>
- <span>{getMentalStateLabel(systemInfo.mental_state.level)}</span>
- {systemInfo.mental_state.notes && (
- <p className={s.bannerNotes}>{systemInfo.mental_state.notes}</p>
- )}
+ {systemInfo?.mental_state && (() => {
+ const StateIcon = MENTAL_STATE_ICONS[systemInfo.mental_state.level];
+ return (
+ <div
+ className={cn(
+ site.mentalStateBanner,
+ MENTAL_STATE_CLASSES[systemInfo.mental_state.level],
+ )}
+ >
+ <div className={s.bannerRow}>
+ <div className={s.bannerIconBlock}>
+ {StateIcon && <StateIcon className={s.bannerIcon} />}
+ </div>
+ <div className={s.bannerBody}>
+ <div className={s.bannerLabelRow}>
+ <span className={s.bannerLabelKey}>status:</span>
+ <span className={s.bannerLabelValue}>
+ [ {getMentalStateLabel(systemInfo.mental_state.level)} ]
+ </span>
+ </div>
+ {systemInfo.mental_state.notes && (
+ <p className={s.bannerNotes}>{systemInfo.mental_state.notes}</p>
+ )}
+ <small className={s.bannerUpdated}>
+ last_updated: {new Date(systemInfo.mental_state.updated_at).toLocaleString()}
+ </small>
+ </div>
</div>
</div>
- <small className={s.bannerUpdated}>
- Last updated: {new Date(systemInfo.mental_state.updated_at).toLocaleString()}
- </small>
- </div>
- )}
+ );
+ })()}
{/* Currently Fronting Section */}
{fronting && fronting.members && fronting.members.length > 0 && (
@@ -400,33 +417,9 @@ export default function HomePage() {
const memberColor = normalizeColor(member.color);
const borderColor = memberColor || "var(--accent)";
const nameColor = readableOnDark(member.color, "var(--accent)");
- // Appending "40" only yields valid CSS for a hex literal.
- const glow = memberColor
- ? `${memberColor}40`
- : "color-mix(in srgb, var(--accent) 25%, transparent)";
return (
<div key={member.id || `${member.name}-${index}`} className={s.frontingItem}>
- {/* Status Bubble - Thought Bubble Style */}
- {member.status && (
- <div className={s.bubbleWrap}>
- <div className={s.bubble}>
- <div className={s.bubbleRow}>
- {member.status.emoji && (
- <span className={s.bubbleEmoji}>{member.status.emoji}</span>
- )}
- <span className={s.bubbleText}>{member.status.text}</span>
- </div>
- {/* Thought bubble circles - staggered diagonally toward avatar */}
- <div className={s.bubbleDotWrapLarge}>
- <div className={s.bubbleDotLarge}></div>
- </div>
- <div className={s.bubbleDotWrapSmall}>
- <div className={s.bubbleDotSmall}></div>
- </div>
- </div>
- </div>
- )}
<Link href={`/${member.name}`}>
<div className={s.searchRelative}>
{/* eslint-disable-next-line @next/next/no-img-element */}
@@ -436,7 +429,7 @@ export default function HomePage() {
className={s.avatarImg}
style={{
borderColor: borderColor,
- boxShadow: `0 0 12px ${glow}`,
+ boxShadow: `3px 3px 0 ${borderColor}`,
}}
loading="lazy"
onError={(e) => {
@@ -465,6 +458,18 @@ export default function HomePage() {
))}
</div>
)}
+
+ {/* Status tag — plain bordered box, replaces the old thought bubble */}
+ {member.status && (
+ <div className={s.statusTagWrap}>
+ <div className={s.statusTag}>
+ {member.status.emoji && (
+ <span className={s.statusTagEmoji}>{member.status.emoji}</span>
+ )}
+ <span className={s.statusTagText}>{member.status.text}</span>
+ </div>
+ </div>
+ )}
</div>
</div>
);
@@ -544,10 +549,6 @@ export default function HomePage() {
const memberColor = normalizeColor(member.color);
const borderColor = memberColor || "var(--accent)";
const nameColor = readableOnDark(member.color, "var(--text)");
- const glow = memberColor
- ? `${memberColor}40`
- : "color-mix(in srgb, var(--accent) 25%, transparent)";
-
return (
<div
key={member.id}
@@ -562,26 +563,6 @@ export default function HomePage() {
} as React.CSSProperties & { "--member-color": string }
}
>
- {/* Status Bubble - Thought Bubble Style */}
- {member.status && (
- <div className={s.bubbleWrapGrid}>
- <div className={s.bubble} style={{ maxWidth: "130px" }}>
- <div className={s.bubbleRow}>
- {member.status.emoji && (
- <span className={s.bubbleEmoji}>{member.status.emoji}</span>
- )}
- <span className={s.bubbleText}>{member.status.text}</span>
- </div>
- {/* Thought bubble circles - staggered diagonally toward avatar */}
- <div className={s.bubbleDotWrapLarge}>
- <div className={s.bubbleDotLarge}></div>
- </div>
- <div className={s.bubbleDotWrapSmall}>
- <div className={s.bubbleDotSmall}></div>
- </div>
- </div>
- </div>
- )}
<Link href={`/${member.name}`}>
<div className={s.cardCenter}>
<div className={s.relativeInline}>
@@ -592,7 +573,7 @@ export default function HomePage() {
className={s.avatarImgGrid}
style={{
borderColor: borderColor,
- boxShadow: `0 0 12px ${glow}`,
+ boxShadow: `3px 3px 0 ${borderColor}`,
}}
onError={(e) => {
(e.target as HTMLImageElement).src = FALLBACK_AVATAR;
@@ -624,6 +605,18 @@ export default function HomePage() {
)}
</div>
)}
+
+ {/* Status tag — plain bordered box, replaces the old thought bubble */}
+ {member.status && (
+ <div className={s.statusTagWrap}>
+ <div className={s.statusTag} style={{ maxWidth: "130px" }}>
+ {member.status.emoji && (
+ <span className={s.statusTagEmoji}>{member.status.emoji}</span>
+ )}
+ <span className={s.statusTagText}>{member.status.text}</span>
+ </div>
+ </div>
+ )}
</div>
</Link>
</div>
diff --git a/src/styles/global.css.ts b/src/styles/global.css.ts
index 7033bc1..f0823ec 100644
--- a/src/styles/global.css.ts
+++ b/src/styles/global.css.ts
@@ -7,34 +7,14 @@
* app's src/css/main.css + fonts.css to vanilla-extract globalStyle calls.
*/
-import { globalFontFace, globalStyle } from "@vanilla-extract/css";
+import { globalStyle } from "@vanilla-extract/css";
import { vars } from "./theme.css";
/* ============================================================================
- FONTS — Comic Code
+ FONTS — IBM Plex Mono, loaded via the Google Fonts <link> in layout.tsx
+ (the terminal/clunky redesign replaced the old self-hosted Comic Code face)
============================================================================ */
-const comic = "Comic Code";
-
-globalFontFace(comic, {
- src: "url('https://m.doughmination.gay/f/Comic-Code/woff2/ComicCode-Regular.woff2') format('woff2'), url('https://m.doughmination.gay/f/Comic-Code/woff/ComicCode-Regular.woff') format('woff')",
- fontWeight: 400,
- fontStyle: "normal",
-});
-globalFontFace(comic, {
- src: "url('https://m.doughmination.gay/f/Comic-Code/woff2/ComicCode-Italic.woff2') format('woff2'), url('https://m.doughmination.gay/f/Comic-Code/woff/ComicCode-Italic.woff') format('woff')",
- fontWeight: 400,
- fontStyle: "italic",
-});
-globalFontFace(comic, {
- src: "url('https://m.doughmination.gay/f/Comic-Code/woff2/ComicCode-Medium.woff2') format('woff2'), url('https://m.doughmination.gay/f/Comic-Code/woff/ComicCode-Medium.woff') format('woff')",
- fontWeight: 500,
- fontStyle: "normal",
-});
-globalFontFace(comic, {
- src: "url('https://m.doughmination.gay/f/Comic-Code/woff2/ComicCode-Bold.woff2') format('woff2'), url('https://m.doughmination.gay/f/Comic-Code/woff/ComicCode-Bold.woff') format('woff')",
- fontWeight: 700,
- fontStyle: "normal",
-});
+const mono = "'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace";
/* ============================================================================
GLOBAL RESET & BASE STYLES
@@ -56,7 +36,7 @@ globalStyle("html", {
});
globalStyle("body", {
- fontFamily: `'${comic}', sans-serif`,
+ fontFamily: mono,
background: vars.bg,
color: vars.text,
minHeight: "100vh",
@@ -66,7 +46,7 @@ globalStyle("body", {
globalStyle(
"h1, h2, h3, h4, h5, h6, label, input, select, textarea, button",
{
- fontFamily: `'${comic}', cursive`,
+ fontFamily: mono,
},
);
diff --git a/src/styles/site.css.ts b/src/styles/site.css.ts
index d50666c..b3eb14c 100644
--- a/src/styles/site.css.ts
+++ b/src/styles/site.css.ts
@@ -16,8 +16,9 @@ const tablet = "screen and (min-width: 641px) and (max-width: 1024px)";
const ultrawide = "screen and (min-width: 1920px)";
// No per-flavor font token in the new theme contract — same face across
-// every flavor, so it just lives here as a plain constant.
-const FONT_COMIC = "'Comic Code', cursive";
+// every flavor, so it just lives here as a plain constant. Kept its old name
+// (see theme.css.ts) but now points at IBM Plex Mono.
+const FONT_COMIC = "'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace";
export const fontComic = style({
fontFamily: FONT_COMIC,
@@ -164,31 +165,26 @@ globalStyle(`${memberGridItem} a`, {
gap: "0.25rem",
height: "100%",
width: "100%",
- borderRadius: "0.75rem",
- backdropFilter: "blur(10px)",
- WebkitBackdropFilter: "blur(10px)",
- transition: "all 0.3s ease",
+ borderRadius: 0,
+ transition: "border-color 0.15s ease, background-color 0.15s ease",
textDecoration: "none !important" as unknown as "none",
/* `surface` sits one step lighter than `bg` in every flavour, so the card
reads as a distinct panel instead of blending into the page. */
backgroundColor: vars.surface,
- border: `1px solid ${vars.surfaceHi}`,
- boxShadow: "0 1px 3px rgb(0 0 0 / 0.35)",
+ border: `1px solid ${vars.surfaceHigher}`,
color: vars.text,
});
-/* Lift on hover, and go one shade lighter than the resting card. */
+/* Border pops, no lift/glow — hard edges instead of soft motion. */
globalStyle(`${memberGridItem} a:hover`, {
- transform: "translateY(-5px)",
- boxShadow: `0 10px 15px -3px color-mix(in srgb, ${vars.accent} 40%, transparent)`,
- borderColor: `color-mix(in srgb, ${vars.accent} 70%, transparent)`,
+ borderColor: vars.accent,
backgroundColor: vars.surfaceHi,
});
/* Avatars */
export const avatarContainer = style({
position: "relative",
- borderRadius: "50%",
+ borderRadius: 0,
overflow: "hidden",
flexShrink: 0,
margin: "0 auto",
@@ -224,7 +220,8 @@ globalStyle(`${avatarContainer} img`, {
});
globalStyle(`${memberGridItem} a:hover ${avatarContainer}`, {
- boxShadow: "0 0 20px var(--member-color)",
+ borderColor: "var(--member-color)",
+ boxShadow: "3px 3px 0 var(--member-color)",
});
/* Fronting members */
@@ -289,13 +286,13 @@ const pulse = keyframes({
});
export const mentalStateBanner = style({
- padding: "1rem",
margin: "1rem 0",
- borderRadius: "0.5rem",
- border: "2px solid",
+ borderRadius: 0,
+ border: "1px solid",
position: "relative",
fontFamily: FONT_COMIC,
fontWeight: 600,
+ overflow: "hidden",
});
globalStyle(`${mentalStateBanner} *`, {
@@ -304,29 +301,25 @@ globalStyle(`${mentalStateBanner} *`, {
});
export const mentalStateSafe = style({
- background:
- "linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%)",
+ background: "rgba(34, 197, 94, 0.06)",
borderColor: "rgba(34, 197, 94, 0.5)",
color: "#10b981",
});
export const mentalStateUnstable = style({
- background:
- "linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%)",
+ background: "rgba(251, 191, 36, 0.06)",
borderColor: "rgba(251, 191, 36, 0.5)",
color: "#f59e0b",
});
export const mentalStateSelfHarming = style({
- background:
- "linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%)",
+ background: "rgba(239, 68, 68, 0.08)",
borderColor: "rgba(239, 68, 68, 0.7)",
color: "#f87171",
});
export const mentalStateHighlyAtRisk = style({
- background:
- "linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(220, 38, 38, 0.15) 100%)",
+ background: "rgba(220, 38, 38, 0.1)",
borderColor: "rgba(220, 38, 38, 0.8)",
color: "#fca5a5",
animation: `${pulse} 2s infinite`,
@@ -337,16 +330,15 @@ export const hostBadge = style({
display: "inline-block",
fontSize: "0.7rem",
padding: "0.15rem 0.55rem",
- borderRadius: "0.35rem",
+ borderRadius: 0,
marginLeft: "0.5rem",
- fontWeight: 600,
+ fontWeight: 700,
textTransform: "uppercase",
verticalAlign: "middle",
letterSpacing: "0.5px",
fontFamily: FONT_COMIC,
background: vars.accent,
color: vars.bg,
- boxShadow: `0 2px 4px color-mix(in srgb, ${vars.accent} 50%, transparent)`,
});
/* Footer */
@@ -356,29 +348,30 @@ export const githubFooter = style({
textAlign: "center",
width: "100%",
fontFamily: FONT_COMIC,
- borderTop: `1px solid color-mix(in srgb, ${vars.surface} 30%, transparent)`,
+ borderTop: `2px solid ${vars.surfaceHigher}`,
});
export const githubButton = style({
display: "inline-flex",
alignItems: "center",
gap: "0.5rem",
- padding: "1rem 2rem",
- minHeight: "3.5rem",
- borderRadius: "0.5rem",
- fontWeight: 600,
- transition: "all 0.2s ease",
+ padding: "0.875rem 1.75rem",
+ minHeight: "3rem",
+ borderRadius: 0,
+ fontWeight: 700,
+ fontSize: "0.8125rem",
+ textTransform: "uppercase",
+ letterSpacing: "0.05em",
+ transition: "background-color 0.15s ease, color 0.15s ease",
fontFamily: FONT_COMIC,
textDecoration: "none",
- background: vars.surface,
- color: `${vars.text} !important` as unknown as string,
- boxShadow: `0 2px 4px color-mix(in srgb, ${vars.text} 10%, transparent)`,
- border: `1px solid ${vars.surface}`,
+ background: "transparent",
+ color: `${vars.textSoft} !important` as unknown as string,
+ border: `1px solid ${vars.surfaceHigher}`,
":hover": {
- transform: "translateY(-1px)",
- boxShadow: `0 4px 6px color-mix(in srgb, ${vars.accent} 30%, transparent)`,
background: vars.accentAlt,
- color: vars.bg,
+ color: `${vars.bg} !important` as unknown as string,
+ borderColor: vars.accentAlt,
},
});
@@ -392,20 +385,19 @@ export const searchContainer = style({
export const searchInput = style({
width: "100%",
padding: "0.75rem 1rem 0.75rem 3rem",
- borderRadius: "0.5rem",
- border: `1px solid ${vars.surface}`,
+ borderRadius: 0,
+ border: `1px solid ${vars.surfaceHigher}`,
backgroundColor: vars.surface,
color: vars.text,
fontFamily: FONT_COMIC,
fontSize: "0.875rem",
- transition: "all 0.2s ease",
+ transition: "border-color 0.15s ease",
":focus": {
outline: "none",
borderColor: vars.accent,
- boxShadow: `0 0 0 2px color-mix(in srgb, ${vars.accent} 20%, transparent)`,
},
"::placeholder": {
- color: vars.textMuted,
+ color: vars.textDim,
},
});
@@ -438,18 +430,20 @@ export const searchClear = style({
/* Filter buttons */
export const filterButton = style({
padding: "0.5rem 1rem",
- borderRadius: "0.5rem",
- transition: "all 0.2s ease",
+ borderRadius: 0,
+ transition: "background-color 0.15s ease, color 0.15s ease",
fontFamily: FONT_COMIC,
- fontWeight: 600,
- fontSize: "0.875rem",
+ fontWeight: 700,
+ fontSize: "0.75rem",
+ textTransform: "uppercase",
+ letterSpacing: "0.04em",
cursor: "pointer",
- border: `1px solid ${vars.surface}`,
+ border: `1px solid ${vars.surfaceHigher}`,
backgroundColor: vars.surface,
- color: vars.text,
+ color: vars.textSoft,
":hover": {
- backgroundColor: vars.accentAlt,
- color: vars.bg,
+ backgroundColor: vars.surfaceHi,
+ color: vars.text,
borderColor: vars.accent,
},
});
@@ -472,41 +466,34 @@ export const frontingGlow = style({
});
globalStyle(`${frontingGlow} a`, {
- background:
- "linear-gradient(135deg, color-mix(in srgb, var(--member-color) 15%, transparent) 0%, color-mix(in srgb, var(--member-color) 5%, transparent) 100%)",
- border: "2px solid color-mix(in srgb, var(--member-color) 50%, transparent)",
- boxShadow:
- "0 0 20px color-mix(in srgb, var(--member-color) 30%, transparent), 0 0 40px color-mix(in srgb, var(--member-color) 20%, transparent), inset 0 0 20px color-mix(in srgb, var(--member-color) 10%, transparent)",
+ background: "color-mix(in srgb, var(--member-color) 8%, transparent)",
+ border: "2px solid var(--member-color)",
+ boxShadow: "3px 3px 0 var(--member-color)",
});
globalStyle(`${frontingGlow} a:hover`, {
- borderColor: "color-mix(in srgb, var(--member-color) 80%, transparent)",
- boxShadow:
- "0 0 30px color-mix(in srgb, var(--member-color) 50%, transparent), 0 0 60px color-mix(in srgb, var(--member-color) 30%, transparent), inset 0 0 30px color-mix(in srgb, var(--member-color) 15%, transparent)",
+ background: "color-mix(in srgb, var(--member-color) 14%, transparent)",
});
globalStyle(`${frontingGlow} img`, {
borderColor: "var(--member-color)",
- boxShadow: "0 0 15px color-mix(in srgb, var(--member-color) 40%, transparent)",
+ boxShadow: "2px 2px 0 var(--member-color)",
});
globalStyle(`${frontingGlow} a::before`, {
content: '"FRONTING"',
position: "absolute",
- top: "-8px",
- left: "50%",
- transform: "translateX(-50%)",
+ top: "-1px",
+ left: "-1px",
background: "var(--member-color)",
- color: "white",
- fontSize: "0.65rem",
+ color: "black",
+ fontSize: "0.6rem",
padding: "0.15rem 0.5rem",
- borderRadius: "0.25rem",
+ borderRadius: 0,
fontWeight: 700,
- letterSpacing: "0.5px",
+ letterSpacing: "0.05em",
fontFamily: FONT_COMIC,
- boxShadow: "0 2px 8px color-mix(in srgb, var(--member-color) 40%, transparent)",
zIndex: 10,
- textShadow: "0 1px 2px rgba(0, 0, 0, 0.3)",
});
/* Utility */
diff --git a/src/styles/theme.css.ts b/src/styles/theme.css.ts
index 52a9ead..0bb7fa1 100644
--- a/src/styles/theme.css.ts
+++ b/src/styles/theme.css.ts
@@ -41,8 +41,11 @@ export const vars = createGlobalThemeContract({
/** Not flavor-dependent, but goes through the same contract so it's always
* referenced via var(--font-comic) — never inlined as a raw string, which
- * trips up the CSS serializer on the quote+comma combo. */
-const FONT_COMIC_VALUE = "'Comic Code', cursive";
+ * trips up the CSS serializer on the quote+comma combo.
+ * Token kept its old name across the terminal/clunky redesign (renaming it
+ * would mean touching every consumer) but now points at IBM Plex Mono. */
+const FONT_COMIC_VALUE =
+ "'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace";
/**
* One palette, applied globally. The old per-flavor themes (cherry, toxic,