- Replace hardcoded hex colors with gold/gold-light/gold-dark Tailwind tokens - Extract Schedule into DayCard, ScheduleFilters, MobileSchedule sub-components - Extract Team into TeamCarousel, TeamMemberInfo sub-components - Add UI_CONFIG for centralized magic numbers (timings, thresholds) - Add reusable IconBadge component, simplify Contact section - Convert Pricing clickable divs to semantic buttons for a11y - Remove unused SocialLinks, btn-outline, btn-ghost, nav-link CSS classes - Fix React setState-during-render error in TeamCarousel (deferred update pattern) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
46 lines
1.0 KiB
TypeScript
46 lines
1.0 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Inter, Oswald } from "next/font/google";
|
|
import { Header } from "@/components/layout/Header";
|
|
import { Footer } from "@/components/layout/Footer";
|
|
import { siteContent } from "@/data/content";
|
|
import "./globals.css";
|
|
|
|
const inter = Inter({
|
|
variable: "--font-inter",
|
|
subsets: ["latin", "cyrillic"],
|
|
});
|
|
|
|
const oswald = Oswald({
|
|
variable: "--font-oswald",
|
|
subsets: ["latin", "cyrillic"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: siteContent.meta.title,
|
|
description: siteContent.meta.description,
|
|
openGraph: {
|
|
title: siteContent.meta.title,
|
|
description: siteContent.meta.description,
|
|
locale: "ru_RU",
|
|
type: "website",
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return (
|
|
<html lang="ru" className="dark">
|
|
<body
|
|
className={`${inter.variable} ${oswald.variable} surface-base font-sans antialiased`}
|
|
>
|
|
<Header />
|
|
<main>{children}</main>
|
|
<Footer />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|