feat: revamp dashboard, trades, and add landing/legal pages

- Major UI updates across dashboard, analytics, posts, trades, settings
- New landing page, robots/sitemap, contact/privacy/terms pages
- Updated globals.css with extensive styling and new landing.css
- Refactor signedRequest, realtime data hook, and dashboard store

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
k
2026-04-25 16:04:57 +08:00
parent 83e5892ddf
commit 040e1df685
28 changed files with 4133 additions and 690 deletions
+24 -25
View File
@@ -1,16 +1,10 @@
import type { Metadata } from 'next'
import { NextIntlClientProvider } from 'next-intl'
import { getMessages } from 'next-intl/server'
import { notFound } from 'next/navigation'
import Link from 'next/link'
import { locales } from '@/i18n'
import Providers from './Providers'
import Navbar from '@/components/nav/Navbar'
import './globals.css'
export const metadata: Metadata = {
title: 'Trump Alpha — AI signal trading',
description: 'Trade crypto based on Trump social media signals with AI confidence scoring.',
}
interface LayoutProps {
children: React.ReactNode
@@ -23,25 +17,30 @@ export default async function LocaleLayout({ children, params: { locale } }: Lay
}
const messages = await getMessages()
const href = (path: string) => `/${locale}${path}`
return (
<html lang={locale}>
<head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
<link
href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap"
rel="stylesheet"
/>
</head>
<body>
<NextIntlClientProvider messages={messages}>
<Providers>
<Navbar />
<main>{children}</main>
</Providers>
</NextIntlClientProvider>
</body>
</html>
<NextIntlClientProvider messages={messages}>
<Providers>
<Navbar />
<main>{children}</main>
<footer style={{
borderTop: '1px solid var(--line)',
padding: '20px 32px',
display: 'flex',
gap: 16,
alignItems: 'center',
flexWrap: 'wrap',
fontSize: 12,
color: 'var(--ink-3)',
marginTop: 48,
}}>
<span>© {new Date().getFullYear()} TrumpSignal</span>
<Link href={href('/privacy')} style={{ color: 'var(--ink-3)', textDecoration: 'none' }}>Privacy</Link>
<Link href={href('/terms')} style={{ color: 'var(--ink-3)', textDecoration: 'none' }}>Terms</Link>
<Link href={href('/contact')} style={{ color: 'var(--ink-3)', textDecoration: 'none' }}>Contact</Link>
</footer>
</Providers>
</NextIntlClientProvider>
)
}