+ { children... } +
+diff --git a/cmd/build/main.go b/cmd/build/main.go
deleted file mode 100644
index a67fdb6..0000000
--- a/cmd/build/main.go
+++ /dev/null
@@ -1,30 +0,0 @@
-package main
-
-import (
- "context"
- "flag"
- "log"
-
- "extrovert/config"
- "extrovert/internals"
-)
-
-func main() {
- dir := flag.String("d", "./dist", "the directory to write the files")
- staticDir := flag.String("s", "./static", "the directory to copy static files from")
-
- flag.Parse()
-
- w := internals.StaticWriter{
- DistDir: dir,
- StaticDir: staticDir,
- Pages: config.ROUTES,
- Context: context.Background(),
- Logger: *log.Default(),
- }
-
- err := w.WriteAll()
- if err != nil {
- log.Fatal(err)
- }
-}
diff --git a/cmd/vercel/main.go b/cmd/vercel/main.go
deleted file mode 100644
index ef87034..0000000
--- a/cmd/vercel/main.go
+++ /dev/null
@@ -1,65 +0,0 @@
-package main
-
-import (
- "context"
- "encoding/json"
- "flag"
- "fmt"
- "log"
- "net/http"
- "os"
-
- "extrovert/config"
- "extrovert/internals"
-)
-
-type VercelConfig struct {
- OutputDirectory string `json:"outputDirectory"`
-}
-
-var logger = log.Default()
-
-func main() {
- configPath := flag.String("c", "./vercel.json", "the path to the vercel.json file")
- staticDir := flag.String("s", "./static", "the directory to copy static files from")
- port := flag.Int("p", 8080, "the port to run the server")
-
- flag.Parse()
-
- configFile, err := os.ReadFile(*configPath)
- if err != nil {
- logger.Fatalf("Unable to read vercel.json file due to:\n%s", err)
- }
-
- var c VercelConfig
- err = json.Unmarshal(configFile, &c)
- if err != nil {
- logger.Fatalf("Unable to parse vercel.json file due to:\n%s", err)
- }
-
- w := internals.StaticWriter{
- DistDir: &c.OutputDirectory,
- StaticDir: staticDir,
- Pages: config.ROUTES,
- Context: context.Background(),
- Logger: *log.Default(),
- }
-
- logger.Print("Writing static files")
- err = w.WriteAll()
- if err != nil {
- logger.Fatal(err)
- }
-
- logger.Print("Starting server")
- mux := http.NewServeMux()
-
- config.APIROUTES(mux)
- mux.Handle("/", http.FileServer(http.Dir(c.OutputDirectory)))
-
- logger.Printf("Running server at port: %v", *port)
- err = http.ListenAndServe(fmt.Sprintf(":%v", *port), mux)
- if err != nil {
- logger.Fatalf("Server crashed due to:\n%s", err)
- }
-}
diff --git a/components/warning.templ b/components/warning.templ
new file mode 100644
index 0000000..2381b78
--- /dev/null
+++ b/components/warning.templ
@@ -0,0 +1,10 @@
+package components
+
+templ Warning(title string) {
+
+ { children... }
+