diff --git a/dashboard/src/app/page.tsx b/dashboard/src/app/page.tsx index 85bd617..ed9a146 100644 --- a/dashboard/src/app/page.tsx +++ b/dashboard/src/app/page.tsx @@ -34,7 +34,7 @@ const heroCards = [ }, { title: 'Deploy your app', - description: 'Manage your application and users within ZITADEL for secure access.', + description: 'Manage your application and users within Cloud-Neutral Toolkit for secure access.', icon: Users, }, ] @@ -47,19 +47,31 @@ const nextSteps = [ ] const stats = [ - { value: '~150k', label: 'Applications integrated with ZITADEL' }, + { value: '~150k', label: 'Applications integrated with Cloud-Neutral Toolkit' }, { value: '~330k', label: 'Daily active users' }, { value: '7', label: 'Go check out our examples & guides' }, ] const shortcuts = [ - { title: 'Get started', description: 'An overview of using ZITADEL', icon: Sparkles }, - { title: 'Creating your application', description: 'Integrate ZITADEL into your application', icon: AppWindow }, - { title: 'More about Authentication', description: 'Understand all about authenticating with ZITADEL', icon: ShieldCheck }, - { title: 'Understanding Authorization', description: 'Scope out all about authorization using ZITADEL', icon: Lock }, - { title: 'Machine-to-Machine', description: 'Integrate ZITADEL into your services', icon: Layers }, - { title: 'Connect via CLI', description: 'Connect ZITADEL with your application via CLI', icon: Terminal }, - { title: 'REST & Admin APIs', description: 'Programmatically integrate ZITADEL into your application', icon: Link }, + { title: 'Get started', description: 'An overview of using Cloud-Neutral Toolkit', icon: Sparkles }, + { title: 'Creating your application', description: 'Integrate Cloud-Neutral Toolkit into your application', icon: AppWindow }, + { + title: 'More about Authentication', + description: 'Understand all about authenticating with Cloud-Neutral Toolkit', + icon: ShieldCheck, + }, + { + title: 'Understanding Authorization', + description: 'Scope out all about authorization using Cloud-Neutral Toolkit', + icon: Lock, + }, + { title: 'Machine-to-Machine', description: 'Integrate Cloud-Neutral Toolkit into your services', icon: Layers }, + { title: 'Connect via CLI', description: 'Connect Cloud-Neutral Toolkit with your application via CLI', icon: Terminal }, + { + title: 'REST & Admin APIs', + description: 'Programmatically integrate Cloud-Neutral Toolkit into your application', + icon: Link, + }, ] export default function HomePage() { @@ -90,9 +102,9 @@ function HeroSection() {

Create, authenticate, deploy

-

Get started with ZITADEL

+

Get started with Cloud-Neutral Toolkit

- Integrate ZITADEL into your application or use one of our samples to get started quickly. + Integrate Cloud-Neutral Toolkit into your application or use one of our samples to get started quickly.

@@ -205,7 +217,7 @@ function ShortcutsSection() {

More shortcuts

-

Save time when integrating ZITADEL

+

Save time when integrating Cloud-Neutral Toolkit

diff --git a/dashboard/src/components/theme/ThemeProvider.tsx b/dashboard/src/components/theme/ThemeProvider.tsx index d3d932b..e6b31c7 100644 --- a/dashboard/src/components/theme/ThemeProvider.tsx +++ b/dashboard/src/components/theme/ThemeProvider.tsx @@ -34,6 +34,12 @@ function applyTheme(definition: ThemeDefinition) { root.dataset.theme = definition.name root.style.setProperty('color-scheme', definition.colorScheme) + const body = document.body + if (body) { + body.dataset.theme = definition.name + body.style.setProperty('color-scheme', definition.colorScheme) + } + const { colors, gradients, shadows, radii } = definition.tokens for (const [token, value] of Object.entries(colors)) { root.style.setProperty(`--color-${token}`, value) diff --git a/dashboard/src/i18n/LanguageProvider.tsx b/dashboard/src/i18n/LanguageProvider.tsx index 7d5ae05..3c58d87 100644 --- a/dashboard/src/i18n/LanguageProvider.tsx +++ b/dashboard/src/i18n/LanguageProvider.tsx @@ -46,6 +46,15 @@ export function LanguageProvider({ children }: { children: React.ReactNode }) { } }, [language]) + useEffect(() => { + if (typeof document === 'undefined') { + return + } + + document.documentElement.lang = language + document.documentElement.dataset.language = language + }, [language]) + return ( {children}