feat: enhance page titles and link previews for improved user experience and sharing capabilities

This commit is contained in:
Usman Baig
2026-02-22 19:40:00 +01:00
parent 94fb7c60e0
commit 5c148a0547
17 changed files with 267 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import type { Metadata } from 'next'
export const metadata: Metadata = {
title: 'Uptime | Pulse',
description: 'Monitor your site uptime and response times.',
robots: { index: false, follow: false },
}
export default function UptimeLayout({
children,
}: {
children: React.ReactNode
}) {
return children
}

View File

@@ -703,6 +703,10 @@ export default function UptimePage() {
setShowEditModal(true)
}
useEffect(() => {
if (site?.domain) document.title = `Uptime · ${site.domain} | Pulse`
}, [site?.domain])
const showSkeleton = useMinimumLoading(loading)
if (showSkeleton) return <UptimeSkeleton />