From 1a3c11ebf021e99df37c717f5cdf285b72cbc197 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 23 Aug 2024 23:39:15 -0500 Subject: [PATCH] Stuff --- routes/_app.tsx | 4 ++-- routes/index.tsx | 59 ++++++++++++++++++++++++++++++++---------------- 2 files changed, 42 insertions(+), 21 deletions(-) diff --git a/routes/_app.tsx b/routes/_app.tsx index a186394..d83c539 100644 --- a/routes/_app.tsx +++ b/routes/_app.tsx @@ -5,10 +5,10 @@ export default function App({ Component }: PageProps) { - bank + Bank - + diff --git a/routes/index.tsx b/routes/index.tsx index 3fedaf0..67be0d7 100644 --- a/routes/index.tsx +++ b/routes/index.tsx @@ -1,25 +1,46 @@ -import { useSignal } from '@preact/signals' -import Counter from '../islands/Counter.tsx' +import { VNode } from 'https://esm.sh/v128/preact@10.19.6/src/index.js' +import { JSX } from 'preact' + +interface Budget { + name: string + target: number + buffer?: number +} + +interface IconButtonProps { + text: string + icon: string +} + +function IconButton( + { icon, text, ...props }: + & IconButtonProps + & JSX.HTMLAttributes, +) { + return ( + + {icon} + {text} + + ) +} export default function Home() { - const count = useSignal(3) return ( -
-
- the Fresh logo: a sliced lemon dripping with juice -

Welcome to Fresh

-

- Try updating this message in the - ./routes/index.tsx file, and refresh. -

- -
+
+
+ This is the main content +
+ +
) }