Footer with environment, build, and hash
All checks were successful
Build and Test - Staging / determine_version (pull_request) Successful in 5s
Build and Test - Staging / build_and_push (pull_request) Successful in 41s
Build and Test - Staging / test (pull_request) Successful in 1s
Build and Test - Staging / deploy_staging (pull_request) Successful in 3s

This commit is contained in:
2025-07-09 03:42:23 -07:00
parent 396b6d210b
commit efaa02ae20
4 changed files with 25 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
---
---
<footer class="flex justify-center items-center text-center">
{import.meta.env.BUILD_ENVIRONMENT || "development"} | {import.meta.env.PUBLIC_REPO_VERSION_HASH || "invalid"}@{import.meta.env.PUBLIC_PROJECT_VERSION || "0.0.0"}
</footer>

9
src/env.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
interface ImportMetaEnv {
readonly PUBLIC_REPO_VERSION_HASH: string;
readonly PUBLIC_PROJECT_VERSION: string;
readonly BUILD_ENVIRONMENT: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}

View File

@@ -1,20 +1,22 @@
---
import '../styles/global.css'
import Navbar from '../components/Navbar.astro';
import Footer from '../components/Footer.astro';
const pageTitle = Astro.props.title ? `${Astro.props.title} - Corwin Perren`: "Corwin Perren";
const pageTitle = Astro.props.title ? `${Astro.props.title} - Corwin Perren` : "Corwin Perren";
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>{pageTitle}</title>
</head>
<body>
<Navbar />
<Navbar/>
<main style="padding: 2rem;">
<slot />
<slot/>
</main>
<Footer/>
</body>
</html>