47 lines
1.1 KiB
Plaintext
47 lines
1.1 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"/>
|
|
<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/Chart.js/2.9.4/Chart.min.css"
|
|
/>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
|
|
/>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdn.jsdelivr.net/gh/creativetimofficial/tailwind-starter-kit/compiled-tailwind.min.css"
|
|
/>
|
|
<title>{ msg } | Capstone - Pbaxt10</title>
|
|
</head>
|
|
}
|
|
|
|
templ LandingPage(user *models.User) {
|
|
<!DOCTYPE html>
|
|
<html>
|
|
@Head("Welcome")
|
|
<body class="text-gray-800 antialiased">
|
|
@Nav(user)
|
|
@LandingContent()
|
|
</body>
|
|
@Footer()
|
|
@toggleNavBar()
|
|
</html>
|
|
}
|