Capstone/ui/templates/landing_page.templ

49 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-10-28 00:44:22 -04:00
package templates
import "git.preston-baxter.com/Preston_PLB/capstone/frontend-service/db/models"
2023-10-28 10:45:47 -04:00
//Head for scripts and such
templ Head(msg string) {
2023-10-28 10:45:47 -04:00
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="theme-color" content="#000000"/>
2023-10-30 19:43:42 -04:00
<meta name="view-transition" content="same-origin"/>
2023-11-24 02:00:28 -05:00
<meta name="htmx-config" content='{"globalViewTransistions": true}'/>
2023-10-28 10:45:47 -04:00
<link rel="shortcut icon" href="./assets/img/favicon.ico"/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="./assets/img/apple-icon.png"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
/>
<link
rel="stylesheet"
2023-11-04 23:43:01 -04:00
href="/static/output.css"
2023-10-28 10:45:47 -04:00
/>
<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>
2023-10-28 10:45:47 -04:00
</head>
}
templ LandingPage(user *models.User) {
2023-10-28 10:45:47 -04:00
<!DOCTYPE html>
<html>
@Head("Welcome")
2023-10-28 10:45:47 -04:00
<body class="text-gray-800 antialiased">
@Nav(user)
2023-10-28 12:34:11 -04:00
@LandingContent()
2023-10-28 10:45:47 -04:00
</body>
2023-11-24 02:00:28 -05:00
@LandingFooter()
2023-10-28 11:15:42 -04:00
@toggleNavBar()
2023-10-28 10:45:47 -04:00
</html>
2023-10-28 00:44:22 -04:00
}