Rename header to nav

This commit is contained in:
ekzyis 2024-07-12 07:38:28 +02:00
parent 2af3278f15
commit 8b841aaa09
5 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ templ About() {
<html>
@components.Head()
<body class="container">
@components.Header()
@components.Nav()
<div id="content" class="flex flex-col">
@components.Figlet("random", "about")
<div class="flex flex-col mb-3">

View File

@ -2,7 +2,7 @@ package components
import c "git.ekzyis.com/ekzyis/delphi.market/server/router/context"
templ Header() {
templ Nav() {
<header class="mt-3">
<nav class="flex flex-row" hx-target="#content" hx-swap="outerHTML" hx-select="#content" hx-push-url="true">
<div>

View File

@ -10,7 +10,7 @@ templ Error(code int) {
<html>
@components.Head()
<body class="container">
@components.Header()
@components.Nav()
<div id="content" class="flex flex-col text-center">
@components.Figlet("random", strconv.Itoa(code))
<div class="font-mono mb-3">{ http.StatusText(code) }</div>

View File

@ -6,7 +6,7 @@ templ Index() {
<html>
@components.Head()
<body class="container">
@components.Header()
@components.Nav()
<div id="content" class="flex flex-col text-center">
@components.Figlet("random", "delphi")
<div class="font-mono my-3">A prediction market using the lightning network</div>

View File

@ -6,7 +6,7 @@ templ Login() {
<html>
@components.Head()
<body class="container">
@components.Header()
@components.Nav()
<div id="content" class="flex flex-col text-center">
@components.Figlet("random", "login")
<div class="flex flex-col mb-3 text-center">