diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index c6a05d0..7f20d99 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -6,15 +6,26 @@ on: - main - astra/ci + jobs: deploy: name: Deploy runs-on: ubuntu-latest steps: - - name: Checkout repo + - name: Checkout main repo uses: actions/checkout@v4 + - name: Checkout overrides repo + uses: actions/checkout@v4 + with: + repository: scientific-witchery/pds-dash-overrides + token: ${{ secrets.OVERRIDES_TOKEN}} + path: overrides + + - name: Copy config file to root + run: cp overrides/config.ts ./config.ts + - name: Setup Node.js uses: actions/setup-node@v3 with: diff --git a/src/App.svelte b/src/App.svelte index 3ce393b..798b8a7 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -9,6 +9,26 @@ let posts: Post[] = []; + let hue: number = 1; + const cycleColors = async () => { + while (true) { + hue += 1; + if (hue > 360) { + hue = 0; + } + document.documentElement.style.setProperty("--primary-h", hue.toString()); + await new Promise((resolve) => setTimeout(resolve, 10)); + } + } + let clickCounter = 0; + const carameldansenfusion = async () => { + clickCounter++; + if (clickCounter >= 10) { + clickCounter = 0; + cycleColors(); + } + }; + onMount(() => { // Fetch initial posts getNextPosts().then((initialPosts) => { @@ -39,7 +59,7 @@
Loading...
{:then accountsData}Home to {accountsData.length} accounts