diff --git a/src/components/BuildingCard.astro b/src/components/ItemCard.astro similarity index 66% rename from src/components/BuildingCard.astro rename to src/components/ItemCard.astro index 7ac108e..b0c10e6 100644 --- a/src/components/BuildingCard.astro +++ b/src/components/ItemCard.astro @@ -6,23 +6,25 @@ interface Props { name: string; description: string; image: string; + button_type: string; + button_name: string; } const lang = await getLocales(await getHighestWeightedLanguage(Astro.request.headers.get('accept-language'))); --- -
- -
-
{Astro.props.name}
-
{Astro.props.description}
- {getName(lang, "general", "nav-build")} -
i
+
+ +
+
{Astro.props.name}
+
{Astro.props.description}
+ {getName(lang, Astro.props.button_type, Astro.props.button_name)} +
i