GoStart/web/views/index.html
2024-05-17 15:53:56 -04:00

28 lines
676 B
HTML

{{define "view"}}
<header>
<h1 class="mt-8 mb-8 text-3xl font-bold text-blue-400">
Welcome to My GO Web App Framework {{.Title}}
</h1>
</header>
<main>
<section>
<button hx-get="/api/example" class="p-2 text-white bg-blue-400 rounded-md">
Click Me!
</button>
<h1 class="font-bold">API Example</h1>
<a href="/api/example" target="_blank">Access Example API</a>
<h2>Content Section</h2>
<p>
This is the main content of your web app. You can add any HTML content
here.
</p>
<a href="/example">Another Example Route can be found here</a>
</section>
</main>
<footer>
<p>&copy; 2024 My Web App</p>
</footer>
{{end}}