Owner bought rithub.dev 2026-11-17; Rithub/Ritgram/Rit/gitgram-ai are all part of it now. Replaces every ritgram.ereboslab.com / git.ereboslab.com reference across Ritgram's pages/docs/sitemap/robots/og-tags with ritgram.rithub.dev / rithub.dev, and adds NEXT_PUBLIC_SITE_URL fallback accordingly. New honest /docs/rit page explains Rit (Rust git library, kept in this monorepo) is not the production forge engine (that's go-gitea/gitea), added to the sitemap. Old hosts (git.ereboslab.com, ritgram.ereboslab.com) now 301 to the new domain at the Caddy layer (box-side change, not in this commit) except /api/*, git smart-HTTP, and the Actions runner API, so existing clones/pushes/CI/mobile keep working unchanged. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
123 lines
4.3 KiB
TypeScript
123 lines
4.3 KiB
TypeScript
'use client'
|
|
|
|
import { useRouter } from 'next/navigation'
|
|
import Link from 'next/link'
|
|
|
|
const TOTAL_STEPS = 4
|
|
const CURRENT_STEP = 4
|
|
|
|
export default function FirstRepoPage() {
|
|
const router = useRouter()
|
|
|
|
const progressPercent = Math.round((CURRENT_STEP / TOTAL_STEPS) * 100)
|
|
|
|
const handleImport = () => {
|
|
router.push('/import-from-github')
|
|
}
|
|
|
|
return (
|
|
<div
|
|
className="min-h-screen flex flex-col items-center justify-center px-4 py-10"
|
|
style={{ backgroundColor: 'var(--background)' }}
|
|
>
|
|
<div className="w-full max-w-md">
|
|
{/* Progress */}
|
|
<div className="mb-10">
|
|
<div className="flex items-center justify-between mb-2">
|
|
<span
|
|
className="text-sm font-medium"
|
|
style={{ color: 'var(--foreground-secondary)' }}
|
|
>
|
|
Step {CURRENT_STEP} of {TOTAL_STEPS}
|
|
</span>
|
|
<span
|
|
className="text-sm"
|
|
style={{ color: 'var(--foreground-secondary)' }}
|
|
>
|
|
{progressPercent}%
|
|
</span>
|
|
</div>
|
|
<div
|
|
className="w-full h-1.5 rounded-full overflow-hidden"
|
|
style={{ backgroundColor: 'var(--surface)' }}
|
|
>
|
|
<div
|
|
className="h-full rounded-full"
|
|
style={{
|
|
width: `${progressPercent}%`,
|
|
backgroundColor: 'var(--primary)',
|
|
transition: 'width 0.4s ease',
|
|
}}
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
{/* Header */}
|
|
<div className="text-center mb-10">
|
|
<h1
|
|
className="text-3xl font-bold mb-3 tracking-tight"
|
|
style={{ color: 'var(--foreground)' }}
|
|
>
|
|
Bring in your first repo
|
|
</h1>
|
|
<p
|
|
className="text-lg leading-relaxed"
|
|
style={{ color: 'var(--foreground-secondary)' }}
|
|
>
|
|
An empty feed has nothing to show. Move one repo from GitHub —
|
|
no OAuth app, just a username — and Rithub mirrors it for you.
|
|
</p>
|
|
</div>
|
|
|
|
{/* Primary: Import from GitHub (no OAuth, already works) */}
|
|
<button
|
|
type="button"
|
|
onClick={handleImport}
|
|
className="flex items-center justify-center gap-3 w-full py-3.5 rounded-xl font-semibold text-base mb-3 focus:outline-none focus-visible:ring-2"
|
|
style={{
|
|
backgroundColor: 'var(--primary)',
|
|
color: '#fff',
|
|
}}
|
|
>
|
|
<svg
|
|
width="20"
|
|
height="20"
|
|
viewBox="0 0 24 24"
|
|
fill="currentColor"
|
|
aria-hidden="true"
|
|
>
|
|
<path d="M12 0C5.374 0 0 5.373 0 12c0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23A11.509 11.509 0 0 1 12 5.803c1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576C20.566 21.797 24 17.3 24 12c0-6.627-5.373-12-12-12z" />
|
|
</svg>
|
|
Import from GitHub — no sign-in needed
|
|
</button>
|
|
|
|
{/* Secondary: start fresh on Rithub */}
|
|
<a
|
|
href="https://rithub.dev/repo/create"
|
|
target="_blank"
|
|
rel="noreferrer"
|
|
className="flex items-center justify-center w-full py-3.5 rounded-xl font-semibold text-base mb-6 focus:outline-none focus-visible:ring-2"
|
|
style={{
|
|
backgroundColor: 'var(--surface)',
|
|
border: '1px solid var(--border)',
|
|
color: 'var(--foreground)',
|
|
}}
|
|
>
|
|
Or create a new repo on Rithub
|
|
</a>
|
|
|
|
{/* Skip */}
|
|
<div className="text-center">
|
|
<Link
|
|
href="/feed"
|
|
className="text-sm hover:underline"
|
|
style={{ color: 'var(--foreground-secondary)' }}
|
|
>
|
|
Skip for now
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|