aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'apps/website/src/components')
-rw-r--r--apps/website/src/components/page/branding/BrandingImage.astro3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/website/src/components/page/branding/BrandingImage.astro b/apps/website/src/components/page/branding/BrandingImage.astro
index f85364d..e112691 100644
--- a/apps/website/src/components/page/branding/BrandingImage.astro
+++ b/apps/website/src/components/page/branding/BrandingImage.astro
@@ -2,6 +2,7 @@
interface Props {
type: 'badges' | 'logos' | 'mods'
name: string
+ nameFormatted?: string
altText?: string
extensions?: ('png' | 'svg')[]
maxWidth?: number
@@ -12,6 +13,7 @@ const {
name,
type,
altText,
+ nameFormatted,
background = 'white',
maxWidth = 300,
extensions = ['png', 'svg'],
@@ -27,4 +29,5 @@ const path = `/media/branding/${type}/${name}`;
))}
</div>
<img style={`max-width: ${maxWidth}px;`} src={`${path}.svg`} alt={altText}>
+ {nameFormatted && <span class="absolute bottom-0 left-1/2 -translate-x-1/2 opacity-50 text-xxs">{nameFormatted}</span>}
</div>