Compare commits

..

8 Commits

Author SHA1 Message Date
6952b77980 Merge pull request 'Removed unused build, refactored H1-3 to use slot based setup, added visual and aria page highlighting for navbar links, switched all pages to use custom H1-3, better new page/tab handling for inline links' (#12) from website-content-updates into main
All checks were successful
Build and Test - Production / test (push) Successful in 4m29s
Build and Test - Production / build_and_push (push) Successful in 5m1s
Build and Test - Production / deploy_production (push) Successful in 3s
Reviewed-on: #12
2025-12-05 22:39:08 +00:00
134790aa25 Merge pull request 'Fix production build, bad reference in staging build' (#11) from website-content-updates into main
All checks were successful
Build and Test - Production / test (push) Successful in 4m27s
Build and Test - Production / build_and_push (push) Successful in 4m59s
Build and Test - Production / deploy_production (push) Successful in 2s
Reviewed-on: #11
2025-12-05 20:15:03 +00:00
817c6076dc Merge pull request 'More website content updates' (#10) from website-content-updates into main
Some checks failed
Build and Test - Production / test (push) Failing after 3m2s
Build and Test - Production / build_and_push (push) Has been skipped
Build and Test - Production / deploy_production (push) Has been skipped
Reviewed-on: #10
2025-12-05 10:00:13 +00:00
6305482fc1 Merge pull request 'Need reference changed to test' (#9) from website-content-updates into main
All checks were successful
Build and Test - Production / test (push) Successful in 3m43s
Build and Test - Production / build_and_push (push) Successful in 3m32s
Build and Test - Production / deploy_production (push) Successful in 2s
Reviewed-on: #9
2025-11-10 09:33:04 +00:00
3ddd9b3640 Merge pull request 'Fixed extra repo_version that wasn't removed in prod build' (#8) from website-content-updates into main
Some checks failed
Build and Test - Production / test (push) Successful in 3m26s
Build and Test - Production / build_and_push (push) Failing after 47s
Build and Test - Production / deploy_production (push) Successful in 3s
Reviewed-on: #8
2025-11-10 09:25:06 +00:00
43d0724345 Merge pull request 'website-content-updates' (#7) from website-content-updates into main
Some checks failed
Build and Test - Production / test (push) Successful in 3m39s
Build and Test - Production / build_and_push (push) Failing after 48s
Build and Test - Production / deploy_production (push) Successful in 3s
Reviewed-on: #7
2025-11-10 09:18:10 +00:00
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
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
147 changed files with 863 additions and 2896 deletions

View File

@@ -57,16 +57,12 @@ jobs:
- name: Login to Docker Registry - name: Login to Docker Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: 192.168.1.36:30008 registry: gitea.perren.cloud
username: ${{ secrets.REGISTRY_USERNAME }} username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.ACTIONS_TOKEN }} password: ${{ secrets.ACTIONS_TOKEN }}
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
with:
buildkitd-config-inline: |
[registry."192.168.1.36:30008"]
http = true
- name: Build and Push - name: Build and Push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
@@ -74,8 +70,8 @@ jobs:
context: caperren-com context: caperren-com
push: true push: true
tags: | tags: |
192.168.1.36:30008/caperren/${{ needs.test.outputs.repo_name }}:${{ needs.test.outputs.repo_version_hash }} gitea.perren.cloud/caperren/${{ needs.test.outputs.repo_name }}:${{ needs.test.outputs.repo_version_hash }}
192.168.1.36:30008/caperren/caperren-com:latest gitea.perren.cloud/caperren/caperren-com:latest
build-args: | build-args: |
REPO_VERSION_HASH=${{ needs.test.outputs.repo_version_hash }} REPO_VERSION_HASH=${{ needs.test.outputs.repo_version_hash }}
BUILD_ENVIRONMENT=production BUILD_ENVIRONMENT=production

View File

@@ -57,16 +57,12 @@ jobs:
- name: Login to Docker Registry - name: Login to Docker Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: 192.168.1.36:30008 registry: gitea.perren.cloud
username: ${{ secrets.REGISTRY_USERNAME }} username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.ACTIONS_TOKEN }} password: ${{ secrets.ACTIONS_TOKEN }}
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
with:
buildkitd-config-inline: |
[registry."192.168.1.36:30008"]
http = true
- name: Build and Push - name: Build and Push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
@@ -74,7 +70,7 @@ jobs:
context: caperren-com context: caperren-com
push: true push: true
tags: | tags: |
192.168.1.36:30008/caperren/caperren-com:latest-staging gitea.perren.cloud/caperren/caperren-com:latest-staging
build-args: | build-args: |
REPO_VERSION_HASH=${{ needs.test.outputs.repo_version_hash }} REPO_VERSION_HASH=${{ needs.test.outputs.repo_version_hash }}
BUILD_ENVIRONMENT=staging BUILD_ENVIRONMENT=staging

View File

@@ -15,8 +15,7 @@
cleanup-check \ cleanup-check \
cleanup-code \ cleanup-code \
convert_video \ convert_video \
convert_video_times \ convert_video_times
generate_asset_imports
default: dev default: dev
@@ -84,17 +83,9 @@ convert_video_times:
-init_hw_device vaapi=va:/dev/dri/renderD128 \ -init_hw_device vaapi=va:/dev/dri/renderD128 \
-filter_hw_device va \ -filter_hw_device va \
-i $(input) \ -i $(input) \
-ss $(start) \ -vf 'format=nv12,hwupload,scale_vaapi=-2:720,trim=start=$(start):end=$(end)' \
-to $(end) \
-vf 'format=nv12,hwupload,scale_vaapi=-2:720' \
-c:v h264_vaapi \ -c:v h264_vaapi \
-rc_mode CQP \ -rc_mode CQP \
-qp 28 \ -qp 28 \
-an \ -an \
$(output) $(output)
generate_asset_imports:
@for assets_path in `find "src/assets/${assets_relative_path}" -maxdepth 1 -type f -printf "%f\n"`; do \
without_extension=$${assets_path/%.*}; \
echo "import $${without_extension//-/_} from \"@assets/${assets_relative_path}/$$assets_path\";"; \
done;

View File

@@ -13,7 +13,6 @@ const disabledPaths = getPaths(siteLayout, [], true);
export default defineConfig({ export default defineConfig({
site: "https://caperren.com", site: "https://caperren.com",
trailingSlash: "never",
prefetch: { prefetch: {
prefetchAll: true, prefetchAll: true,
}, },

View File

@@ -1,12 +1,6 @@
ADCP ADCP
Altium
ASSEM ASSEM
astrojs astrojs
Atmel
automations
barebones
beaglebone
Bitwarden
Candian Candian
caperren caperren
CEOAS CEOAS
@@ -15,20 +9,9 @@ Concours
CONSERV CONSERV
Corwin Corwin
dangerousthings dangerousthings
dechorionation
Dechorionator Dechorionator
dechorionators
dockerization
dockerizing
drumheller
ebox
ELMI
fhhs fhhs
flowbite flowbite
flowrate
gcode
gerbers
Gitea
HDFS HDFS
headshot headshot
Homelab Homelab
@@ -36,61 +19,33 @@ hwupload
iceops iceops
ITAR ITAR
Jetson Jetson
KFSK
Labjack
leconte leconte
Loctite Loctite
luxon luxon
MGMT MGMT
microcontroller
microcontroller's
Micropumps
Millis
modbus
Mokai
Multimeters
nixos nixos
nvme
offroad offroad
Onshape Onshape
OSSM OSSM
OSURC OSURC
panelized
Passthroughs
pcbs
Perren Perren
Perren's Perren's
Pixhawk
Protocase
pubpath pubpath
RFID RFID
Rito
RSSI RSSI
SARL SARL
SCARA
showerheads
Shuttlebox Shuttlebox
simplemotion
sinnhuber sinnhuber
sitemapindex sitemapindex
Smartsheet
solderable
ssds ssds
Starlink Starlink
steller steller
Steller Steller
Tanguay
Teamcenter
timelapse timelapse
touchoff
triaging
trivago trivago
Truong
Ubiquiti
Unstow Unstow
uuidv uuidv
vaapi vaapi
vitest vitest
Waterjet
Zebrafish Zebrafish
zscan zscan

View File

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 2.4 MiB

View File

Before

Width:  |  Height:  |  Size: 2.7 MiB

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 580 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 600 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 701 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

View File

@@ -1,23 +1,10 @@
--- ---
import InlineLink from "@components/InlineLink.astro";
const { pathname } = Astro.url;
--- ---
<footer <footer
class="border-t-caperren-green-dark text-caperren-green-dark z-50 flex w-full max-w-full items-center justify-between border-t bg-black px-6 py-2 text-sm" class="border-t-caperren-green-dark text-caperren-green-dark z-50 flex w-full max-w-full items-center justify-between border-t bg-black px-6 py-2 text-sm"
> >
<span>{import.meta.env.PUBLIC_BUILD_ENVIRONMENT || "development"}</span> <span>{import.meta.env.PUBLIC_BUILD_ENVIRONMENT || "development"}</span>
<div>
<InlineLink
class:list={[
"text-caperren-green-dark hover:text-caperren-green",
pathname === "/hobby/this-website"
? "border-caperren-green-dark hover:border-caperren-green border-b-2"
: false,
]}
href="/hobby/this-website">About This Website</InlineLink
>
</div>
<span>{import.meta.env.PUBLIC_REPO_VERSION_HASH || "invalid"}</span> <span>{import.meta.env.PUBLIC_REPO_VERSION_HASH || "invalid"}</span>
</footer> </footer>

View File

@@ -2,4 +2,4 @@
--- ---
<h1 class="text-xl font-extrabold sm:text-2xl md:text-3xl"><slot /></h1> <h1 class="text-xl font-extrabold md:text-3xl"><slot /></h1>

View File

@@ -2,4 +2,4 @@
--- ---
<h2 class="text-lg font-bold sm:text-xl md:text-2xl"><slot /></h2> <h2 class="my-4 font-bold md:text-2xl"><slot /></h2>

View File

@@ -2,4 +2,4 @@
--- ---
<h3 class="text-md font-semibold sm:text-lg md:text-xl"><slot /></h3> <h3 class="mt-4 mb-2 font-bold md:text-lg"><slot /></h3>

View File

@@ -1,5 +0,0 @@
---
---
<h4 class="md:text-md text-xs sm:text-sm"><slot /></h4>

View File

@@ -7,10 +7,16 @@ interface Props extends ComponentPropsBase {
} }
const { class: className, href, target } = Astro.props; const { class: className, href, target } = Astro.props;
const { pathname } = Astro.url;
const finalTarget = let finalTarget: string | undefined = target;
target === undefined ? (href.startsWith("/") ? undefined : "_blank") : target;
if (target === undefined) {
if (href.startsWith("/")) {
finalTarget = "";
} else {
finalTarget = "_blank";
}
}
--- ---
<> <>
@@ -18,7 +24,6 @@ const finalTarget =
class:list={["text-blue-500", "hover:text-blue-300", className]} class:list={["text-blue-500", "hover:text-blue-300", className]}
href={href} href={href}
target={finalTarget} target={finalTarget}
aria-current={pathname === href ? "page" : undefined}
> >
<slot /> <slot />
</a> </a>

View File

@@ -1,9 +0,0 @@
---
---
<>
<li>
<slot />
</li>
</>

View File

@@ -9,12 +9,10 @@ interface Props {
const { title, href, target = "_blank" } = Astro.props; const { title, href, target = "_blank" } = Astro.props;
--- ---
<div class="mx-auto"> <a
<a class="text-caperren-green border-caperren-green hover:border-caperren-green-light hover:text-caperren-green-light rounded-2xl border-2 bg-black p-2"
class="text-caperren-green border-caperren-green hover:border-caperren-green-light hover:text-caperren-green-light rounded-2xl border-2 bg-black p-2" href={href}
href={href} target={target}
target={target} >
> {title}
{title} </a>
</a>
</div>

Some files were not shown because too many files have changed in this diff Show More