From 283ebb35c9f55a334b92bea24257ebd08e3c5866 Mon Sep 17 00:00:00 2001 From: Gianmarco Pettinato Date: Sat, 27 May 2023 23:32:07 +0200 Subject: [PATCH] fixing header --- package.json | 3 +- src/lib/elements/MenuMobile.svelte | 95 ++++++++++++------- src/routes/+page.svelte | 2 +- ...o_2023-05-27_14-07-56.webp:Zone.Identifier | 4 - vite.config.ts | 2 +- 5 files changed, 67 insertions(+), 39 deletions(-) delete mode 100644 static/photo_2023-05-27_14-07-56.webp:Zone.Identifier diff --git a/package.json b/package.json index fc9a7de..e4e7c92 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "scripts": { "update-model": "json2ts ./src/lib/model/schemas/job.json ./src/lib/model/job.ts && json2ts ./src/lib/model/schemas/logo.json ./src/lib/model/logo.ts", "dev": "vite dev", + "dev-exposed": "vite dev --host", "build": "vite build", "postbuild": "npx svelte-sitemap --domain https://pettinato.eu", "preview": "vite preview", @@ -50,4 +51,4 @@ "svelte-sitemap": "^2.6.0", "typesafe-i18n": "^5.20.0" } -} +} \ No newline at end of file diff --git a/src/lib/elements/MenuMobile.svelte b/src/lib/elements/MenuMobile.svelte index c48997f..33f0754 100644 --- a/src/lib/elements/MenuMobile.svelte +++ b/src/lib/elements/MenuMobile.svelte @@ -51,7 +51,7 @@ function setOpen() { menuOpen = !menuOpen; - const animation = menuContainer.animate([{ height: '0px' }, { height: '360px' }], { + const animation = menuContainer.animate([{ height: '0px' }, { height: '240px' }], { duration: 100, fill: 'both' }); @@ -61,12 +61,14 @@