← Public packages
@kody/example-habit-log
A small habit log app built from the app starter: indigo theme, mobile layout, sign-in, and saved entries.
Files
import { Link, createRoute } from '@tanstack/react-router'
import { site } from '../content/site.ts'
import { rootRoute } from './root.tsx'
export const indexRoute = createRoute({
getParentRoute: () => rootRoute,
path: '/',
component: function Home() {
return (
<section className="card">
<h1>{site.home.heading}</h1>
<p className="muted">{site.tagline}</p>
<p>{site.home.body}</p>
<div>
<Link to="/items" className="button" data-variant="primary">
{site.home.cta}
</Link>
</div>
</section>
)
},
})