From d9eced756d6012bcb4036970fe7ca4d4b6b7edf4 Mon Sep 17 00:00:00 2001 From: LynithDev <61880709+LynithDev@users.noreply.github.com> Date: Sun, 7 Jan 2024 16:12:15 +0100 Subject: Branding page + branding assets --- .../components/page/branding/BrandingImage.astro | 30 ++++++ apps/website/src/pages/branding.astro | 113 +++++++++++++++++++++ 2 files changed, 143 insertions(+) create mode 100644 apps/website/src/components/page/branding/BrandingImage.astro create mode 100644 apps/website/src/pages/branding.astro (limited to 'apps/website/src') diff --git a/apps/website/src/components/page/branding/BrandingImage.astro b/apps/website/src/components/page/branding/BrandingImage.astro new file mode 100644 index 0000000..f85364d --- /dev/null +++ b/apps/website/src/components/page/branding/BrandingImage.astro @@ -0,0 +1,30 @@ +--- +interface Props { + type: 'badges' | 'logos' | 'mods' + name: string + altText?: string + extensions?: ('png' | 'svg')[] + maxWidth?: number + background?: string +} + +const { + name, + type, + altText, + background = 'white', + maxWidth = 300, + extensions = ['png', 'svg'], +} = Astro.props; + +const path = `/media/branding/${type}/${name}`; +--- + +