-
-
{category}
+
+
+
+
{category.title}
{/each}
@@ -24,4 +61,22 @@
--tw-brightness: brightness(.3);
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
+
+ @font-face {
+ font-family: 'RobotoRegular';
+ font-style: normal;
+ font-weight: 400;
+ src: url('/fonts/Roboto-Regular.ttf');
+ }
+
+ @font-face {
+ font-family: 'AlegreyaSansSC';
+ font-style: normal;
+ font-weight: 800;
+ src: url('/fonts/Alegreyasansscextrabold.ttf');
+ }
+
+ #category {
+ font-size: 3dvh;
+ }
\ No newline at end of file
diff --git a/src/routes/categories/[category]/+page.svelte b/src/routes/categories/[category]/+page.svelte
index d548326..117978f 100644
--- a/src/routes/categories/[category]/+page.svelte
+++ b/src/routes/categories/[category]/+page.svelte
@@ -1,9 +1,50 @@
- hello, {$page.params.category}
+
+
Категории
+ {#await recipes}
+
+ {:then data}
+
+ {:catch}
+ Ошибка
+ {/await}
+
\ No newline at end of file
diff --git a/src/routes/recipe/[recipeid]/+page.svelte b/src/routes/recipe/[recipeid]/+page.svelte
index b8ef7d0..386a040 100644
--- a/src/routes/recipe/[recipeid]/+page.svelte
+++ b/src/routes/recipe/[recipeid]/+page.svelte
@@ -3,7 +3,7 @@
import axios from 'axios';
// create request
- let serverurl = 'http://127.0.0.1:3000';
+ let serverurl = 'http://192.168.0.105:3000';
let recipe_p = axios.get(serverurl+"/recipe?r_id="+$page.params.recipeid)
recipe_p.then(function (response) {
console.log(response);