first day of vibe coding

This commit is contained in:
k
2026-04-20 22:11:18 +08:00
commit 1747fc489f
38 changed files with 15267 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import { NextIntlClientProvider } from 'next-intl'
import { getMessages } from 'next-intl/server'
import { notFound } from 'next/navigation'
import { locales } from '@/i18n'
import Navbar from '@/components/nav/Navbar'
import Providers from './Providers'
import './globals.css'
const inter = Inter({ subsets: ['latin'] })
export const metadata: Metadata = {
title: 'TrumpSignal — AI-powered crypto trading signals',
description: 'Trade crypto based on Trump social media signals with AI confidence scoring.',
}
interface LayoutProps {
children: React.ReactNode
params: { locale: string }
}
export default async function LocaleLayout({ children, params: { locale } }: LayoutProps) {
if (!locales.includes(locale as (typeof locales)[number])) {
notFound()
}
const messages = await getMessages()
return (
<html lang={locale}>
<body className={`${inter.className} bg-[#000000] min-h-screen text-white`}>
<NextIntlClientProvider messages={messages}>
<Providers>
<Navbar locale={locale} />
<main className="pt-14">{children}</main>
</Providers>
</NextIntlClientProvider>
</body>
</html>
)
}