mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 22:06:38 +08:00
41 lines
1.6 KiB
TypeScript
41 lines
1.6 KiB
TypeScript
import Link from 'next/link';
|
|
import type { ReactNode } from 'react';
|
|
|
|
import { publicEnv } from '@/lib/env/public-env';
|
|
|
|
interface PublicShellProps {
|
|
children: ReactNode;
|
|
}
|
|
|
|
export function PublicShell({ children }: PublicShellProps) {
|
|
return (
|
|
<div className='flex min-h-screen items-center justify-center px-4 py-12'>
|
|
<div className='w-full max-w-3xl rounded-[var(--radius-xl)] border border-[var(--border-default)] bg-[var(--surface-panel)]/85 p-8 shadow-[var(--shadow-soft)] backdrop-blur'>
|
|
<div className='mb-8 flex flex-col gap-4 border-b border-[var(--border-default)] pb-6 md:flex-row md:items-end md:justify-between'>
|
|
<div>
|
|
<p className='text-3xl font-medium text-[var(--brand-primary)]'>ATSFlare</p>
|
|
</div>
|
|
<div className='flex flex-col items-start gap-3 text-sm text-[var(--foreground-secondary)] md:items-end'>
|
|
<span className='rounded-full border border-[var(--border-default)] px-3 py-1.5'>
|
|
{publicEnv.appVersion}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div className='space-y-6'>{children}</div>
|
|
|
|
<div className='mt-8 border-t border-[var(--border-default)] pt-6 text-sm text-[var(--foreground-secondary)]'>
|
|
<div className='flex flex-wrap gap-4'>
|
|
<Link href='/' className='text-[var(--brand-primary)] transition hover:opacity-80'>
|
|
返回
|
|
</Link>
|
|
<Link href='/about' className='text-[var(--brand-primary)] transition hover:opacity-80'>
|
|
关于
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|