this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Redirect index route to chats page

+6 -65
-9
apps/web/src/components/page.tsx
··· 1 - import type { ReactNode } from "react"; 2 - 3 - export function Page({ children }: { children: ReactNode }) { 4 - return ( 5 - <main className="min-h-screen bg-background font-sans text-foreground"> 6 - {children} 7 - </main> 8 - ); 9 - }
+6 -56
apps/web/src/routes/index.tsx
··· 1 - import { createFileRoute, Link } from "@tanstack/react-router"; 2 - import { Attribution } from "#/components/attribution"; 3 - import { Container } from "#/components/container"; 4 - import { Heading } from "#/components/heading"; 5 - import { Row, Stack } from "#/components/layout"; 6 - import { Logo } from "#/components/logo"; 7 - import { Page } from "#/components/page"; 8 - import { Text } from "#/components/text"; 9 - import { Button } from "#/components/ui/button"; 1 + import { createFileRoute, Navigate } from "@tanstack/react-router"; 10 2 11 - export const Route = createFileRoute("/")({ component: Home }); 3 + export const Route = createFileRoute("/")({ 4 + component: RouteComponent, 5 + }); 12 6 13 - function Home() { 14 - return ( 15 - <Page> 16 - <Container> 17 - <Stack className="min-h-screen" justify="center"> 18 - <Row gap="lg" items="center" justify="between"> 19 - <Stack> 20 - <Stack gap="sm"> 21 - <Heading> 22 - Welcome to <Logo /> 23 - </Heading> 24 - <Text variant="lead"> 25 - The place to chat with AI characters. 26 - </Text> 27 - </Stack> 28 - <Row gap="sm"> 29 - <Button size="lg" render={<Link to="/chats" />}> 30 - Chat 31 - </Button> 32 - <Button size="lg" variant="ghost" render={<Link to="/" />}> 33 - Learn more 34 - </Button> 35 - </Row> 36 - </Stack> 37 - <figure className="relative"> 38 - <img 39 - src="/kitsune.gif" 40 - alt="Fox girl" 41 - width="318" 42 - height="292" 43 - className="h-72 w-auto" 44 - /> 45 - <figcaption className="absolute top-full pt-2"> 46 - <Attribution 47 - title="RoopyRoo!" 48 - artist="Doosio" 49 - license="CC BY-NC-ND 3.0" 50 - href="https://www.deviantart.com/doosio/art/RoopyRoo-CM-887196542" 51 - /> 52 - </figcaption> 53 - </figure> 54 - </Row> 55 - </Stack> 56 - </Container> 57 - </Page> 58 - ); 7 + function RouteComponent() { 8 + return <Navigate to="/chats" />; 59 9 }