Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Services #77

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 11 additions & 2 deletions src/components/Footer.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<footer class="flex flex-col justify-center items-center p-8 sm:px-0 bg-background">
<p>
<footer class="flex flex-col justify-center items-center p-8 mt-10 sm:px-0 bg-background">
<div class="flex flex-col items-center text-center">
<p>
Contact me via <a href="mailto:[email protected]">Email</a> or find me on other medias:
<a href="https://github.com/loke-dev">Github</a>
| <a href="https://www.linkedin.com/in/lokecarlsson/">Linkedin</a>
| <a href="https://twitter.com/loke_dev">Twitter</a>
</p>
</div>

<p class="mt-8">
All rights reserved © Loke Carlsson {new Date().getFullYear()}
</p>
</footer>
3 changes: 3 additions & 0 deletions src/components/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<li class:active={$page.url.pathname.includes("/journal")}>
<a sveltekit:prefetch href="/journal">Journal</a>
</li>
<li class:active={$page.url.pathname.includes("/services")}>
<a sveltekit:prefetch href="/services">Services</a>
</li>
<li class:active={$page.url.pathname === "/contact"}>
<a sveltekit:prefetch href="/contact">Contact</a>
</li>
Expand Down
9 changes: 0 additions & 9 deletions src/routes/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,4 @@

<section class="">
<Hero />

<div class="flex flex-col items-center text-center mt-20">
<p>
Contact me via <a href="mailto:[email protected]">Email</a> or find me on other medias:
<a href="https://github.com/loke-dev">Github</a>
| <a href="https://www.linkedin.com/in/lokecarlsson/">Linkedin</a>
| <a href="https://twitter.com/loke_dev">Twitter</a>
</p>
</div>
</section>
16 changes: 16 additions & 0 deletions src/routes/services.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<script context="module">
import { dev } from "$app/env"

export const router = true
export const prerender = true
</script>

<svelte:head>
<title>Services - loke.dev</title>
<meta name="description" content="Some of the web development services I can provide help with." />
</svelte:head>

<div class="content">
<h1 class="mb-6">How can I help you?</h1>
</div>

12 changes: 12 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down