42 lines
1.2 KiB
HTML
42 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>GO Web App</title>
|
|
<link rel="stylesheet" href="/static/output.css" />
|
|
<link rel="icon" href="/static/img/favicon.ico" type="image/x-icon" />
|
|
<script src="/static/htmx.min.js"></script>
|
|
</head>
|
|
<body class="text-center text-blue-300 bg-gray-800">
|
|
<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>© 2024 My Web App</p>
|
|
</footer>
|
|
</body>
|
|
</html>
|