Skip to content

Commit 3db8126

Browse files
committed
Move live indicator into heading
1 parent 2ef3205 commit 3db8126

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

freebuff/web/src/app/live/live-client.tsx

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
import { motion } from 'framer-motion'
4-
import { Activity, Cpu, Globe2, Radio } from 'lucide-react'
4+
import { Cpu, Globe2, Radio } from 'lucide-react'
55
import { useEffect, useMemo, useState } from 'react'
66

77
import type { FreebuffLiveStats } from '@/server/live-stats'
@@ -333,11 +333,20 @@ export default function LiveClient({
333333
<div className="relative container mx-auto px-4 pb-6 pt-10 md:pb-8 md:pt-14">
334334
<div className="flex flex-col gap-6 lg:flex-row lg:items-end lg:justify-between">
335335
<div>
336-
<div className="mb-4 inline-flex items-center gap-2 rounded-md border border-acid-matrix/25 bg-acid-matrix/10 px-3 py-1 text-xs uppercase tracking-[0.18em] text-acid-matrix">
337-
<Activity className="h-3.5 w-3.5" aria-hidden />
338-
Live
339-
</div>
340-
<h1 className="max-w-3xl font-serif text-4xl leading-tight text-white md:text-6xl">
336+
<h1 className="flex max-w-3xl items-center gap-4 font-serif text-4xl leading-tight text-white md:text-6xl">
337+
<motion.span
338+
aria-hidden
339+
className="h-3 w-3 shrink-0 rounded-full bg-acid-matrix shadow-[0_0_18px_rgba(124,255,63,0.9)] md:h-4 md:w-4"
340+
animate={{
341+
opacity: [0.45, 1, 0.45],
342+
scale: [0.86, 1.18, 0.86],
343+
}}
344+
transition={{
345+
duration: 1.8,
346+
repeat: Infinity,
347+
ease: 'easeInOut',
348+
}}
349+
/>
341350
Freebuff live
342351
</h1>
343352
</div>

0 commit comments

Comments
 (0)