From 42f32da4d66a57201a25f0c4569e62e53ea109c5 Mon Sep 17 00:00:00 2001 From: Akis Date: Thu, 5 Jan 2023 19:12:43 +0200 Subject: [PATCH] change icons to md, change nav and footer --- package.json | 2 +- pnpm-lock.yaml | 8 +++---- src/lib/BlogCard/Meta.svelte | 10 ++++----- src/lib/Footer.svelte | 15 +++---------- src/lib/Form/Captcha.svelte | 2 +- src/lib/Nav.svelte | 27 ++++++++++++++++++++---- src/lib/ThemeToggle.svelte | 2 +- src/routes/+page.svelte | 4 ++-- src/routes/Announcements.svelte | 12 +++++------ src/routes/blog/+page.svelte | 4 ++-- src/routes/contact/+page.svelte | 4 ++-- src/routes/instances/InstanceLink.svelte | 4 ++-- src/routes/team/+page.svelte | 8 +++---- uno.config.ts | 2 +- 14 files changed, 57 insertions(+), 47 deletions(-) diff --git a/package.json b/package.json index 452a85a..27377de 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "format": "prettier -w --plugin-search-dir=. ." }, "devDependencies": { - "@iconify-json/fa6-solid": "^1.1.10", + "@iconify-json/ic": "^1.1.12", "@iconify-json/simple-icons": "^1.1.40", "@sveltejs/adapter-node": "1.0.0", "@sveltejs/kit": "1.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e8bba58..9dd75e9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3,7 +3,7 @@ lockfileVersion: 5.4 specifiers: '@auth/core': ^0.2.4 '@auth/sveltekit': ^0.1.11 - '@iconify-json/fa6-solid': ^1.1.10 + '@iconify-json/ic': ^1.1.12 '@iconify-json/simple-icons': ^1.1.40 '@sveltejs/adapter-node': 1.0.0 '@sveltejs/kit': 1.0.1 @@ -39,7 +39,7 @@ dependencies: sequelize: 6.28.0_pg-hstore@2.3.4+pg@8.8.0 devDependencies: - '@iconify-json/fa6-solid': 1.1.10 + '@iconify-json/ic': 1.1.12 '@iconify-json/simple-icons': 1.1.40 '@sveltejs/adapter-node': 1.0.0_@sveltejs+kit@1.0.1 '@sveltejs/kit': 1.0.1_svelte@3.55.0+vite@4.0.3 @@ -318,8 +318,8 @@ packages: '@hapi/hoek': 9.3.0 dev: false - /@iconify-json/fa6-solid/1.1.10: - resolution: {integrity: sha512-BJDDO8wiFQopALfmgUpTTINapfpYMw4aklJu96zolJSHYzLQTs05Db/bxvKeBeDArn9SMVIY4pA+ExinJqFT/g==} + /@iconify-json/ic/1.1.12: + resolution: {integrity: sha512-J0rDxdAc9GjJ1iS95hPXseN76ioZr9olGmdu9H+NKrmYAHanaeMIfWZ6PlANA5kCc+lNOFcDySSvQQ7DLMMoRQ==} dependencies: '@iconify/types': 2.0.0 dev: true diff --git a/src/lib/BlogCard/Meta.svelte b/src/lib/BlogCard/Meta.svelte index 312ccce..3fba6c4 100644 --- a/src/lib/BlogCard/Meta.svelte +++ b/src/lib/BlogCard/Meta.svelte @@ -8,18 +8,18 @@
{#if post.tags.length > 0}
-
+
{#each post.tags as tag} {tag.name} {/each}
{/if} {#each post.authors as author} -
{author.name} +
{author.name} {/each} -
{dayjs +
{dayjs (post.published_at) .format("ddd, DD MMM YYYY HH:mm")} -
{post.plaintext.trim().split(/\s+/).length} words -
{post.reading_time} minute read +
{post.plaintext.trim().split(/\s+/).length} words +
{post.reading_time} minute read
\ No newline at end of file diff --git a/src/lib/Footer.svelte b/src/lib/Footer.svelte index 83c4a3a..3f5dce0 100644 --- a/src/lib/Footer.svelte +++ b/src/lib/Footer.svelte @@ -1,17 +1,8 @@ diff --git a/src/lib/Form/Captcha.svelte b/src/lib/Form/Captcha.svelte index 80b1253..cc527d5 100644 --- a/src/lib/Form/Captcha.svelte +++ b/src/lib/Form/Captcha.svelte @@ -13,7 +13,7 @@ import ThemeToggle from "./ThemeToggle.svelte"; import { page } from "$app/stores"; + import { slide } from "svelte/transition"; + import { quintOut } from 'svelte/easing'; $: currentPage = $page.url.pathname; @@ -14,6 +16,8 @@ $: menuOpen = innerWidth > 1030; + $: menuOpenMobile = innerWidth < 1030 && menuOpen; + let showThemeToggle: boolean = true; const toggleMenu = () => { @@ -53,7 +57,8 @@