diff --git a/TODO.md b/TODO.md index 306ca86..94f656a 100644 --- a/TODO.md +++ b/TODO.md @@ -2,8 +2,11 @@ ## Short term -- Translate new wording keys +- [Collectibles] Create page for gallery +- [Collectibles] Create page for scans ## Long term +- Global search function + - Convert Rich text to simple text for indexing and open graph purposes - Anonymous comments diff --git a/src/components/Card.astro b/src/components/Card.astro new file mode 100644 index 0000000..42d895e --- /dev/null +++ b/src/components/Card.astro @@ -0,0 +1,52 @@ +--- +import ConditionalWrapper from "./ConditionalWrapper.astro"; +import Link from "./Link.astro"; + +interface Props { + href?: string | undefined; + disableRoundedTop?: boolean; +} + +const { href, disableRoundedTop = false } = Astro.props; +--- + + + + + + + + diff --git a/src/components/Previews/GenericPreview.astro b/src/components/Previews/GenericPreview.astro index 15865b3..efcb9e3 100644 --- a/src/components/Previews/GenericPreview.astro +++ b/src/components/Previews/GenericPreview.astro @@ -1,8 +1,7 @@ --- import type { EndpointTagsGroup, PayloadImage } from "src/shared/payload/payload-sdk"; -import ConditionalWrapper from "../ConditionalWrapper.astro"; -import Link from "../Link.astro"; import InlineTagGroups from "pages/[locale]/collectibles/_components/ContentsSection/InlineTagGroups.astro"; +import Card from "components/Card.astro"; interface Props { thumbnail?: PayloadImage | undefined; @@ -25,8 +24,8 @@ const { } = Astro.props; --- - - + + { thumbnail && ( @@ -52,38 +51,25 @@ const { } - +