github.com/10ego/gthp@v0.0.0-20241025155251-e1514fa71fbb/internal/templ/templates/layout.templ (about)

     1  package templates
     2  
     3  templ Layout(title string) {
     4  	<!DOCTYPE html>
     5  	<html lang="en">
     6  		<head>
     7  			<meta charset="UTF-8"/>
     8  			<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
     9  			<title>{ title }</title>
    10  			<script src="https://unpkg.com/htmx.org@1.9.6"></script>
    11  			<link rel="stylesheet" href="/static/css/output.css"/>
    12  		</head>
    13  		<body class="bg-gray-100 min-h-screen">
    14  			<header class="bg-blue-600 text-white p-4">
    15  				<h1 class="text-2xl font-bold">My App</h1>
    16  			</header>
    17  			<main class="container mx-auto mt-8 p-4">
    18  				{ children... }
    19  			</main>
    20  			<footer class="bg-gray-200 text-center p-4 mt-8">
    21  				<p>&copy; 2024 My App</p>
    22  			</footer>
    23  			<script src="/static/js/app.js"></script>
    24  		</body>
    25  	</html>
    26  }