From 8905f4233dcc7b86f07a2cdfac916b902502cd4b Mon Sep 17 00:00:00 2001
From: matthieu42morin
Date: Mon, 29 Apr 2024 13:21:12 +0200
Subject: [PATCH] projs
---
src/lib/config/projects.ts | 35 ++++++++++++++++----------------
src/routes/+layout.ts | 6 +++---
src/routes/projects/+page.svelte | 13 ++++++++++++
3 files changed, 34 insertions(+), 20 deletions(-)
create mode 100644 src/routes/projects/+page.svelte
diff --git a/src/lib/config/projects.ts b/src/lib/config/projects.ts
index 5ac22df..49b95b4 100644
--- a/src/lib/config/projects.ts
+++ b/src/lib/config/projects.ts
@@ -1,22 +1,23 @@
export type Project = {
- id: string
- name: string
- tags?: string[]
- feature?: string
- description?: string
- img: string
- link?: string
+ id: string
+ name: string
+ tags?: string[]
+ feature?: string
+ description?: string
+ img: string
+ link?: string
}
export const projects: Project[] = [
- {
- id: 'seedling', // HTML ID
- name: 'Seedling', // project Name
- tags: ['Svelte', 'TypeScript'], // tag
- // description
- description: '🌸 Sweet, Powerful, IndieWeb-Compatible SvelteKit Blog Starter. [δ](Delta)',
- feature: 'Svelte', // feature
- img: 'https://github.com/importantimport/urara/raw/main/urara/hello-world/urara.webp',
- link: 'https://github.com/importantimport/urara'
- }
+ {
+ id: 'seedling', // HTML ID
+ name: 'Seedling', // project Name
+ tags: ['IoT', 'ESP32', 'sensors', 'C++', 'Swift (iOS app)'],
+ // description
+ description: 'A smart IoT plant-care system.',
+ feature: 'IoT', // feature
+ img: 'https://mattmor.in/projects/seedling/feature.jpg',
+ link: 'https://mattmor.in/projects/seedling'
+ },
+ {}
]
diff --git a/src/routes/+layout.ts b/src/routes/+layout.ts
index c49c6d8..4711d5a 100644
--- a/src/routes/+layout.ts
+++ b/src/routes/+layout.ts
@@ -1,7 +1,7 @@
import type { LayoutLoad } from './$types'
-export const prerender = true
+export const prerender = false
export const trailingSlash = 'always'
export const load: LayoutLoad = async ({ url, fetch }) => ({
- path: url.pathname,
- res: await fetch('/posts.json').then(res => res.json())
+ path: url.pathname,
+ res: await fetch('/posts.json').then(res => res.json())
})
diff --git a/src/routes/projects/+page.svelte b/src/routes/projects/+page.svelte
new file mode 100644
index 0000000..8eb2bec
--- /dev/null
+++ b/src/routes/projects/+page.svelte
@@ -0,0 +1,13 @@
+
+
+
+
+{#each items as item}
+
+{/each}