diff --git a/.github/workflows/unlighthouse.yaml b/.github/workflows/unlighthouse.yaml index a3ddeaa..d5d77e8 100644 --- a/.github/workflows/unlighthouse.yaml +++ b/.github/workflows/unlighthouse.yaml @@ -29,32 +29,45 @@ jobs: - name: Checkout repository uses: actions/checkout@v4.1.1 + - name: Setup pnpm + uses: pnpm/action-setup@v2.4.0 + with: + version: latest + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4.0.0 with: node-version: ${{ matrix.node-version }} + cache: 'pnpm' - - name: Install dependencies - run: npm install - - - name: Build production - run: npm run build + - name: Retrieve Vercel Preview URL + uses: zentered/vercel-preview-url@v1.1.9 + id: vercel_preview_url + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + with: + vercel_project_id: ${{ vars.VERCEL_PROJECT_ID }} - - name: Start Preview and Get Preview URL - run: npm run preview -- --port=${{ env.PORT }} & echo $! > preview_pid + - name: Await Vercel Deployment + uses: UnlyEd/github-action-await-vercel@v1.2.43 + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + with: + deployment-url: ${{ steps.vercel_preview_url.outputs.preview_url }} + timeout: 120 - name: Install Dependencies - run: npm add -g @unlighthouse/cli puppeteer + run: pnpm install -g @unlighthouse/cli puppeteer - name: Run Unlighthouse run: | unlighthouse-ci \ - --site "http://localhost:${{ env.PORT }}" \ + --site "${{ steps.vercel_preview_url.outputs.preview_url }}" \ --reporter jsonExpanded \ --build-static - name: Upload report to Cloudflare pages - uses: cloudflare/wrangler-action@v3.3.2 + uses: cloudflare/wrangler-action@2.0.0 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} command: pages deploy .unlighthouse --project-name="${{ env.CLOUDFLARE_PROJECT }}" --branch=${{ env.CLOUDFLARE_BRANCH }} diff --git a/src/app.html b/src/app.html index 303e501..ff1570c 100644 --- a/src/app.html +++ b/src/app.html @@ -8,7 +8,7 @@ - + diff --git a/src/lib/assets/tools/cyberduck.png b/src/lib/assets/tools/cyberduck.png index b502a80..3587c8d 100644 Binary files a/src/lib/assets/tools/cyberduck.png and b/src/lib/assets/tools/cyberduck.png differ diff --git a/src/lib/assets/tools/gitlens.png b/src/lib/assets/tools/gitlens.png index 7bb5dfd..86f69b2 100644 Binary files a/src/lib/assets/tools/gitlens.png and b/src/lib/assets/tools/gitlens.png differ diff --git a/src/lib/assets/tools/k9s.png b/src/lib/assets/tools/k9s.png index 58d70b0..2db3670 100644 Binary files a/src/lib/assets/tools/k9s.png and b/src/lib/assets/tools/k9s.png differ diff --git a/src/lib/assets/tools/keystore-exporer.png b/src/lib/assets/tools/keystore-exporer.png index 40afd51..5878357 100644 Binary files a/src/lib/assets/tools/keystore-exporer.png and b/src/lib/assets/tools/keystore-exporer.png differ diff --git a/src/lib/assets/tools/maccy.png b/src/lib/assets/tools/maccy.png index c89bed2..665873b 100644 Binary files a/src/lib/assets/tools/maccy.png and b/src/lib/assets/tools/maccy.png differ diff --git a/src/lib/assets/tools/rectangle.png b/src/lib/assets/tools/rectangle.png index 6b44db9..beadbca 100644 Binary files a/src/lib/assets/tools/rectangle.png and b/src/lib/assets/tools/rectangle.png differ diff --git a/src/lib/assets/tools/wireshark.png b/src/lib/assets/tools/wireshark.png index 3e84783..cef6795 100644 Binary files a/src/lib/assets/tools/wireshark.png and b/src/lib/assets/tools/wireshark.png differ diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index 6fe2d71..054d17d 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -20,7 +20,7 @@ - hellob.art logo + hellob.art logo diff --git a/src/lib/site-config.ts b/src/lib/site-config.ts new file mode 100644 index 0000000..7582047 --- /dev/null +++ b/src/lib/site-config.ts @@ -0,0 +1,4 @@ +export const SITE_URL = 'https://hellob.art'; +export const SITE_TITLE = 'hellob.art'; +export const SITE_DESCRIPTION = ''; +export const DEFAULT_OG_IMAGE = ''; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 7e94593..ddbf13e 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -5,6 +5,11 @@ import Footer from '../lib/components/Footer.svelte'; import Navigation from '../lib/components/Navigation.svelte'; import Header from '$lib/components/Header.svelte'; + import { fade } from 'svelte/transition'; + + export let data; + + $: ({ pathname } = data); import { dev } from '$app/environment'; import { inject } from '@vercel/analytics'; @@ -47,7 +52,11 @@
- + {#key pathname} +
+ +
+ {/key}