From 7448a77bb127edc98d6fff208da1a8042617928d Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Wed, 21 Feb 2024 23:59:14 +0100 Subject: [PATCH] Add 3D Card Effect --- src/components/Card.svelte | 71 ++++++++++++++++++++++++++++++++++++++ src/pages/index.astro | 19 +++++----- 2 files changed, 80 insertions(+), 10 deletions(-) create mode 100644 src/components/Card.svelte diff --git a/src/components/Card.svelte b/src/components/Card.svelte new file mode 100644 index 0000000..b621e75 --- /dev/null +++ b/src/components/Card.svelte @@ -0,0 +1,71 @@ + + + + +
+ +
+ + \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 0a9749d..c973cd7 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,6 +2,7 @@ import NavbarLayout from "@layouts/NavbarLayout.astro"; import {Image} from "astro:assets"; +import Card from "@components/Card.svelte"; import localBau from "@images/2023-10-08_20.43.43.png"; import {CaretRight, Archive, Rocket, Bell} from "@astropub/icons"; import {t} from "astro-i18n"; @@ -113,23 +114,23 @@ function mapMap(i: Map, fn: (key: T, value: K) => J): J[] {
-
+

{t("home.benefits.historic.title")}

{t("home.benefits.historic.description.1")}

{t("home.benefits.historic.description.2")}

-
-
+ +

{t("home.benefits.server.title")}

{t("home.benefits.server.description")}

-
-
+ +

{t("home.benefits.events.title")}

{t("home.benefits.events.description.1")}

{t("home.benefits.events.description.2")}

-
+
{t("home.benefits.read")} @@ -141,16 +142,14 @@ function mapMap(i: Map, fn: (key: T, value: K) => J): J[] {

{t("home.prefix." + key)}

{value.map(v => ( -
+
{v.name}
{v.name
-
+ ))}