feat: better lang selector

This commit is contained in:
tresabhi committed 2025-01-06 20:14:33 -06:00
1 parent d9688f6051
commit db4132f666
1 file changed
+3 -3
@@ -5,7 +5,7 @@ import {
localizedStrings, localizedStrings,
SUPPORTED_LOCALES, SUPPORTED_LOCALES,
} from '@blitzkit/core'; } from '@blitzkit/core';
import { Box, Flex, Heading, Link, Text } from '@radix-ui/themes'; import { Box, Flex, Heading, Link, Separator } from '@radix-ui/themes';
import type { GetStaticPaths } from 'astro'; import type { GetStaticPaths } from 'astro';
import { AesonPlug } from '../../components/AesonPlug'; import { AesonPlug } from '../../components/AesonPlug';
import HomeHero from '../../components/HomeHero.astro'; import HomeHero from '../../components/HomeHero.astro';
@@ -41,7 +41,7 @@ export const getStaticPaths = (() => {
<BaseLayout> <BaseLayout>
<HomeHero /> <HomeHero />
<Flex justify="center" gap="2" pt="6" pb="4"> <Flex justify="center" gap="3" pt="6" pb="4" align="center">
{ {
SUPPORTED_LOCALES.map((thisLocale, index) => { SUPPORTED_LOCALES.map((thisLocale, index) => {
const selected = const selected =
@@ -51,7 +51,7 @@ export const getStaticPaths = (() => {
return ( return (
<> <>
{index > 0 && <Text color="gray">|</Text>} {index > 0 && <Separator orientation="vertical" size="1" />}
<Link <Link
color="gray" color="gray"