Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat: add glow border with breathing effect to home CTA buttons and improve prompts

Generf08fea5b229a
diff --git a/src/web/src/app/(app)/w/[slug]/home/page.tsx b/src/web/src/app/(app)/w/[slug]/home/page.tsx
index 2b0e81893..d753a3b5a 100644
--- a/src/web/src/app/(app)/w/[slug]/home/page.tsx
+++ b/src/web/src/app/(app)/w/[slug]/home/page.tsx
@@ -49,10 +49,10 @@ export default function HomePage() {
<div className="text-center animate-[fade-up_400ms_ease-out_both]">
{runtimes.length === 0 ? (
<>
- <p className="text-muted-foreground text-sm">No machines yet.</p>
+ <p className="text-muted-foreground text-sm">Connect a machine to run your agents.</p>
<Button
size="sm"
- className="mt-4"
+ className="mt-4 glow-border"
onClick={() => router.push(`/w/${slug}/runtimes?connect`)}
>
Connect Machine
@@ -60,10 +60,10 @@ export default function HomePage() {
</>
) : !hasOnline ? (
<>
- <p className="text-muted-foreground text-sm">No machines online.</p>
+ <p className="text-muted-foreground text-sm">Start the daemon on your machine to bring it online.</p>
<Button
size="sm"
- className="mt-4"
+ className="mt-4 glow-border"
onClick={() => router.push(`/w/${slug}/runtimes`)}
>
Bring Machine Online
@@ -71,10 +71,10 @@ export default function HomePage() {
</>
) : (
<>
- <p className="text-muted-foreground text-sm">No agents yet.</p>
+ <p className="text-muted-foreground text-sm">Your machine is ready. Create your first agent to get started.</p>
<Button
size="sm"
- className="mt-4"
+ className="mt-4 glow-border"
onClick={() => router.push(`/w/${slug}/agents/new`)}
>
Create Agent
diff --git a/src/web/src/app/globals.css b/src/web/src/app/globals.css
index 11d78e3a6..150b7ce51 100644
--- a/src/web/src/app/globals.css
+++ b/src/web/src/app/globals.css
@@ -709,6 +709,46 @@
}
}
+@keyframes glow-border-spin {
+ 0% { --glow-angle: 0deg; }
+ 100% { --glow-angle: 360deg; }
+}
+
+@keyframes glow-border-breathe {
+ 0%, 100% { opacity: 0.5; }
+ 50% { opacity: 1; }
+}
+
+@property --glow-angle {
+ syntax: "<angle>";
+ initial-value: 0deg;
+ inherits: false;
+}
+
+.glow-border {
+ position: relative;
+ isolation: isolate;
+}
+.glow-border::before {
+ content: "";
+ position: absolute;
+ inset: -3px;
+ border-radius: inherit;
+ padding: 3px;
+ background: conic-gradient(
+ from var(--glow-angle),
+ transparent 25%,
+ var(--primary) 50%,
+ transparent 75%
+ );
+ -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
+ mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
+ -webkit-mask-composite: xor;
+ mask-composite: exclude;
+ animation: glow-border-spin 3s linear infinite, glow-border-breathe 2s ease-in-out infinite;
+ pointer-events: none;
+}
+
/* ── Utility: hide scrollbar ── */
.scrollbar-none {
-ms-overflow-style: none;