How to participate
+Build a board
+Vote in the gallery
+Win cool prizes
+Get awesome stickers
+diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..b7ff0b0c17 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,31 @@ +on: [push] + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + deployments: write + name: Publish to Cloudflare Pages + steps: + - name: Checkout + uses: actions/checkout@v3 + + # Run a build step here if your project requires + + - name: Publish to Cloudflare Pages + uses: cloudflare/pages-action@v1 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: YOUR_ACCOUNT_ID + projectName: YOUR_PROJECT_NAME + directory: YOUR_BUILD_OUTPUT_DIRECTORY + # Optional: Enable this if you want to have GitHub Deployments triggered + gitHubToken: ${{ secrets.GITHUB_TOKEN }} + # Optional: Switch what branch you are publishing to. + # By default this will be the branch which triggered this workflow + branch: main + # Optional: Change the working directory + workingDirectory: my-site + # Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta` + wranglerVersion: '3' \ No newline at end of file diff --git a/showcase/package.json b/showcase/package.json index 195e635242..2f12ff1aa4 100644 --- a/showcase/package.json +++ b/showcase/package.json @@ -25,6 +25,7 @@ "prettier-plugin-svelte": "^3.1.2", "svelte": "^4.2.7", "svelte-check": "^3.6.0", + "svelte-preprocess-import-assets": "^1.1.0", "typescript": "^5.0.0", "typescript-eslint": "^8.0.0", "vite": "^5.0.3" diff --git a/showcase/pnpm-lock.yaml b/showcase/pnpm-lock.yaml index 66e74509c4..d1ea69211a 100644 --- a/showcase/pnpm-lock.yaml +++ b/showcase/pnpm-lock.yaml @@ -47,6 +47,9 @@ importers: svelte-check: specifier: ^3.6.0 version: 3.8.6(postcss-load-config@3.1.4(postcss@8.4.45))(postcss@8.4.45)(svelte@4.2.19) + svelte-preprocess-import-assets: + specifier: ^1.1.0 + version: 1.1.0(svelte@4.2.19) typescript: specifier: ^5.0.0 version: 5.5.4 @@ -1421,6 +1424,16 @@ packages: peerDependencies: svelte: ^3.19.0 || ^4.0.0 + svelte-parse-markup@0.1.5: + resolution: {integrity: sha512-T6mqZrySltPCDwfKXWQ6zehipVLk4GWfH1zCMGgRtLlOIFPuw58ZxVYxVvotMJgJaurKi1i14viB2GIRKXeJTQ==} + peerDependencies: + svelte: ^3.0.0 || ^4.0.0 || ^5.0.0-next.1 + + svelte-preprocess-import-assets@1.1.0: + resolution: {integrity: sha512-pWjoceFcGAG6vUg50JZXfhr5V4amxI2aYbcsn6CJrytcA528NNgaHnvMR1EwJYBIpZEf302I8Pyw0YeEta1zbg==} + peerDependencies: + svelte: ^3.37.0 || ^4.0.0 || ^5.0.0-next.1 + svelte-preprocess@5.1.4: resolution: {integrity: sha512-IvnbQ6D6Ao3Gg6ftiM5tdbR6aAETwjhHV+UKGf5bHGYR69RQvF1ho0JKPcbUON4vy4R7zom13jPjgdOWCQ5hDA==} engines: {node: '>= 16.0.0'} @@ -2875,6 +2888,17 @@ snapshots: dependencies: svelte: 4.2.19 + svelte-parse-markup@0.1.5(svelte@4.2.19): + dependencies: + svelte: 4.2.19 + + svelte-preprocess-import-assets@1.1.0(svelte@4.2.19): + dependencies: + estree-walker: 3.0.3 + magic-string: 0.30.11 + svelte: 4.2.19 + svelte-parse-markup: 0.1.5(svelte@4.2.19) + svelte-preprocess@5.1.4(postcss-load-config@3.1.4(postcss@8.4.45))(postcss@8.4.45)(svelte@4.2.19)(typescript@5.5.4): dependencies: '@types/pug': 2.0.10 diff --git a/showcase/src/routes/+page.svelte b/showcase/src/routes/+page.svelte index 2a6c664e8b..b9e13ed3b0 100644 --- a/showcase/src/routes/+page.svelte +++ b/showcase/src/routes/+page.svelte @@ -1,225 +1,193 @@ + +
- The web is special. You can share what you’ve done– strut your stuff. - It's a rite of passage to carve out your own corner of the web & declare "Hello, world! I'm here!" - Now, go out and make something cool, - - - just like this page. -
-- Never made a site? Build one in your club, hackathon, or by yourself. For - inspiration, check out: -
-More of a social coder? You can also hang out online with other - high schoolers learning to build their first websites
-- - Share your site out in the world to get $5 for buying yourself boba. - -
-Build a board
+Vote in the gallery
+Win cool prizes
+Get awesome stickers
+