From a5e733fb0640214aec5dbf7c8cd9d420dbb42c90 Mon Sep 17 00:00:00 2001 From: Loke Carlsson Date: Mon, 20 Jun 2022 09:51:46 +0000 Subject: [PATCH 1/3] feat: intial setup --- src/components/Header.svelte | 3 +++ src/routes/services.svelte | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/routes/services.svelte diff --git a/src/components/Header.svelte b/src/components/Header.svelte index 899004cb..8849b625 100644 --- a/src/components/Header.svelte +++ b/src/components/Header.svelte @@ -12,6 +12,9 @@
  • Journal
  • +
  • + Services +
  • Contact
  • diff --git a/src/routes/services.svelte b/src/routes/services.svelte new file mode 100644 index 00000000..8a557ad2 --- /dev/null +++ b/src/routes/services.svelte @@ -0,0 +1,16 @@ + + + + Services - loke.dev + + + +
    +

    How can I help you?

    +
    + \ No newline at end of file From 8c61283bf282a675130fc09b6a9608f4e81da38f Mon Sep 17 00:00:00 2001 From: Loke Carlsson Date: Mon, 20 Jun 2022 09:52:18 +0000 Subject: [PATCH 2/3] fix: configure vite server HMR to work with gitpod --- .gitpod.yml | 12 ++++-------- svelte.config.js | 12 ++++++++++++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index c7f5787f..9114fca8 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,9 +1,5 @@ -# This configuration file was automatically generated by Gitpod. -# Please adjust to your needs (see https://www.gitpod.io/docs/config-gitpod-file) -# and commit this file to your remote git repository to share the goodness with others. - tasks: - - init: npm install && npm run build - command: npm run dev - - + - init: npm install + command: | + export HMR_HOST=`gp url 3000` + npm run dev \ No newline at end of file diff --git a/svelte.config.js b/svelte.config.js index ee5684a3..4cc277fe 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -24,6 +24,18 @@ const config = { }, adapter: netlify(), vite: { + server: { + hmr: process.env.GITPOD_WORKSPACE_URL + ? { + // Due to port fowarding, we have to replace + // 'https' with the forwarded port, as this + // is the URI created by Gitpod. + host: process.env.GITPOD_WORKSPACE_URL.replace("https://", "3000-"), + protocol: "wss", + clientPort: 443 + } + : true + }, test: { environment: "jsdom", coverage: { From afa393181d96afe8171b18167730eb11732684fd Mon Sep 17 00:00:00 2001 From: Loke Carlsson Date: Tue, 28 Jun 2022 06:57:28 +0000 Subject: [PATCH 3/3] chore: move section to footer --- src/components/Footer.svelte | 13 +++++++++++-- src/routes/index.svelte | 9 --------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/Footer.svelte b/src/components/Footer.svelte index 9f7326cf..ff027d8c 100644 --- a/src/components/Footer.svelte +++ b/src/components/Footer.svelte @@ -1,5 +1,14 @@ -