caelum0x f80b04ae0f feat(ritgram): move GitGram app into railyard as Ritgram, next to Rithub
Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram).
AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan.
Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-13 04:18:46 +03:00

56 lines
1.6 KiB
TypeScript

'use client'
import { useState, useEffect } from 'react'
import Link from 'next/link'
export default function OfflinePage() {
const [isOnline, setIsOnline] = useState(true)
useEffect(() => {
setIsOnline(navigator.onLine)
const handleOnline = () => setIsOnline(true)
const handleOffline = () => setIsOnline(false)
window.addEventListener('online', handleOnline)
window.addEventListener('offline', handleOffline)
return () => {
window.removeEventListener('online', handleOnline)
window.removeEventListener('offline', handleOffline)
}
}, [])
if (isOnline) {
return (
<div className="min-h-screen bg-background flex items-center justify-center">
<div className="text-center">
<p className="text-foreground mb-4">You're back online!</p>
<Link
href="/feed"
className="px-6 py-3 bg-accent text-white rounded-lg font-semibold hover:opacity-90 inline-block"
>
Go to Feed
</Link>
</div>
</div>
)
}
return (
<div className="min-h-screen bg-background flex items-center justify-center">
<div className="text-center">
<h1 className="text-4xl font-bold text-foreground mb-4">You're Offline</h1>
<p className="text-foreground/70 mb-8">
Please check your internet connection and try again.
</p>
<button
onClick={() => window.location.reload()}
className="px-6 py-3 bg-accent text-white rounded-lg font-semibold hover:opacity-90"
>
Retry
</button>
</div>
</div>
)
}