diff --git a/README.md b/README.md
index 54a2631..beee597 100644
--- a/README.md
+++ b/README.md
@@ -1,43 +1,136 @@
-# Svelte + Vite
+# Lapikud External Website
-This template should help get you started developing with Svelte in Vite.
+Built with [Svelte 5](https://svelte.dev/) and [Vite](https://vite.dev/).
-## Recommended IDE Setup
+## Development plan
-[VS Code](https://code.visualstudio.com/) + [Svelte](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode).
+Materials are on `Google Drive > Lapikud > Tarkvara > Vรคliveeb`
-## Need an official Svelte framework?
+## Contribution guide
-Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also powered by Vite. Deploy anywhere with its serverless-first approach and adapt to various platforms, with out of the box support for TypeScript, SCSS, and Less, and easily-added support for mdsvex, GraphQL, PostCSS, Tailwind CSS, and more.
+### 1. Create Issues
-## Technical considerations
+Easiest way to help would be to create issues about things that are missing and wrong
-**Why use this over SvelteKit?**
+### 2. Fork this repo and create a pull request
-- It brings its own routing solution which might not be preferable for some users.
-- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
+Fork this repo to your own account and create a pull request for changes you have done in there
-This template contains as little as possible to get started with Vite + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project.
+## How to setup development environment
-Should you later need the extended capabilities and extensibility provided by SvelteKit, the template has been structured similarly to SvelteKit so that it is easy to migrate.
+### Prerequisites
-**Why include `.vscode/extensions.json`?**
+- [Node.js](https://nodejs.org/) (v18 or higher. v20 is recommended)
+- npm (comes with Node.js)
-Other templates indirectly recommend extensions via the README, but this file allows VS Code to prompt the user to install the recommended extension upon opening the project.
+### Installation
-**Why enable `checkJs` in the JS template?**
+1. **Clone the repository**
-It is likely that most cases of changing variable types in runtime are likely to be accidental, rather than deliberate. This provides advanced typechecking out of the box. Should you like to take advantage of the dynamically-typed nature of JavaScript, it is trivial to change the configuration.
-
-**Why is HMR not preserving my local component state?**
-
-HMR state preservation comes with a number of gotchas! It has been disabled by default in both `svelte-hmr` and `@sveltejs/vite-plugin-svelte` due to its often surprising behavior. You can read the details [here](https://github.com/sveltejs/svelte-hmr/tree/master/packages/svelte-hmr#preservation-of-local-state).
-
-If you have state that's important to retain within a component, consider creating an external store which would not be replaced by HMR.
-
-```js
-// store.js
-// An extremely simple external store
-import { writable } from 'svelte/store'
-export default writable(0)
+```bash
+ git clone https://github.com/Lapikud/lapikud.github.io.git
+ cd lapikud.github.io
```
+
+2. **Install dependencies**
+
+```bash
+ npm install
+```
+
+3. **Start development server**
+
+```bash
+ npm run dev
+```
+
+### Optional (secretly required): Image optimization
+
+> [!WARNING]
+> No one wants to download 5MB images that are then shown in a 100x100px box.
+
+**Always optimize images before committing them!**
+
+
+Linux/Windows (WSL/Ubuntu)
+
+```bash
+sudo apt install ffmpeg
+```
+
+```bash
+# For thumbnails/small images (100-300px display)
+ffmpeg -i input -vf scale=400:-1 output.jpg
+
+# For medium images (300-800px display)
+ffmpeg -i input -vf scale=1200:-1 output.jpg
+
+# For full-width hero images
+ffmpeg -i input -vf scale=1920:-1 output.jpg
+```
+
+
+
+
+Windows
+
+**Option 1: Using winget (Windows 11 or Windows 10 with App Installer)**
+
+```bash
+winget install ffmpeg
+```
+
+**Option 2: Manual installation**
+
+1. Download FFmpeg from [ffmpeg.org/download.html](https://ffmpeg.org/download.html)
+2. Extract the archive
+3. Add the `bin` folder to your PATH environment variable
+
+**Usage:**
+
+```bash
+# For thumbnails/small images (100-300px display)
+ffmpeg -i input -vf scale=400:-1 output.jpg
+
+# For medium images (300-800px display)
+ffmpeg -i input -vf scale=1200:-1 output.jpg
+
+# For full-width hero images
+ffmpeg -i input -vf scale=1920:-1 output.jpg
+```
+
+
+
+
+MacOS
+
+```bash
+brew install ffmpeg
+```
+
+```bash
+# For thumbnails/small images (100-300px display)
+ffmpeg -i input -vf scale=400:-1 output.jpg
+
+# For medium images (300-800px display)
+ffmpeg -i input -vf scale=1200:-1 output.jpg
+
+# For full-width hero images
+ffmpeg -i input -vf scale=1920:-1 output.jpg
+```
+
+
+
+## Build for production
+
+```bash
+npm run build
+```
+
+Built files will be in the `dist/` folder.
+
+## Deploy
+
+Push to the `main` branch and GitHub Actions will automatically build and deploy to GitHub Pages.
+
+Deployment typically takes 2-5 minutes. You can check the progress in the [Actions tab](https://github.com/Lapikud/lapikud.github.io/actions).
diff --git a/index.html b/index.html
index 16bcdde..3b24afa 100644
--- a/index.html
+++ b/index.html
@@ -1,4 +1,4 @@
-
+
@@ -6,13 +6,13 @@
lapikud.github.io
diff --git a/package-lock.json b/package-lock.json
index 737be84..2dcfc40 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -7,9 +7,6 @@
"": {
"name": "lapikud.github.io",
"version": "0.0.0",
- "dependencies": {
- "svelte-routing": "^2.13.0"
- },
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^6.2.1",
"svelte": "^5.43.8",
@@ -394,6 +391,7 @@
"integrity": "sha512-YZs/OSKOQAQCnJvM/P+F1URotNnYNeU3P2s4oIpzm1uFaqUEqRxUB0g5ejMjEb5Gjb9/PiBI5Ktrq4rUUF8UVQ==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"@sveltejs/vite-plugin-svelte-inspector": "^5.0.0",
"debug": "^4.4.1",
@@ -451,6 +449,7 @@
"integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",
"dev": true,
"license": "MIT",
+ "peer": true,
"bin": {
"acorn": "bin/acorn"
},
@@ -903,6 +902,7 @@
"integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",
"dev": true,
"license": "MIT",
+ "peer": true,
"engines": {
"node": ">=12"
},
@@ -988,6 +988,7 @@
"integrity": "sha512-K1QJbpc71OHs3egN/ZHN+nsH/eE/eJQUbtlTAAXVejOOjsFx9hM96fCX5fwPQIYclJfVS8D96RDFA76nZsrJ3w==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"@jridgewell/remapping": "^2.3.4",
"@jridgewell/sourcemap-codec": "^1.5.0",
@@ -1008,12 +1009,6 @@
"node": ">=18"
}
},
- "node_modules/svelte-routing": {
- "version": "2.13.0",
- "resolved": "https://registry.npmjs.org/svelte-routing/-/svelte-routing-2.13.0.tgz",
- "integrity": "sha512-/NTxqTwLc7Dq306hARJrH2HLXOBtKd7hu8nxgoFDlK0AC4SOKnzisiX/9m8Uksei1QAWtlAEdF91YphNM8iDMg==",
- "license": "MIT"
- },
"node_modules/tinyglobby": {
"version": "0.2.15",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
@@ -1046,6 +1041,7 @@
"integrity": "sha512-u09tdk/huMiN8xwoiBbig197jKdCamQTtOruSalOzbqGje3jdHiV0njQlAW0YvzoahkirFePNQ4RYlfnRQpXZA==",
"dev": true,
"license": "MIT",
+ "peer": true,
"dependencies": {
"@oxc-project/runtime": "0.97.0",
"fdir": "^6.5.0",
diff --git a/package.json b/package.json
index 72cd43f..7d52e02 100644
--- a/package.json
+++ b/package.json
@@ -15,8 +15,5 @@
},
"overrides": {
"vite": "npm:rolldown-vite@7.2.5"
- },
- "dependencies": {
- "svelte-routing": "^2.13.0"
}
}
diff --git a/404.html b/public/404.html
similarity index 100%
rename from 404.html
rename to public/404.html
diff --git a/public/CNAME.example b/public/CNAME.example
new file mode 100644
index 0000000..8a1d543
--- /dev/null
+++ b/public/CNAME.example
@@ -0,0 +1 @@
+add later
\ No newline at end of file
diff --git a/src/App.svelte b/src/App.svelte
index 7596a25..7d2a066 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -1,20 +1,20 @@
-
- {#each Object.entries(routes) as [path, component]}
-
- {/each}
-
+
-
- {#if $theme === 'dark'}โ๏ธ{:else}๐{/if}
-
\ No newline at end of file
+
+ {#if $theme === "dark"}โ๏ธ{:else}๐{/if}
+
diff --git a/src/app.css b/src/app.css
index a40a085..be2fffc 100644
--- a/src/app.css
+++ b/src/app.css
@@ -1,190 +1,293 @@
-/* Global stylesheet: design tokens, light/dark themes, responsive helpers,
- and small utility classes so components don't need to re-implement
- spacing, breakpoints, or color choices. */
+/* Global stylesheet */
/* Design tokens & theme variables (light defaults) */
:root {
- /* color tokens (light defaults) */
- --color-bg: #ffffff;
- --color-surface: #f7f8fb;
- --color-text: #0f1720;
- --color-muted: #6b7280;
- --color-primary: #4f46e5;
- --color-primary-600: #4338ca;
- --color-border: rgba(15,23,32,0.08);
- --color-danger: #ef4444;
+ /* color tokens (light defaults) */
+ --color-bg: #ffffff;
+ --color-surface: #f7f8fb;
+ --color-text: #0f1720;
+ --color-muted: #6b7280;
+ --color-primary: #4f46e5;
+ --color-primary-600: #4338ca;
+ --color-border: rgba(15, 23, 32, 0.08);
+ --color-danger: #ef4444;
- /* layout tokens */
- --site-padding: clamp(1rem, 2vw, 2rem); /* horizontal page padding */
- --content-max: 1200px; /* main content max width */
- --nav-height: 64px;
- --footer-height: 80px;
+ /* layout tokens */
+ --site-padding: clamp(1rem, 2vw, 2rem); /* horizontal page padding */
+ --content-max: 1200px; /* main content max width */
+ --nav-height: 64px;
+ --footer-height: 80px;
- /* spacing scale (use --space-#) */
- --space-0: 0px;
- --space-1: 4px;
- --space-2: 8px;
- --space-3: 16px;
- --space-4: 24px;
- --space-5: 32px;
- --space-6: 48px;
+ /* spacing scale (use --space-#) */
+ --space-0: 0px;
+ --space-1: 4px;
+ --space-2: 8px;
+ --space-3: 16px;
+ --space-4: 24px;
+ --space-5: 32px;
+ --space-6: 48px;
- /* radii / shadows */
- --radius-sm: 6px;
- --radius-md: 10px;
- --radius-lg: 14px;
- --shadow-1: 0 1px 2px rgba(2,6,23,0.06), 0 1px 3px rgba(2,6,23,0.04);
+ /* radii / shadows */
+ --radius-sm: 6px;
+ --radius-md: 10px;
+ --radius-lg: 14px;
+ --shadow-1: 0 1px 2px rgba(2, 6, 23, 0.06), 0 1px 3px rgba(2, 6, 23, 0.04);
- /* breakpoints */
- --bp-sm: 480px;
- --bp-md: 768px;
- --bp-lg: 1024px;
- --bp-xl: 1280px;
+ /* breakpoints */
+ --bp-sm: 480px;
+ --bp-md: 768px;
+ --bp-lg: 1024px;
+ --bp-xl: 1280px;
- /* type scale (fluid base + modular sizes) */
- --fs-base: clamp(0.95rem, 0.9vw + 0.9rem, 1rem);
- --fs-xs: 0.85rem;
- --fs-sm: 0.92rem;
- --fs-md: 1rem;
- --fs-lg: 1.125rem;
- --fs-xl: 1.5rem;
- --line-height: 1.45;
+ /* type scale (fluid base + modular sizes) */
+ --fs-base: clamp(0.95rem, 0.9vw + 0.9rem, 1rem);
+ --fs-xs: 0.85rem;
+ --fs-sm: 0.92rem;
+ --fs-md: 1rem;
+ --fs-lg: 1.125rem;
+ --fs-xl: 1.5rem;
+ --line-height: 1.45;
- /* derived component tokens that components can rely on */
- --button-bg: var(--color-surface);
- --button-text: var(--color-text);
- --card-bg: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
- --accent: var(--color-primary);
+ /* derived component tokens that components can rely on */
+ --button-bg: var(--color-surface);
+ --button-text: var(--color-text);
+ --card-bg: linear-gradient(
+ 180deg,
+ rgba(255, 255, 255, 0.98),
+ rgba(255, 255, 255, 0.96)
+ );
+ --accent: var(--color-primary);
}
/* Dark theme overrides: set document.documentElement.dataset.theme = "dark" */
[data-theme="dark"] {
- --color-bg: #0b1220;
- --color-surface: #0f1724;
- --color-text: #e6eef8;
- --color-muted: #9aa5b2;
- --color-primary: #7c6cff;
- --color-primary-600: #6d5cff;
- --color-border: rgba(255,255,255,0.06);
- --button-bg: #0f1724;
- --card-bg: linear-gradient(180deg, rgba(18,20,28,0.9), rgba(15,17,24,0.85));
+ --color-bg: #0b1220;
+ --color-surface: #0f1724;
+ --color-text: #e6eef8;
+ --color-muted: #9aa5b2;
+ --color-primary: #7c6cff;
+ --color-primary-600: #6d5cff;
+ --color-border: rgba(255, 255, 255, 0.06);
+ --button-bg: #0f1724;
+ --card-bg: linear-gradient(
+ 180deg,
+ rgba(18, 20, 28, 0.9),
+ rgba(15, 17, 24, 0.85)
+ );
}
/* let the browser apply native form rendering for color-scheme */
-:root { color-scheme: light; }
-[data-theme="dark"] { color-scheme: dark; }
+:root {
+ color-scheme: light;
+}
+[data-theme="dark"] {
+ color-scheme: dark;
+}
/* Global box sizing & accessible defaults */
-*, *::before, *::after { box-sizing: border-box; }
+*,
+*::before,
+*::after {
+ box-sizing: border-box;
+}
html {
- font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- font-size: var(--fs-base);
- -webkit-text-size-adjust: 100%;
+ font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI",
+ Roboto, "Helvetica Neue", Arial;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ font-size: var(--fs-base);
+ -webkit-text-size-adjust: 100%;
}
body {
- margin: 0;
- color: var(--color-text);
- background: var(--color-bg);
- line-height: var(--line-height);
- min-height: 100vh;
- -webkit-tap-highlight-color: transparent;
- transition: background-color 160ms ease, color 160ms ease;
- padding-top: var(--nav-height); /* reserve navbar */
+ margin: 0;
+ color: var(--color-text);
+ background: var(--color-bg);
+ line-height: var(--line-height);
+ min-height: 100vh;
+ -webkit-tap-highlight-color: transparent;
+ transition: background-color 160ms ease, color 160ms ease;
+ padding-top: var(--nav-height); /* reserve navbar */
}
/* Container pattern */
.container {
- width: 100%;
- max-width: var(--content-max);
- margin-left: auto;
- margin-right: auto;
- padding-left: var(--site-padding);
- padding-right: var(--site-padding);
+ width: 100%;
+ max-width: var(--content-max);
+ margin-left: auto;
+ margin-right: auto;
+ padding-left: var(--site-padding);
+ padding-right: var(--site-padding);
}
/* Responsive helpers - mobile by default; desktop media queries adjust naturally */
-@media (min-width: var(--bp-md)) {
- .container { padding-left: calc(var(--site-padding) * 1.2); padding-right: calc(var(--site-padding) * 1.2); }
+@media (min-width: 768px) {
+ .container {
+ padding-left: calc(var(--site-padding) * 1.2);
+ padding-right: calc(var(--site-padding) * 1.2);
+ }
}
-@media (min-width: var(--bp-lg)) {
- .container { padding-left: calc(var(--site-padding) * 1.5); padding-right: calc(var(--site-padding) * 1.5); }
+@media (min-width: 1024px) {
+ .container {
+ padding-left: calc(var(--site-padding) * 1.5);
+ padding-right: calc(var(--site-padding) * 1.5);
+ }
}
/* Headings & paragraph scale */
-h1 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); margin: 0 0 var(--space-3) 0; line-height: 1.08; }
-h2 { font-size: clamp(1.25rem, 2.1vw, 1.75rem); margin: 0 0 var(--space-3) 0; }
-h3 { font-size: var(--fs-lg); margin: 0 0 var(--space-2) 0; }
-p { margin: 0 0 var(--space-3) 0; color: var(--color-text); }
+h1 {
+ font-size: clamp(1.5rem, 2.8vw, 2.25rem);
+ margin: 0 0 var(--space-3) 0;
+ line-height: 1.08;
+}
+h2 {
+ font-size: clamp(1.25rem, 2.1vw, 1.75rem);
+ margin: 0 0 var(--space-3) 0;
+}
+h3 {
+ font-size: var(--fs-lg);
+ margin: 0 0 var(--space-2) 0;
+}
+p {
+ margin: 0 0 var(--space-3) 0;
+ color: var(--color-text);
+}
/* Basic link & button defaults that components inherit */
-a { color: var(--color-primary); text-decoration: none; font-weight: 550; }
-a:hover { text-decoration: underline; color: var(--color-primary-600); }
-
-button, input[type="button"], input[type="submit"] {
- font: inherit;
- color: var(--button-text);
- background: var(--button-bg);
- border: 1px solid var(--color-border);
- padding: 0.5em 0.9em;
- border-radius: var(--radius-sm);
- cursor: pointer;
- transition: box-shadow 120ms ease, transform 120ms ease, border-color 120ms ease;
+a {
+ color: var(--color-primary);
+ text-decoration: none;
+ font-weight: 550;
+}
+a:hover {
+ text-decoration: underline;
+ color: var(--color-primary-600);
+}
+
+button,
+input[type="button"],
+input[type="submit"] {
+ font: inherit;
+ color: var(--button-text);
+ background: var(--button-bg);
+ border: 1px solid var(--color-border);
+ padding: 0.5em 0.9em;
+ border-radius: var(--radius-sm);
+ cursor: pointer;
+ transition: box-shadow 120ms ease, transform 120ms ease,
+ border-color 120ms ease;
+}
+button:active {
+ transform: translateY(1px);
+}
+button:focus {
+ outline: 3px solid color-mix(in srgb, var(--color-primary) 14%, transparent);
+ outline-offset: 2px;
}
-button:active { transform: translateY(1px); }
-button:focus { outline: 3px solid color-mix(in srgb, var(--color-primary) 14%, transparent); outline-offset: 2px; }
/* Card pattern components can use .card */
.card {
- background: var(--card-bg);
- border-radius: var(--radius-md);
- box-shadow: var(--shadow-1);
- border: 1px solid var(--color-border);
- padding: var(--space-4);
+ background: var(--card-bg);
+ border-radius: var(--radius-md);
+ box-shadow: var(--shadow-1);
+ border: 1px solid var(--color-border);
+ padding: var(--space-4);
}
/* Stacking helpers: use .stack to avoid writing margins for children */
-.stack { display: flex; flex-direction: column; gap: var(--space-3); }
-.stack--tight { gap: var(--space-2); }
-.inline { display: inline-flex; gap: var(--space-2); align-items: center; }
+.stack {
+ display: flex;
+ flex-direction: column;
+ gap: var(--space-3);
+}
+.stack--tight {
+ gap: var(--space-2);
+}
+.inline {
+ display: inline-flex;
+ gap: var(--space-2);
+ align-items: center;
+}
/* Simple responsive grid that adapts to available width */
-.grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
+.grid {
+ display: grid;
+ gap: var(--space-3);
+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
+}
/* Utility: visually hidden (accessible labels) */
-.sr-only, .visually-hidden {
- position: absolute !important;
- height: 1px; width: 1px;
- overflow: hidden;
- clip: rect(1px, 1px, 1px, 1px);
- white-space: nowrap;
- border: 0; padding: 0; margin: -1px;
+.sr-only,
+.visually-hidden {
+ position: absolute !important;
+ height: 1px;
+ width: 1px;
+ overflow: hidden;
+ clip: rect(1px, 1px, 1px, 1px);
+ white-space: nowrap;
+ border: 0;
+ padding: 0;
+ margin: -1px;
}
/* Show/hide helpers for breakpoints */
-.mobile-only { display: block; }
-.desktop-only { display: none; }
-@media (min-width: var(--bp-md)) {
- .mobile-only { display: none; }
- .desktop-only { display: block; }
+.mobile-only {
+ display: block;
+}
+.desktop-only {
+ display: none;
+}
+@media (min-width: 768px) {
+ .mobile-only {
+ display: none;
+ }
+ .desktop-only {
+ display: block;
+ }
}
/* Navbar & footer helpers so components can assume consistent heights */
-.site-header { height: var(--nav-height); display: flex; align-items: center; background: transparent; position: fixed; top: 0; left: 0; right: 0; z-index: 40; border-bottom: 1px solid var(--color-border); backdrop-filter: blur(6px); }
-.site-footer { height: var(--footer-height); display: flex; align-items: center; border-top: 1px solid var(--color-border); background: transparent; }
+.site-header {
+ height: var(--nav-height);
+ display: flex;
+ align-items: center;
+ background: transparent;
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ z-index: 40;
+ border-bottom: 1px solid var(--color-border);
+ backdrop-filter: blur(6px);
+}
+.site-footer {
+ height: var(--footer-height);
+ display: flex;
+ align-items: center;
+ border-top: 1px solid var(--color-border);
+ background: transparent;
+}
/* Small form controls default */
.input {
- padding: 0.6em 0.8em; border-radius: var(--radius-sm);
- border: 1px solid var(--color-border); background: transparent; color: inherit;
+ padding: 0.6em 0.8em;
+ border-radius: var(--radius-sm);
+ border: 1px solid var(--color-border);
+ background: transparent;
+ color: inherit;
}
/* Utility to visually reduce emphasis (muted text) */
-.muted { color: var(--color-muted); font-size: 0.95em; }
+.muted {
+ color: var(--color-muted);
+ font-size: 0.95em;
+}
/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
- * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
+ * {
+ animation-duration: 0.001ms !important;
+ animation-iteration-count: 1 !important;
+ transition-duration: 0.001ms !important;
+ scroll-behavior: auto !important;
+ }
}
-
diff --git a/src/lib/Router.svelte b/src/lib/Router.svelte
new file mode 100644
index 0000000..9cd6e74
--- /dev/null
+++ b/src/lib/Router.svelte
@@ -0,0 +1,46 @@
+
+
+
+
+
+{#if CurrentComponent}
+
+{/if}
diff --git a/src/lib/router.svelte.js b/src/lib/router.svelte.js
deleted file mode 100644
index e69de29..0000000
diff --git a/src/lib/theme.js b/src/lib/theme.js
index e5b3d52..f5c22e3 100644
--- a/src/lib/theme.js
+++ b/src/lib/theme.js
@@ -1,17 +1,19 @@
+// THEME STORE for LIGHT / DARK mode
+
import { writable } from 'svelte/store'
const init = (() => {
try {
const stored = localStorage.getItem('theme')
if (stored === 'light' || stored === 'dark') return stored
- } catch (e) {}
+ } catch (e) { }
return (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) ? 'dark' : 'light'
})()
export const theme = writable(init)
theme.subscribe(value => {
- try { localStorage.setItem('theme', value) } catch (e) {}
+ try { localStorage.setItem('theme', value) } catch (e) { }
document.documentElement.dataset.theme = value
})
diff --git a/src/routes/Demo.svelte b/src/routes/Demo.svelte
index 0a3bb96..ea46451 100644
--- a/src/routes/Demo.svelte
+++ b/src/routes/Demo.svelte
@@ -1 +1,2 @@
-demo page
\ No newline at end of file
+Demo Page
+Back to Home
diff --git a/src/routes/Home.svelte b/src/routes/Home.svelte
index ed56825..77290cc 100644
--- a/src/routes/Home.svelte
+++ b/src/routes/Home.svelte
@@ -1 +1,5 @@
-test
\ No newline at end of file
+Home
+
+ Demo
+ Contact
+
diff --git a/src/routes/index.js b/src/routes/index.js
index f5fcdaf..bb0bfd7 100644
--- a/src/routes/index.js
+++ b/src/routes/index.js
@@ -1,9 +1,10 @@
+// ADD PAGES HERE TO REGISTER ROUTES
+// examples: '/page', '/page/:id'
+
import Demo from './Demo.svelte'
import Home from './Home.svelte'
export const routes = {
'/': Home,
'/demo': Demo,
- // '/page': Page,
- // '/page/:id': Page, // with optional param
}
\ No newline at end of file