forked from FlowwStar/FlowStar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.tsx
More file actions
124 lines (119 loc) · 3.75 KB
/
Copy pathlayout.tsx
File metadata and controls
124 lines (119 loc) · 3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
import { Analytics } from '@vercel/analytics/next'
import type { Metadata, Viewport } from 'next'
import { Geist, Geist_Mono } from 'next/font/google'
import { ThemeProvider } from 'next-themes'
import { NetworkProvider } from '@/components/providers/network-provider'
import { WalletProvider } from '@/components/providers/wallet-provider'
import { Toaster } from '@/components/ui/sonner'
import './globals.css'
// JSON-LD structured data
const jsonLd = {
'@context': 'https://schema.org',
'@type': 'WebApplication',
name: 'FlowStar',
description: 'Stream tokens by the second with cliffs and cancellations on Stellar Soroban',
url: 'https://flowstar.app',
applicationCategory: 'FinanceApplication',
operatingSystem: 'Web',
offers: {
'@type': 'Offer',
price: '0',
priceCurrency: 'USD',
},
author: {
'@type': 'Organization',
name: 'FlowStar',
},
}
const geistSans = Geist({ variable: '--font-geist-sans', subsets: ['latin'] })
const geistMono = Geist_Mono({
variable: '--font-geist-mono',
subsets: ['latin'],
})
export const metadata: Metadata = {
title: {
default: 'FlowStar — Real-Time Token Streaming on Stellar',
template: '%s | FlowStar',
},
description:
'Stream tokens by the second with cliffs and cancellations on Stellar Soroban. Create vesting schedules, payroll, and grants that unlock continuously — withdraw anytime, cancel anytime.',
keywords: ['stellar', 'soroban', 'token streaming', 'DeFi', 'payment streams', 'vesting', 'payroll', 'grants'],
metadataBase: new URL('https://flowstar.app'),
alternates: {
canonical: '/',
},
openGraph: {
type: 'website',
siteName: 'FlowStar',
title: 'FlowStar — Real-Time Token Streaming on Stellar',
description:
'Stream tokens by the second with cliffs and cancellations on Stellar Soroban. Create vesting schedules, payroll, and grants that unlock continuously — withdraw anytime, cancel anytime.',
images: [{ url: '/og-image.png', width: 1200, height: 630, alt: 'FlowStar' }],
locale: 'en_US',
},
twitter: {
card: 'summary_large_image',
title: 'FlowStar — Real-Time Token Streaming on Stellar',
description:
'Stream tokens by the second with cliffs and cancellations on Stellar Soroban. Create vesting schedules, payroll, and grants that unlock continuously — withdraw anytime, cancel anytime.',
images: ['/og-image.png'],
creator: '@flowstar',
},
robots: {
index: true,
follow: true,
googleBot: {
index: true,
follow: true,
'max-video-preview': -1,
'max-image-preview': 'large',
'max-snippet': -1,
},
},
icons: {
icon: [
{ url: '/icon-light-32x32.png', sizes: '32x32', type: 'image/png' },
{ url: '/icon.svg', type: 'image/svg+xml' },
],
apple: '/apple-icon.png',
},
}
export const viewport: Viewport = {
themeColor: '#0c1014',
}
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html
lang="en"
className={`${geistSans.variable} ${geistMono.variable} bg-background`}
suppressHydrationWarning
>
<head>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>
</head>
<body className="font-sans antialiased">
<ThemeProvider
attribute="class"
defaultTheme="system"
enableSystem
disableTransitionOnChange
>
<NetworkProvider>
<WalletProvider>
{children}
<Toaster position="top-right" />
</WalletProvider>
</NetworkProvider>
{process.env.NODE_ENV === 'production' && <Analytics />}
</ThemeProvider>
</body>
</html>
)
}