80 lines
1.7 KiB
Svelte
80 lines
1.7 KiB
Svelte
<script lang="ts">
|
|
import BrandEmblem from '$lib/components/BrandEmblem.svelte';
|
|
|
|
let {
|
|
size = 'header',
|
|
descriptor = 'RESURGENCE DATA & TOOLS'
|
|
}: {
|
|
size?: 'header' | 'footer' | 'launch';
|
|
descriptor?: string;
|
|
} = $props();
|
|
</script>
|
|
|
|
<span class="brand-lockup brand-lockup--{size}">
|
|
<span class="brand-lockup__emblem"><BrandEmblem /></span>
|
|
<span class="brand-lockup__copy">
|
|
<span class="brand-lockup__name"><span>SHD</span><b>.build</b></span>
|
|
<small>{descriptor}</small>
|
|
</span>
|
|
</span>
|
|
|
|
<style>
|
|
.brand-lockup {
|
|
--brand-emblem-size: 38px;
|
|
--brand-name-size: 20px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 11px;
|
|
min-width: max-content;
|
|
}
|
|
.brand-lockup__emblem {
|
|
display: block;
|
|
width: var(--brand-emblem-size);
|
|
height: var(--brand-emblem-size);
|
|
flex: 0 0 auto;
|
|
}
|
|
.brand-lockup__copy {
|
|
display: grid;
|
|
gap: 3px;
|
|
}
|
|
.brand-lockup__name {
|
|
display: flex;
|
|
align-items: baseline;
|
|
color: var(--shd-text);
|
|
font-size: var(--brand-name-size);
|
|
font-weight: 900;
|
|
letter-spacing: -.025em;
|
|
line-height: .82;
|
|
}
|
|
.brand-lockup__name b {
|
|
color: var(--shd-orange);
|
|
font-weight: inherit;
|
|
}
|
|
.brand-lockup small {
|
|
color: var(--shd-text-muted);
|
|
font-size: 9px;
|
|
font-weight: 800;
|
|
letter-spacing: .13em;
|
|
line-height: 1;
|
|
white-space: nowrap;
|
|
}
|
|
.brand-lockup--footer {
|
|
--brand-emblem-size: 36px;
|
|
--brand-name-size: 18px;
|
|
}
|
|
.brand-lockup--launch {
|
|
--brand-emblem-size: 42px;
|
|
--brand-name-size: 22px;
|
|
}
|
|
@media (max-width: 430px) {
|
|
.brand-lockup--header,
|
|
.brand-lockup--launch {
|
|
--brand-emblem-size: 36px;
|
|
}
|
|
.brand-lockup--header .brand-lockup__copy,
|
|
.brand-lockup--launch .brand-lockup__copy {
|
|
display: none;
|
|
}
|
|
}
|
|
</style>
|