Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat: typewriter email schemes, blob customization, and dark mode text fix

Gener810e29c59049
diff --git a/src/web/src/app/(auth)/sign-in/page.tsx b/src/web/src/app/(auth)/sign-in/page.tsx
index 4883d4732..7ca35e511 100644
--- a/src/web/src/app/(auth)/sign-in/page.tsx
+++ b/src/web/src/app/(auth)/sign-in/page.tsx
@@ -19,7 +19,7 @@ import {
} from "@/components/ui/field"
import { SiGithub, SiGoogle } from "@icons-pack/react-simple-icons"
import { GradientBackground } from "@/components/gradient-background"
-import { TypewriterVisual } from "@/components/typewriter-visual"
+import { TypewriterVisual, EMAILS_PLAYFUL } from "@/components/typewriter-visual"
const isProd = process.env.NODE_ENV === "production"
@@ -276,11 +276,11 @@ export default function SignInPage() {
<div className="flex flex-col gap-6">
<Card className="overflow-hidden p-0">
<CardContent className="grid p-0 md:grid-cols-2">
- <div className="p-6 md:p-8 md:min-h-[420px] flex flex-col justify-center">
+ <div className="p-6 md:p-8 md:min-h-105 flex flex-col justify-center">
{isProd ? <OTPSignIn /> : <PasswordSignIn />}
</div>
- <div className="hidden bg-muted md:flex items-center justify-center overflow-clip min-h-[320px] pt-24">
- <TypewriterVisual className="scale-[0.55] shrink-0" />
+ <div className="hidden bg-muted md:flex items-center justify-center overflow-visible min-h-80 pt-24">
+ <TypewriterVisual className="scale-[0.55] shrink-0" emails={EMAILS_PLAYFUL} blobScale={2.5} blobBottom="30%" />
</div>
</CardContent>
</Card>
diff --git a/src/web/src/app/globals.css b/src/web/src/app/globals.css
index b0a9a7be8..4bbff3854 100644
--- a/src/web/src/app/globals.css
+++ b/src/web/src/app/globals.css
@@ -179,11 +179,11 @@
.typewriter-blob {
position: absolute;
- bottom: -10%;
+ bottom: var(--blob-bottom, -10%);
left: 50%;
- transform: translateX(-50%);
- width: 130%;
- height: 80%;
+ transform: translateX(-50%) scale(var(--blob-scale, 1));
+ width: 150%;
+ height: 95%;
background-color: var(--tw-blob);
mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23000' d='M44.7,-76.4C58.9,-69.2,71.8,-59.1,81.1,-46.1C90.4,-33.1,96.1,-16.6,96.6,-0.1C97.1,16.4,92.5,32.8,82.8,45.8C73.1,58.8,58.4,68.4,42.7,75.4C27,82.4,10.3,86.8,-5.5,88.4C-21.3,90,-36.2,88.8,-49.6,81.8C-63,74.8,-74.9,62.1,-82.1,47.4C-89.3,32.7,-91.8,16.3,-90.1,0.9C-88.4,-14.4,-82.5,-28.9,-73.6,-40.8C-64.7,-52.7,-52.9,-62,-40.1,-69.4C-27.3,-76.8,-13.6,-82.3,1.3,-84.6C16.2,-86.9,30.5,-83.6,44.7,-76.4Z' transform='translate(100 100)' /%3E%3C/svg%3E");
mask-size: contain;
@@ -205,7 +205,7 @@
}
.typewriter-visual:hover .typewriter-blob {
- transform: translateX(-50%) scale(1.05) rotate(5deg);
+ transform: translateX(-50%) scale(calc(var(--blob-scale, 1) * 1.05)) rotate(5deg);
}
/* ── Machine wrapper — 3D box ── */
diff --git a/src/web/src/components/typewriter-visual.tsx b/src/web/src/components/typewriter-visual.tsx
index 7e7d15066..d11ae72b4 100644
--- a/src/web/src/components/typewriter-visual.tsx
+++ b/src/web/src/components/typewriter-visual.tsx
@@ -10,8 +10,15 @@ gsap.registerPlugin(SplitText);
// Key layout: 3 rows of oval keys (front-facing view)
const KEY_ROWS = [9, 7, 9];
-// Mock emails from Jarvis
-const EMAILS = [
+export interface TypewriterEmail {
+ from: string;
+ to: string;
+ subject: string;
+ body: string;
+}
+
+/** Clean, professional emails — default for the homepage. */
+export const EMAILS_DEFAULT: TypewriterEmail[] = [
{
@@ -44,6 +51,40 @@ const EMAILS = [
},
];
+/** All-emoji variant — playful, visual, good for sign-in and casual pages. */
+export const EMAILS_PLAYFUL: TypewriterEmail[] = [
+ {
+ from: "🤖@alook.ai",
+ to: "🧑‍💻@company.com",
+ subject: "Re: 🚀 Deploy hotfix → staging",
+ body: "✅ 🔀 feat/fix-session-token 🧪 47/47 ✅ 🚢 staging 🔐 login flow 👀✅ 🟢 live now!",
+ },
+ {
+ from: "🤖@alook.ai",
+ to: "🧑‍💻@company.com",
+ subject: "Re: 🏥 Check API health",
+ body: "📡 all endpoints 🟢 ⏱️ p99 42ms 📉 err 0.01% 🎯 threshold 200ms ✨ ~~~~ healthy ~~~~",
+ },
+ {
+ from: "🤖@alook.ai",
+ to: "🧑‍💻@company.com",
+ subject: "Re: 📋 Summarize today's PRs",
+ body: "🔀 #412 🔐✅ 🔀 #415 🚦✅ 🔀 #418 📊✅ 👀 #420 ← Sarah 🫡",
+ },
+ {
+ from: "🤖@alook.ai",
+ to: "🎨@company.com",
+ subject: "Re: ✏️ Update landing page copy",
+ body: "📝 hero tagline ✅ 📄 feature descriptions ✅ 🔀 feat/landing-copy 🔗 staging 🟢 >>> 👍 <<<",
+ },
+ {
+ from: "🤖@alook.ai",
+ to: "🧑‍💻@company.com",
+ subject: "Re: 🧪 Run the test suite",
+ body: "🧪 847 tests 🟢 0 💥 📈 84.2% ⬆️ 83.1% 🎉 no flakes! (╯°□°)╯︵ 🐛🐛🐛",
+ },
+];
+
// CSS variables the typewriter CSS needs — self-provided so
// the component works outside the `.landing` scope too.
const TW_VARS: React.CSSProperties = {
@@ -66,6 +107,12 @@ interface TypewriterVisualProps {
entranceDelay?: number;
/** Custom paper content. When provided, replaces the default email carousel and disables cycling. */
paper?: React.ReactNode;
+ /** Email scheme to display. Defaults to EMAILS_DEFAULT. Ignored when `paper` is provided. */
+ emails?: TypewriterEmail[];
+ /** Scale factor for the background blob. Default 1. */
+ blobScale?: number;
+ /** Bottom offset for the blob, e.g. "10%" or "20%". Default "-10%". */
+ blobBottom?: string;
}
/**
@@ -78,6 +125,9 @@ export function TypewriterVisual({
interactive = false,
entranceDelay = 0.3,
paper,
+ emails = EMAILS_DEFAULT,
+ blobScale = 1,
+ blobBottom,
}: TypewriterVisualProps) {
const containerRef = useRef<HTMLDivElement>(null);
const paperTlRef = useRef<gsap.core.Timeline | null>(null);
@@ -173,7 +223,7 @@ export function TypewriterVisual({
ease: "power2.in",
onComplete: () => {
setEmailIndex((prev) => {
- const next = (prev + 1) % EMAILS.length;
+ const next = (prev + 1) % emails.length;
requestAnimationFrame(() => {
requestAnimationFrame(() => {
playPaperFeed();
@@ -183,7 +233,7 @@ export function TypewriterVisual({
});
},
});
- }, [playPaperFeed]);
+ }, [playPaperFeed, emails.length]);
// Keyboard Enter listener — only when interactive
useEffect(() => {
@@ -208,15 +258,15 @@ export function TypewriterVisual({
if (!bodyEl) return;
const bodySplit = SplitText.create(bodyEl, { type: "words" });
- const paper = root.querySelector<HTMLElement>(".tw-paper");
- const paperH = paper ? paper.offsetHeight : 300;
- gsap.set(paper, { y: paperH, opacity: 1 });
+ const paperEl = root.querySelector<HTMLElement>(".tw-paper");
+ const paperH = paperEl ? paperEl.offsetHeight : 300;
+ gsap.set(paperEl, { y: paperH, opacity: 1 });
gsap.set(root.querySelectorAll(".tw-email-line"), { opacity: 0 });
gsap.set(bodySplit.words, { opacity: 0 });
const tl = gsap.timeline({ delay: entranceDelay });
- tl.to(paper, {
+ tl.to(paperEl, {
y: 0,
duration: 3,
ease: "power1.out",
@@ -239,7 +289,7 @@ export function TypewriterVisual({
{ scope: containerRef }
);
- const email = EMAILS[emailIndex];
+ const email = emails[emailIndex];
return (
<div
@@ -249,7 +299,7 @@ export function TypewriterVisual({
onMouseMove={handleMouseMove}
onMouseLeave={handleMouseLeave}
>
- <div className="typewriter-blob" />
+ <div className="typewriter-blob" style={(blobScale !== 1 || blobBottom) ? { "--blob-scale": blobScale, ...(blobBottom ? { "--blob-bottom": blobBottom } : {}) } as React.CSSProperties : undefined} />
<div className="typewriter-scene">
<div className="tw-machine">
@@ -271,7 +321,7 @@ export function TypewriterVisual({
style={{
fontFamily: "var(--font-crt)",
fontSize: "15px",
- color: "var(--landing-text-muted)",
+ color: "oklch(0.45 0.01 55)",
lineHeight: 1.7,
borderBottom: "1px solid oklch(0.15 0.01 55 / 10%)",
paddingBottom: "10px",
@@ -279,15 +329,15 @@ export function TypewriterVisual({
}}
>
<div className="tw-email-line">
- <span style={{ color: "var(--landing-text)" }}>From:</span>{" "}
+ <span style={{ color: "oklch(0.15 0.01 55)" }}>From:</span>{" "}
{email.from}
</div>
<div className="tw-email-line">
- <span style={{ color: "var(--landing-text)" }}>To:</span>{" "}
+ <span style={{ color: "oklch(0.15 0.01 55)" }}>To:</span>{" "}
{email.to}
</div>
<div className="tw-email-line">
- <span style={{ color: "var(--landing-text)" }}>Subject:</span>{" "}
+ <span style={{ color: "oklch(0.15 0.01 55)" }}>Subject:</span>{" "}
{email.subject}
</div>
</div>
@@ -296,7 +346,7 @@ export function TypewriterVisual({
className="tw-email-body"
style={{
fontFamily: "var(--font-crt)",
- color: "var(--landing-text)",
+ color: "oklch(0.15 0.01 55)",
fontSize: "17px",
lineHeight: 1.6,
}}