diff --git a/ui/.air.toml b/ui/.air.toml index 98dffdf..23dc2de 100644 --- a/ui/.air.toml +++ b/ui/.air.toml @@ -5,7 +5,7 @@ tmp_dir = "tmp" [build] args_bin = [] bin = "./tmp/main" - cmd = "templ generate; go build -o ./tmp/main ." + cmd = "templ generate && go build -o ./tmp/main ." delay = 1000 exclude_dir = ["assets", "tmp", "vendor", "testdata", "dist"] exclude_file = [] diff --git a/ui/.gitignore b/ui/.gitignore index 05de4fa..c0cdef1 100644 --- a/ui/.gitignore +++ b/ui/.gitignore @@ -1,2 +1,3 @@ dist/* tmp/* +**/*_templ.go diff --git a/ui/templates/content.templ b/ui/templates/content.templ new file mode 100644 index 0000000..8bff1e5 --- /dev/null +++ b/ui/templates/content.templ @@ -0,0 +1,423 @@ +package templates + +templ Content() { +
+
+
+ +
+
+
+
+
+

+ Your story starts with us. +

+

+ This is a simple example of a Landing Page you can build using + Tailwind Starter Kit. It features multiple CSS components + based on the Tailwindcss design system. +

+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+
+ +
+
Awarded Agency
+

+ Divide details about your product or agency work into parts. + A paragraph describing a feature will be enough. +

+
+
+
+
+
+
+
+ +
+
Free Revisions
+

+ Keep you user engaged by providing meaningful information. + Remember that by this time, the user is curious. +

+
+
+
+
+
+
+
+ +
+
Verified Company
+

+ Write a few lines about each one. A paragraph describing a + feature will be enough. Keep you user engaged! +

+
+
+
+
+
+
+
+ +
+

+ Working with us is a pleasure +

+

+ Don't let your uses guess by attaching tooltips and popoves to + any element. Just make sure you enable them first via + JavaScript. +

+

+ The kit comes with three pre-built pages to help you get started + faster. You can change the text and images and you're good to + go. Just make sure you enable them first via JavaScript. +

+ Check Tailwind Starter Kit! +
+
+
+ ... +
+ + + +

+ Top Notch Services +

+

+ The Arctic Ocean freezes every winter and much of the + sea-ice then thaws every summer, and that process will + continue whatever happens. +

+
+
+
+
+
+
+
+
+ + + +
+
+
+
+ ... +
+
+
+
+ +
+

A growing company

+

+ The extension comes with three pre-built pages to help you get + started faster. You can change the text and images and you're + good to go. +

+
    +
  • +
    +
    + +
    +
    +

    + Carefully crafted components +

    +
    +
    +
  • +
  • +
    +
    + +
    +
    +

    Amazing page examples

    +
    +
    +
  • +
  • +
    +
    + +
    +
    +

    Dynamic components

    +
    +
    +
  • +
+
+
+
+
+
+
+
+
+
+

Here are our heroes

+

+ According to the National Oceanic and Atmospheric + Administration, Ted, Scambos, NSIDClead scentist, puts the + potentially record maximum. +

+
+
+
+
+
+ ... +
+
Ryan Tompson
+

+ Web Developer +

+
+ +
+
+
+
+
+
+ ... +
+
Romina Hadid
+

+ Marketing Specialist +

+
+ +
+
+
+
+
+
+ ... +
+
Alexa Smith
+

+ UI/UX Designer +

+
+ +
+
+
+
+
+
+ ... +
+
Jenna Kardi
+

+ Founder and CEO +

+
+ +
+
+
+
+
+
+
+
+
+ + + +
+
+
+
+

Build something

+

+ Put the potentially record low maximum sea ice extent tihs year + down to low ice. According to the National Oceanic and + Atmospheric Administration, Ted, Scambos. +

+
+
+
+
+
+ +
+
+ Excelent Services +
+

+ Some quick example text to build on the card title and make up + the bulk of the card's content. +

+
+
+
+ +
+
+ Grow your market +
+

+ Some quick example text to build on the card title and make up + the bulk of the card's content. +

+
+
+
+ +
+
Launch time
+

+ Some quick example text to build on the card title and make up + the bulk of the card's content. +

+
+
+
+
+
+
+
+
+
+
+

Want to work with us?

+

+ Complete this form and we will get back to you in 24 hours. +

+
+ +
+
+ +
+
+ +
+
+ +
+
+
+
+
+
+
+
+} diff --git a/ui/templates/home.templ b/ui/templates/home.templ index 6424008..8ee87b9 100644 --- a/ui/templates/home.templ +++ b/ui/templates/home.templ @@ -1,5 +1,41 @@ package templates -templ Hello(name string) { -
Hello, { name }
+//Head for scripts and such + +templ Head() { + + + + + + + + + + Dashboard | Capstone - Pbaxt10 + +} + +templ Hello(name string) { + + + @Head() + + @Nav() + @Content() + + } diff --git a/ui/templates/home_templ.go b/ui/templates/home_templ.go deleted file mode 100644 index 5875c76..0000000 --- a/ui/templates/home_templ.go +++ /dev/null @@ -1,48 +0,0 @@ -// Code generated by templ@v0.2.408 DO NOT EDIT. - -package templates - -//lint:file-ignore SA4006 This context is only used if a nested component is present. - -import "github.com/a-h/templ" -import "context" -import "io" -import "bytes" - -func Hello(name string) templ.Component { - return templ.ComponentFunc(func(templ_7745c5c3_Ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { - templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) - if !templ_7745c5c3_IsBuffer { - templ_7745c5c3_Buffer = templ.GetBuffer() - defer templ.ReleaseBuffer(templ_7745c5c3_Buffer) - } - templ_7745c5c3_Ctx = templ.InitializeContext(templ_7745c5c3_Ctx) - templ_7745c5c3_Var1 := templ.GetChildren(templ_7745c5c3_Ctx) - if templ_7745c5c3_Var1 == nil { - templ_7745c5c3_Var1 = templ.NopComponent - } - templ_7745c5c3_Ctx = templ.ClearChildren(templ_7745c5c3_Ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - templ_7745c5c3_Var2 := `Hello, ` - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ_7745c5c3_Var2) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - var templ_7745c5c3_Var3 string = name - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } - if !templ_7745c5c3_IsBuffer { - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteTo(templ_7745c5c3_W) - } - return templ_7745c5c3_Err - }) -} diff --git a/ui/templates/nav.templ b/ui/templates/nav.templ new file mode 100644 index 0000000..27ca713 --- /dev/null +++ b/ui/templates/nav.templ @@ -0,0 +1,88 @@ +package templates + +templ Nav() { + +} diff --git a/ui/templates/script.templ b/ui/templates/script.templ new file mode 100644 index 0000000..ccc15eb --- /dev/null +++ b/ui/templates/script.templ @@ -0,0 +1,8 @@ +package templates + +script toggleNavBar() { + function toggleNavbar(collapseID) { + document.getElementById(collapseID).classList.toggle("hidden"); + document.getElementById(collapseID).classList.toggle("block"); + } +}