49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
package templates
|
|
|
|
import "git.preston-baxter.com/Preston_PLB/capstone/frontend-service/db/models"
|
|
|
|
//Head for scripts and such
|
|
|
|
templ Head(msg string) {
|
|
<head>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<meta name="theme-color" content="#000000"/>
|
|
<meta name="view-transition" content="same-origin"/>
|
|
<meta name="htmx-config" content='{"globalViewTransistions": true}'/>
|
|
<link rel="shortcut icon" href="/static/favicon.ico"/>
|
|
<link
|
|
rel="apple-touch-icon"
|
|
sizes="76x76"
|
|
href="/static/apple-icon.png"
|
|
/>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
|
|
/>
|
|
<link
|
|
rel="stylesheet"
|
|
href="/static/output.css"
|
|
/>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/gh/creativetimofficial/tailwind-starter-kit/compiled-tailwind.min.css"
|
|
/>
|
|
<title>{ msg } | Capstone - Pbaxt10</title>
|
|
<script src="https://unpkg.com/htmx.org@1.9.6" integrity="sha384-FhXw7b6AlE/jyjlZH5iHa/tTe9EpJ1Y55RjcgPbjeWMskSxZt1v9qkxLJWNJaGni" crossorigin="anonymous"></script>
|
|
</head>
|
|
}
|
|
|
|
templ LandingPage(user *models.User) {
|
|
<!DOCTYPE html>
|
|
<html>
|
|
@Head("Welcome")
|
|
<body class="text-gray-800 antialiased">
|
|
@Nav(user)
|
|
@LandingContent()
|
|
</body>
|
|
@LandingFooter()
|
|
@toggleNavBar()
|
|
</html>
|
|
}
|