design: apply Pixel design system tokens (Fira Sans/Code, CSS vars, badge helpers); add Playwright E2E setup + auth spec

This commit is contained in:
Forge
2026-03-26 08:54:44 +08:00
parent 4970c70546
commit 981b415430
8 changed files with 243 additions and 53 deletions

View File

@@ -1,23 +1,29 @@
import type { Metadata } from 'next';
import { Inter } from 'next/font/google';
import { Fira_Sans, Fira_Code } from 'next/font/google';
import './globals.css';
import Providers from '@/components/providers';
const inter = Inter({ subsets: ['latin'] });
const firaSans = Fira_Sans({
subsets: ['latin'],
weight: ['300', '400', '500', '600', '700'],
variable: '--font-fira-sans',
});
const firaCode = Fira_Code({
subsets: ['latin'],
weight: ['400', '500', '600', '700'],
variable: '--font-fira-code',
});
export const metadata: Metadata = {
title: 'FiberOps Admin',
description: 'ISP Management Platform',
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body className={inter.className}>
<body className={`${firaSans.variable} ${firaCode.variable} ${firaSans.className}`}>
<Providers>{children}</Providers>
</body>
</html>