diff --git a/components/nav.templ b/components/nav.templ new file mode 100644 index 0000000..790e384 --- /dev/null +++ b/components/nav.templ @@ -0,0 +1,67 @@ +package components + +import ( + "fmt" +) + +type Link struct { + Text string + Link templ.SafeURL +} + +templ Nav(links []Link) { +
+

Gustavo "Guz" L. de Mello

+ +
+ + +} diff --git a/pages/homepage.templ b/pages/homepage.templ index 3ade66f..6125071 100644 --- a/pages/homepage.templ +++ b/pages/homepage.templ @@ -7,6 +7,13 @@ import ( templ Homepage() { @layouts.Page("013") { + @components.Nav([]components.Link{ + {Text: "about", Link: templ.SafeURL("#about")}, + {Text: "projects", Link: templ.SafeURL("#projects")}, + {Text: "gallery", Link: templ.SafeURL("#gallery")}, + {Text: "blog", Link: templ.SafeURL("#blog")}, + {Text: "contact", Link: templ.SafeURL("#contact")}, + })