Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat: add gradient background

Gus277596e8e3bb
diff --git a/src/web/app/(app)/layout.tsx b/src/web/app/(app)/layout.tsx
index cf49deb54..f2819e77a 100644
--- a/src/web/app/(app)/layout.tsx
+++ b/src/web/app/(app)/layout.tsx
@@ -4,6 +4,7 @@ import { useEffect, useState } from "react";
import { useRouter } from "next/navigation";
import { AgentProvider } from "@/contexts/agent-context";
import { AppSidebar } from "@/components/app-sidebar";
+import { GradientBackground } from "@/components/gradient-background";
export default function AppLayout({ children }: { children: React.ReactNode }) {
const router = useRouter();
@@ -26,13 +27,15 @@ export default function AppLayout({ children }: { children: React.ReactNode }) {
return (
<AgentProvider>
- <div className="flex h-screen bg-background overflow-hidden">
+ <div className="flex h-screen overflow-hidden relative">
+ <GradientBackground />
+
{/* Sidebar rail — stable across route changes */}
<AppSidebar />
{/* Floating content panel */}
<div className="flex-1 min-w-0 p-2 pl-0">
- <main className="h-full rounded-xl bg-card shadow-sm ring-1 ring-border/50 overflow-hidden flex flex-col">
+ <main className="h-full rounded-xl bg-card/80 backdrop-blur-xl shadow-lg ring-1 ring-border/40 overflow-hidden flex flex-col">
{children}
</main>
</div>
diff --git a/src/web/app/globals.css b/src/web/app/globals.css
index 39a2a2167..2fc1de277 100644
--- a/src/web/app/globals.css
+++ b/src/web/app/globals.css
@@ -133,6 +133,122 @@
opacity: 1;
}
+/* ── Gradient background blobs ── */
+.gradient-blob {
+ position: absolute;
+ filter: blur(40px);
+ opacity: 0.7;
+ will-change: transform;
+}
+
+.gradient-blob-1 {
+ width: 750px;
+ height: 450px;
+ top: -140px;
+ left: -200px;
+ border-radius: 30% 70% 64% 36% / 62% 28% 72% 38%;
+ background: oklch(0.90 0.12 90);
+ animation: blob-drift-1 25s ease-in-out infinite;
+}
+
+.gradient-blob-2 {
+ width: 500px;
+ height: 720px;
+ bottom: -180px;
+ right: -150px;
+ border-radius: 68% 32% 25% 75% / 38% 72% 28% 62%;
+ background: oklch(0.88 0.10 85);
+ animation: blob-drift-2 30s ease-in-out infinite;
+}
+
+.gradient-blob-3 {
+ width: 680px;
+ height: 400px;
+ top: -100px;
+ right: -180px;
+ border-radius: 25% 75% 68% 32% / 72% 35% 65% 28%;
+ background: oklch(0.86 0.14 95);
+ animation: blob-drift-3 22s ease-in-out infinite;
+}
+
+.gradient-blob-4 {
+ width: 420px;
+ height: 700px;
+ bottom: -160px;
+ left: -120px;
+ border-radius: 72% 28% 35% 65% / 25% 68% 32% 75%;
+ background: oklch(0.89 0.11 80);
+ animation: blob-drift-4 28s ease-in-out infinite;
+}
+
+.dark .gradient-blob-1 {
+ background: oklch(0.38 0.16 290);
+ opacity: 0.65;
+}
+
+.dark .gradient-blob-2 {
+ background: oklch(0.34 0.14 270);
+ opacity: 0.6;
+}
+
+.dark .gradient-blob-3 {
+ background: oklch(0.36 0.18 310);
+ opacity: 0.6;
+}
+
+.dark .gradient-blob-4 {
+ background: oklch(0.32 0.15 280);
+ opacity: 0.55;
+}
+
+/* Blob 1: top-left corner → drifts toward center, morphs shape */
+@keyframes blob-drift-1 {
+ 0%, 100% {
+ transform: translate(0, 0) scale(1);
+ border-radius: 30% 70% 64% 36% / 62% 28% 72% 38%;
+ }
+ 50% {
+ transform: translate(200px, 180px) scale(1.05);
+ border-radius: 65% 35% 28% 72% / 38% 68% 32% 62%;
+ }
+}
+
+/* Blob 2: bottom-right corner → drifts toward center, morphs shape */
+@keyframes blob-drift-2 {
+ 0%, 100% {
+ transform: translate(0, 0) scale(1);
+ border-radius: 68% 32% 25% 75% / 38% 72% 28% 62%;
+ }
+ 50% {
+ transform: translate(-200px, -180px) scale(1.08);
+ border-radius: 32% 68% 72% 28% / 65% 30% 70% 35%;
+ }
+}
+
+/* Blob 3: top-right corner → drifts toward center, morphs shape */
+@keyframes blob-drift-3 {
+ 0%, 100% {
+ transform: translate(0, 0) scale(1);
+ border-radius: 25% 75% 68% 32% / 72% 35% 65% 28%;
+ }
+ 50% {
+ transform: translate(-180px, 200px) scale(1.06);
+ border-radius: 70% 30% 35% 65% / 28% 72% 38% 62%;
+ }
+}
+
+/* Blob 4: bottom-left corner → drifts toward center, morphs shape */
+@keyframes blob-drift-4 {
+ 0%, 100% {
+ transform: translate(0, 0) scale(1);
+ border-radius: 72% 28% 35% 65% / 25% 68% 32% 75%;
+ }
+ 50% {
+ transform: translate(180px, -200px) scale(1.04);
+ border-radius: 28% 72% 65% 35% / 70% 25% 75% 30%;
+ }
+}
+
/* ── Motion tokens ── */
@keyframes fade-up {
from {
diff --git a/src/web/app/login/page.tsx b/src/web/app/login/page.tsx
index a99e441c6..19e50ec4a 100644
--- a/src/web/app/login/page.tsx
+++ b/src/web/app/login/page.tsx
@@ -18,6 +18,7 @@ import {
CardTitle,
} from "@/components/ui/card";
import { Logo } from "@/components/logo";
+import { GradientBackground } from "@/components/gradient-background";
import { sendCode, verifyCode, listWorkspaces } from "@/lib/api";
import { ApiError } from "@/lib/errors";
@@ -92,8 +93,9 @@ export default function LoginPage() {
};
return (
- <div className="flex min-h-screen items-center justify-center bg-background p-4">
- <Card className="w-full max-w-sm">
+ <div className="flex min-h-screen items-center justify-center p-4 relative">
+ <GradientBackground />
+ <Card className="w-full max-w-sm bg-card/80 backdrop-blur-xl">
<CardHeader className="text-center">
<Logo size="lg" className="justify-center" />
<CardDescription>
diff --git a/src/web/components/gradient-background.tsx b/src/web/components/gradient-background.tsx
new file mode 100644
index 000000000..144cf7e4b
--- /dev/null
+++ b/src/web/components/gradient-background.tsx
@@ -0,0 +1,31 @@
+"use client";
+
+export function GradientBackground() {
+ return (
+ <div
+ aria-hidden
+ className="pointer-events-none fixed inset-0 -z-10 overflow-hidden"
+ >
+ {/* Blob 1 — warm amber, top-left drift */}
+ <div className="gradient-blob gradient-blob-1" />
+ {/* Blob 2 — soft peach, bottom-right drift */}
+ <div className="gradient-blob gradient-blob-2" />
+ {/* Blob 3 — cream rose, top-right → center */}
+ <div className="gradient-blob gradient-blob-3" />
+ {/* Blob 4 — warm sand, bottom-left → center */}
+ <div className="gradient-blob gradient-blob-4" />
+ {/* Noise texture overlay */}
+ <svg className="absolute inset-0 w-full h-full opacity-[0.25] mix-blend-multiply dark:mix-blend-overlay pointer-events-none">
+ <filter id="noise">
+ <feTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="4" stitchTiles="stitch" />
+ <feComponentTransfer>
+ <feFuncR type="linear" slope="0.5" intercept="0" />
+ <feFuncG type="linear" slope="0.5" intercept="0" />
+ <feFuncB type="linear" slope="0.5" intercept="0" />
+ </feComponentTransfer>
+ </filter>
+ <rect width="100%" height="100%" filter="url(#noise)" />
+ </svg>
+ </div>
+ );
+}