REFACTOR(repo): simplify project structure
- Move services/nextjs/ to nextjs/ - Move Dockerfile.prod to Dockerfile at root - Remove deploy/ folder (K8s manifests moved to K3S-HOME/web-apps) - Remove .gitea/ workflows - Update GitHub Actions for new structure - Remove develop branch triggers
This commit is contained in:
54
nextjs/app/[locale]/layout.tsx
Normal file
54
nextjs/app/[locale]/layout.tsx
Normal file
@@ -0,0 +1,54 @@
|
||||
import type { Metadata } from "next";
|
||||
import "../globals.css";
|
||||
import Header from "@/components/widgets/Header";
|
||||
import Footer from "@/components/widgets/Footer";
|
||||
import { ThemeProvider } from "@/providers/theme-provider";
|
||||
import { NextIntlClientProvider } from 'next-intl';
|
||||
import { getMessages } from 'next-intl/server';
|
||||
import { notFound } from 'next/navigation';
|
||||
import { routing } from '@/i18n/routing';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Portfolio - Full Stack Developer",
|
||||
description: "Creating beautiful and functional web experiences with modern technologies",
|
||||
};
|
||||
|
||||
export function generateStaticParams() {
|
||||
return routing.locales.map((locale) => ({ locale }));
|
||||
}
|
||||
|
||||
export default async function LocaleLayout({
|
||||
children,
|
||||
params
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
params: Promise<{ locale: string }>;
|
||||
}) {
|
||||
const { locale } = await params;
|
||||
|
||||
if (!routing.locales.includes(locale as any)) {
|
||||
notFound();
|
||||
}
|
||||
|
||||
const messages = await getMessages();
|
||||
|
||||
return (
|
||||
<html lang={locale} suppressHydrationWarning>
|
||||
<body>
|
||||
<NextIntlClientProvider messages={messages}>
|
||||
<ThemeProvider
|
||||
attribute="class"
|
||||
defaultTheme="system"
|
||||
enableSystem
|
||||
disableTransitionOnChange
|
||||
storageKey="portfolio-theme"
|
||||
>
|
||||
<Header />
|
||||
{children}
|
||||
<Footer />
|
||||
</ThemeProvider>
|
||||
</NextIntlClientProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
31
nextjs/app/[locale]/page.tsx
Normal file
31
nextjs/app/[locale]/page.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import Hero from '@/components/landing/hero';
|
||||
import About from '@/components/landing/about';
|
||||
import Skills from '@/components/landing/skills';
|
||||
import Projects from '@/components/landing/projects';
|
||||
import Contact from '@/components/landing/contact';
|
||||
import GrafanaPage from '@/components/landing/grafana';
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<div className="flex flex-col">
|
||||
<div id="hero">
|
||||
<Hero />
|
||||
</div>
|
||||
<div id="about">
|
||||
<About />
|
||||
</div>
|
||||
<div id="skills">
|
||||
<Skills />
|
||||
</div>
|
||||
<div id="projects">
|
||||
<Projects />
|
||||
</div>
|
||||
<div id="monitoring">
|
||||
<GrafanaPage />
|
||||
</div>
|
||||
<div id="contact">
|
||||
<Contact />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user