From 9e7e76184df473113ac9c30a7a4456292845445c Mon Sep 17 00:00:00 2001 From: holybasil Date: Tue, 28 Nov 2023 09:28:14 +0800 Subject: [PATCH] fix: link style --- src/assets/svgs/main/next.svg | 3 +++ src/components/PageContent/WhatsNext.astro | 29 +++++++--------------- 2 files changed, 12 insertions(+), 20 deletions(-) create mode 100644 src/assets/svgs/main/next.svg diff --git a/src/assets/svgs/main/next.svg b/src/assets/svgs/main/next.svg new file mode 100644 index 000000000..7e53e0d72 --- /dev/null +++ b/src/assets/svgs/main/next.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/PageContent/WhatsNext.astro b/src/components/PageContent/WhatsNext.astro index 6d4fdf0e4..66de6f5e4 100644 --- a/src/components/PageContent/WhatsNext.astro +++ b/src/components/PageContent/WhatsNext.astro @@ -1,5 +1,6 @@ --- import i18next, { t } from "i18next" +import NextSvg from "~/assets/svgs/main/next.svg?raw" export type Props = { content: Record } const { content = {} } = Astro.props as Props --- @@ -11,23 +12,10 @@ const { content = {} } = Astro.props as Props Object.keys(content).map((key) => (
  • - - - {" "} - {key} + <> + + {key} +
  • )) @@ -62,7 +50,7 @@ const { content = {} } = Astro.props as Props .whats-next { padding: 0; @apply border-[1px] border-solid border-primary dark:border-dark-primary overflow-hidden; - border-radius: 27px; + border-radius: 10px; } .whats-next li:first-child { border-top: 0; @@ -75,9 +63,10 @@ const { content = {} } = Astro.props as Props .whats-next li a { width: 100%; display: inline-flex; - padding: 20px 30px; + padding: 16px 20px; + gap: 8px; } .whats-next li a:hover { - @apply bg-normal dark:bg-dark-normal; + @apply bg-white dark:bg-dark-normal; }