From 18f7a28a7ee6e6c8a04233feac037bbf9c91b0a5 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 2 Jan 2023 20:26:18 +0100 Subject: feat: Init commit --- .vscode/settings.json | 5 ++ README.md | 11 +++++ components/Button.tsx | 12 +++++ deno.json | 10 ++++ deno.lock | 127 ++++++++++++++++++++++++++++++++++++++++++++++++++ dev.ts | 5 ++ fresh.gen.ts | 17 +++++++ import_map.json | 12 +++++ main.ts | 13 ++++++ routes/index.tsx | 22 +++++++++ static/favicon.ico | Bin 0 -> 22382 bytes static/logo.svg | 6 +++ twind.config.ts | 5 ++ 13 files changed, 245 insertions(+) create mode 100644 .vscode/settings.json create mode 100644 README.md create mode 100644 components/Button.tsx create mode 100644 deno.json create mode 100644 deno.lock create mode 100755 dev.ts create mode 100644 fresh.gen.ts create mode 100644 import_map.json create mode 100644 main.ts create mode 100644 routes/index.tsx create mode 100644 static/favicon.ico create mode 100644 static/logo.svg create mode 100644 twind.config.ts diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6f4f84f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "deno.enable": true, + "deno.lint": true, + "editor.defaultFormatter": "denoland.vscode-deno" +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..f605bd9 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# fresh project + +### Usage + +Start the project: + +``` +deno task start +``` + +This will watch the project directory and restart as necessary. diff --git a/components/Button.tsx b/components/Button.tsx new file mode 100644 index 0000000..909d380 --- /dev/null +++ b/components/Button.tsx @@ -0,0 +1,12 @@ +import { JSX } from "preact"; +import { IS_BROWSER } from "$fresh/runtime.ts"; + +export function Button(props: JSX.HTMLAttributes) { + return ( +