Skip to content

Commit e61457e

Browse files
committed
Place live timestamp beside heading
1 parent 3db8126 commit e61457e

1 file changed

Lines changed: 22 additions & 22 deletions

File tree

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

Lines changed: 22 additions & 22 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 { Cpu, Globe2, Radio } from 'lucide-react'
4+
import { Cpu, Globe2 } from 'lucide-react'
55
import { useEffect, useMemo, useState } from 'react'
66

77
import type { FreebuffLiveStats } from '@/server/live-stats'
@@ -245,11 +245,6 @@ function WorldMap({ stats }: { stats: FreebuffLiveStats }) {
245245
</div>
246246
</div>
247247
)}
248-
249-
<div className="absolute left-4 top-4 flex items-center gap-2 rounded-md border border-white/10 bg-black/45 px-3 py-2 text-xs text-white/65 backdrop-blur">
250-
<Radio className="h-3.5 w-3.5 text-acid-matrix" aria-hidden />
251-
<span>Updated {formattedTime(stats.generatedAt)}</span>
252-
</div>
253248
</section>
254249
)
255250
}
@@ -333,22 +328,27 @@ export default function LiveClient({
333328
<div className="relative container mx-auto px-4 pb-6 pt-10 md:pb-8 md:pt-14">
334329
<div className="flex flex-col gap-6 lg:flex-row lg:items-end lg:justify-between">
335330
<div>
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-
/>
350-
Freebuff live
351-
</h1>
331+
<div className="flex flex-wrap items-baseline gap-x-4 gap-y-2">
332+
<h1 className="flex max-w-3xl items-center gap-4 font-serif text-4xl leading-tight text-white md:text-6xl">
333+
<motion.span
334+
aria-hidden
335+
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"
336+
animate={{
337+
opacity: [0.45, 1, 0.45],
338+
scale: [0.86, 1.18, 0.86],
339+
}}
340+
transition={{
341+
duration: 1.8,
342+
repeat: Infinity,
343+
ease: 'easeInOut',
344+
}}
345+
/>
346+
Freebuff live
347+
</h1>
348+
<span className="whitespace-nowrap text-sm text-white/45 md:text-base">
349+
Updated {formattedTime(stats.generatedAt)}
350+
</span>
351+
</div>
352352
</div>
353353
</div>
354354

0 commit comments

Comments
 (0)