From 8886308c56223f04df535a065234414a6deb11ba Mon Sep 17 00:00:00 2001 From: Maksymilian Date: Fri, 23 Sep 2022 09:44:56 +0200 Subject: Initial commit, v1.0.0 --- src/App.svelte | 62 +++++++++++++ src/assets/svelte.png | Bin 0 -> 5185 bytes src/lib/Counter.svelte | 12 +++ src/lib/Tailwind.css | 3 + src/lib/hmr-stores.js | 29 ++++++ src/main.js | 8 ++ src/routes/About.svelte | 37 ++++++++ src/routes/Blog.svelte | 236 ++++++++++++++++++++++++++++++++++++++++++++++++ src/routes/Home.svelte | 195 +++++++++++++++++++++++++++++++++++++++ 9 files changed, 582 insertions(+) create mode 100644 src/App.svelte create mode 100644 src/assets/svelte.png create mode 100644 src/lib/Counter.svelte create mode 100644 src/lib/Tailwind.css create mode 100644 src/lib/hmr-stores.js create mode 100644 src/main.js create mode 100644 src/routes/About.svelte create mode 100644 src/routes/Blog.svelte create mode 100644 src/routes/Home.svelte (limited to 'src') diff --git a/src/App.svelte b/src/App.svelte new file mode 100644 index 0000000..f56f6bb --- /dev/null +++ b/src/App.svelte @@ -0,0 +1,62 @@ + + + +
+
+ + + + + Tailblocks + + + +
+
+
+ + + +
+
diff --git a/src/assets/svelte.png b/src/assets/svelte.png new file mode 100644 index 0000000..e673c91 Binary files /dev/null and b/src/assets/svelte.png differ diff --git a/src/lib/Counter.svelte b/src/lib/Counter.svelte new file mode 100644 index 0000000..e417505 --- /dev/null +++ b/src/lib/Counter.svelte @@ -0,0 +1,12 @@ + + + \ No newline at end of file diff --git a/src/lib/Tailwind.css b/src/lib/Tailwind.css new file mode 100644 index 0000000..bd6213e --- /dev/null +++ b/src/lib/Tailwind.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; \ No newline at end of file diff --git a/src/lib/hmr-stores.js b/src/lib/hmr-stores.js new file mode 100644 index 0000000..9cd6d0e --- /dev/null +++ b/src/lib/hmr-stores.js @@ -0,0 +1,29 @@ +// Customized HMR-safe stores +// Based off https://github.com/svitejs/svite/blob/ddec6b9/packages/playground/hmr/src/stores/hmr-stores.js +import { writable } from 'svelte/store' + +/** + * @type { Record> } + */ +let stores = {} + +/** + * @template T + * @param { string } id + * @param { T } initialValue + * @returns { import('svelte/store').Writable } + */ +export function getStore(id, initialValue) { + return stores[id] || (stores[id] = writable(initialValue)) +} + +// preserve the store across HMR updates +if (import.meta.hot) { + if (import.meta.hot.data.stores) { + stores = import.meta.hot.data.stores + } + import.meta.hot.accept() + import.meta.hot.dispose(() => { + import.meta.hot.data.stores = stores + }) +} diff --git a/src/main.js b/src/main.js new file mode 100644 index 0000000..5dbcfa9 --- /dev/null +++ b/src/main.js @@ -0,0 +1,8 @@ +import App from './App.svelte' + +const app = new App({ + target: document.body, + // hydrate: true, +}) + +export default app diff --git a/src/routes/About.svelte b/src/routes/About.svelte new file mode 100644 index 0000000..8978723 --- /dev/null +++ b/src/routes/About.svelte @@ -0,0 +1,37 @@ + + +
+
+ hero +
+

+ Microdosing synth tattooed vexillologist +

+

+ Meggings kinfolk echo park stumptown DIY, kale chips beard jianbing + tousled. Chambray dreamcatcher trust fund, kitsch vice godard disrupt + ramps hexagon mustache umami snackwave tilde chillwave ugh. Pour-over + meditation PBR&B pickled ennui celiac mlkshk freegan photo booth af + fingerstache pitchfork. +

+
+ + +
+
+
+
diff --git a/src/routes/Blog.svelte b/src/routes/Blog.svelte new file mode 100644 index 0000000..3a7fe84 --- /dev/null +++ b/src/routes/Blog.svelte @@ -0,0 +1,236 @@ + + +
+
+
+
+
+ blog +
+

+ CATEGORY +

+

+ The Catalyzer +

+

+ Photo booth fam kinfolk cold-pressed sriracha leggings jianbing + microdosing tousled waistcoat. +

+
+ Learn More + + + + + + + + + + 1.2K + + + + + 6 + +
+
+
+
+
+
+ blog +
+

+ CATEGORY +

+

+ The 400 Blows +

+

+ Photo booth fam kinfolk cold-pressed sriracha leggings jianbing + microdosing tousled waistcoat. +

+
+ Learn More + + + + + + + + + + 1.2K + + + + + 6 + +
+
+
+
+
+
+ blog +
+

+ CATEGORY +

+

+ Shooting Stars +

+

+ Photo booth fam kinfolk cold-pressed sriracha leggings jianbing + microdosing tousled waistcoat. +

+
+ Learn More + + + + + + + + + + 1.2K + + + + + 6 + +
+
+
+
+
+
+
diff --git a/src/routes/Home.svelte b/src/routes/Home.svelte new file mode 100644 index 0000000..8092ee1 --- /dev/null +++ b/src/routes/Home.svelte @@ -0,0 +1,195 @@ + + +
+
+
+

+ I ❤️ SERIES +

+

+ List of pokemons +

+

+ Data is taken from pokeapi.co, so they are the one to blame for any + errors +

+
+
+ + +
+
+ {#await getPokemons()} +

Downolading pokemons

+ {:then pokemons} + {#each filterPokemons(pokemons, pokemonName) as pokemon} +
+ {pokemon.name} image +

{pokemon.name}

+
+ {/each} + {/await} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
-- cgit v1.3.1