Compare commits
5 Commits
396b6d210b
...
e9dd38ca6a
| Author | SHA1 | Date | |
|---|---|---|---|
| e9dd38ca6a | |||
| 5b0829eac4 | |||
| f7825ed740 | |||
| 3d88f23e88 | |||
| efaa02ae20 |
@@ -16,10 +16,12 @@ FROM build-deps AS build
|
||||
COPY . .
|
||||
|
||||
ARG REPO_VERSION_HASH
|
||||
ARG BUILD_ENVIRONMENT
|
||||
ARG PROJECT_VERSION
|
||||
|
||||
RUN echo $"PUBLIC_REPO_VERSION_HASH=${REPO_VERSION_HASH} \n\
|
||||
PUBLIC_PROJECT_VERSION=${PROJECT_VERSION}" >> .env
|
||||
RUN echo "PUBLIC_REPO_VERSION_HASH=\"${REPO_VERSION_HASH}\" \n\
|
||||
PUBLIC_BUILD_ENVIRONMENT=\"${BUILD_ENVIRONMENT}\" \n\
|
||||
PUBLIC_PROJECT_VERSION=\"${PROJECT_VERSION}\"" >> .env
|
||||
RUN npm run build
|
||||
|
||||
FROM httpd:latest AS runtime
|
||||
|
||||
5
src/components/Footer.astro
Normal file
5
src/components/Footer.astro
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
---
|
||||
<footer class="flex justify-center items-center text-center">
|
||||
{import.meta.env.PUBLIC_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
9
src/env.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
interface ImportMetaEnv {
|
||||
readonly PUBLIC_REPO_VERSION_HASH: string;
|
||||
readonly PUBLIC_PROJECT_VERSION: string;
|
||||
readonly PUBLIC_BUILD_ENVIRONMENT: string;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
}
|
||||
@@ -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>
|
||||
@@ -24,6 +24,10 @@ a {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
|
||||
footer {
|
||||
border-top: 2px solid var(--color-caperren-green);
|
||||
}
|
||||
/*.astronav-dropdown .group {*/
|
||||
/* background-color: black;*/
|
||||
/*}*/
|
||||
Reference in New Issue
Block a user