From 6e660ab246aca0541057577fa8a5736077bc1711 Mon Sep 17 00:00:00 2001 From: Filip Znachor Date: Sat, 27 Apr 2024 22:36:05 +0200 Subject: [PATCH] Better services & small updates --- public/favicon.svg | 9 ------ public/logo.svg | 1 - src/components/Card.astro | 61 ------------------------------------ src/components/Service.astro | 31 ++++++++++++++++++ src/layouts/Layout.astro | 6 ++-- src/pages/index.astro | 17 +++------- src/pages/sluzby.astro | 33 ++++++++++--------- src/scripts/services.ts | 15 ++++++--- src/styles/global.css | 25 +++++++++++---- 9 files changed, 87 insertions(+), 111 deletions(-) delete mode 100644 public/favicon.svg delete mode 100644 public/logo.svg delete mode 100644 src/components/Card.astro create mode 100644 src/components/Service.astro diff --git a/public/favicon.svg b/public/favicon.svg deleted file mode 100644 index f157bd1..0000000 --- a/public/favicon.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - diff --git a/public/logo.svg b/public/logo.svg deleted file mode 100644 index 3861c3d..0000000 --- a/public/logo.svg +++ /dev/null @@ -1 +0,0 @@ -{$ \ No newline at end of file diff --git a/src/components/Card.astro b/src/components/Card.astro deleted file mode 100644 index bd6d597..0000000 --- a/src/components/Card.astro +++ /dev/null @@ -1,61 +0,0 @@ ---- -interface Props { - title: string; - body: string; - href: string; -} - -const { href, title, body } = Astro.props; ---- - - - diff --git a/src/components/Service.astro b/src/components/Service.astro new file mode 100644 index 0000000..15ebd1e --- /dev/null +++ b/src/components/Service.astro @@ -0,0 +1,31 @@ +--- +import { Icon } from 'astro-icon/components'; + +type Props = Service; + +interface Service { + icon: string; + name: string; + desc: string; + url?: string; + invite?: boolean; +} + +const service = Astro.props; +--- + +
+
+ +

{ service.name }

+
+

{ service.desc }

+
+ { service.url && + { service.url } + } + { service.invite && +
na pozvání
+ } +
+
\ No newline at end of file diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 2e5f4d4..fda6880 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -28,8 +28,10 @@ import '../styles/fonts.css'; -