Compare commits

7 Commits

Author SHA1 Message Date
aeffd1545f Merge pull request 'Favicon, better screen responsive, starting experience layouts' (#6) from website-content-updates into main
All checks were successful
Build and Test - Production / determine_version (push) Successful in 6s
Build and Test - Production / build_and_push (push) Successful in 47s
Build and Test - Production / test (push) Successful in 1s
Build and Test - Production / deploy_production (push) Successful in 3s
Reviewed-on: #6
2025-07-09 11:48:33 +00:00
b342f7b1cb Favicon, better screen responsive, starting experience layouts
All checks were successful
Build and Test - Staging / determine_version (pull_request) Successful in 6s
Build and Test - Staging / build_and_push (pull_request) Successful in 43s
Build and Test - Staging / test (pull_request) Successful in 2s
Build and Test - Staging / deploy_staging (pull_request) Successful in 3s
2025-07-09 04:46:17 -07:00
e9dd38ca6a Merge pull request 'Footer with environment, build, and hash' (#5) from website-content-updates into main
All checks were successful
Build and Test - Production / determine_version (push) Successful in 5s
Build and Test - Production / build_and_push (push) Successful in 47s
Build and Test - Production / test (push) Successful in 2s
Build and Test - Production / deploy_production (push) Successful in 2s
Reviewed-on: #5
2025-07-09 11:03:25 +00:00
5b0829eac4 Make build environment public for merge
All checks were successful
Build and Test - Staging / determine_version (pull_request) Successful in 6s
Build and Test - Staging / build_and_push (pull_request) Successful in 42s
Build and Test - Staging / test (pull_request) Successful in 1s
Build and Test - Staging / deploy_staging (pull_request) Successful in 2s
2025-07-09 04:00:57 -07:00
f7825ed740 Fix wrong quote escape
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 40s
Build and Test - Staging / test (pull_request) Successful in 1s
Build and Test - Staging / deploy_staging (pull_request) Successful in 2s
2025-07-09 03:52:42 -07:00
3d88f23e88 Fix broken .env write in Dockerfile, add footer border style
All checks were successful
Build and Test - Staging / determine_version (pull_request) Successful in 6s
Build and Test - Staging / build_and_push (pull_request) Successful in 42s
Build and Test - Staging / test (pull_request) Successful in 2s
Build and Test - Staging / deploy_staging (pull_request) Successful in 3s
2025-07-09 03:48:40 -07:00
efaa02ae20 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
2025-07-09 03:42:23 -07:00
16 changed files with 123 additions and 11 deletions

View File

@@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 662 B

63
public/favicon.svg Normal file
View File

@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="40mm"
height="40mm"
viewBox="0 0 40 40"
version="1.1"
id="svg1"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1" />
<g
id="layer1">
<rect
style="fill:#000000;stroke-width:0.264583"
id="rect1"
width="58.244999"
height="53.954998"
x="-6.105"
y="-4.2899995" />
</g>
<g
id="layer2">
<g
id="g1"
transform="matrix(3.9840159,0,0,3.9840159,-182.95899,-268.96729)">
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:3.38667px;line-height:0%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#10ac25;fill-opacity:1;stroke:none;stroke-width:0.282222px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="46.9911"
y="76.640976"
id="text3344-4-5"><tspan
id="tspan3346-7-6"
x="46.9911"
y="76.640976"
style="font-size:11.2889px;line-height:1.25;stroke-width:0.282222px">C</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:3.38667px;line-height:0%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#10ac25;fill-opacity:1;stroke:none;stroke-width:0.282222px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="49.597134"
y="74.229248"
id="text3348-1-8"
transform="scale(1.0028223,0.99718564)"><tspan
id="tspan3350-3-1"
x="49.597134"
y="74.229248"
style="font-size:4.59543px;line-height:1.25;stroke-width:0.282222px">A</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.38667px;line-height:0%;font-family:sans-serif;-inkscape-font-specification:'sans-serif, Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#10ac25;fill-opacity:1;stroke:none;stroke-width:0.282222px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x="24.869509"
y="83.989883"
id="text3344-5-7-6"
transform="matrix(0.89528488,-0.34221418,0.35348636,0.98184609,0,0)"><tspan
id="tspan3370-7-8"
x="24.869509"
y="83.989883"
style="font-size:4.18595px;line-height:1.25;stroke-width:0.282222px">P</tspan></text>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View 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>

View File

@@ -33,18 +33,18 @@ const navItems = [
];
---
<header class="navbar lg:flex p-5 gap-5">
<header class="navbar md:flex p-5 gap-5">
<Astronav>
<div class="flex w-full justify-between">
<a href="/">
<Image src={logoTitle} alt="Logo Title" height="50" loading="eager"/>
</a>
<div class="block lg:hidden">
<div class="block md:hidden">
<MenuIcon class="w-4 h-4 text-gray-800"/>
</div>
</div>
<MenuItems class="hidden lg:flex">
<ul class="flex flex-col lg:flex-row lg:gap-5">
<MenuItems class="hidden md:flex">
<ul class="flex flex-col md:flex-row md:gap-5">
<li>
<a href="/">Home</a>
</li>

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 PUBLIC_BUILD_ENVIRONMENT: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}

View File

@@ -1,6 +1,7 @@
---
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";
---
@@ -8,6 +9,7 @@ const pageTitle = Astro.props.title ? `${Astro.props.title} - Corwin Perren`: "C
<html lang="en">
<head>
<meta charset="UTF-8"/>
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>{pageTitle}</title>
</head>
@@ -16,5 +18,6 @@ const pageTitle = Astro.props.title ? `${Astro.props.title} - Corwin Perren`: "C
<main style="padding: 2rem;">
<slot/>
</main>
<Footer/>
</body>
</html>

View File

@@ -0,0 +1,6 @@
---
import BaseLayout from './BaseLayout.astro';
---
<BaseLayout>
<slot/>
</BaseLayout>

View File

@@ -0,0 +1,9 @@
---
import ExperienceLayout from '../../../layouts/ExperienceLayout.astro';
import {Image} from 'astro:assets';
import spring_2019_interns from "../../../assets/experience/spacex/avionics-test-engineering-intern/spring-2019-interns.jpg";
---
<ExperienceLayout>
<Image class="mx-auto block" src={spring_2019_interns} alt="spring-2019-interns.jpg" loading="eager"/>
</ExperienceLayout>

View File

@@ -0,0 +1,9 @@
---
import ExperienceLayout from '../../../layouts/ExperienceLayout.astro';
import {Image} from 'astro:assets';
import starlink_headquarters_selfie from "../../../assets/experience/spacex/hardware-test-engineer-ii/starlink_headquarters_selfie.jpg";
---
<ExperienceLayout>
<Image class="mx-auto block" src={starlink_headquarters_selfie} alt="starlink_headquarters_selfie" loading="eager"/>
</ExperienceLayout>

View File

View File

@@ -0,0 +1,2 @@
---
---

View File

View File

@@ -24,6 +24,10 @@ a {
white-space: nowrap;
}
footer {
border-top: 2px solid var(--color-caperren-green);
}
/*.astronav-dropdown .group {*/
/* background-color: black;*/
/*}*/