2026-09-01 16:05:29 +03:30
|
|
|
<script setup lang="ts">
|
2026-09-07 11:49:54 +03:30
|
|
|
import { brand } from '@mento/shared';
|
|
|
|
|
|
2026-09-01 16:05:29 +03:30
|
|
|
withDefaults(
|
|
|
|
|
defineProps<{
|
|
|
|
|
size?: number;
|
|
|
|
|
showText?: boolean;
|
|
|
|
|
variant?: 'full' | 'mark';
|
|
|
|
|
}>(),
|
|
|
|
|
{
|
|
|
|
|
size: 40,
|
|
|
|
|
showText: true,
|
|
|
|
|
variant: 'full',
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2026-09-07 11:49:54 +03:30
|
|
|
<div class="brand-logo" :class="variant">
|
|
|
|
|
<img
|
2026-09-02 16:06:17 +03:30
|
|
|
class="mark"
|
2026-09-07 11:49:54 +03:30
|
|
|
:src="brand.logo"
|
|
|
|
|
:alt="brand.name"
|
|
|
|
|
:style="{ width: `${size}px`, height: `${size}px` }"
|
|
|
|
|
/>
|
2026-09-01 16:05:29 +03:30
|
|
|
<div v-if="showText && variant === 'full'" class="text">
|
2026-09-07 11:49:54 +03:30
|
|
|
<strong>{{ brand.name }}</strong>
|
|
|
|
|
<small>by {{ brand.company }}</small>
|
2026-09-01 16:05:29 +03:30
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2026-09-07 11:49:54 +03:30
|
|
|
.brand-logo {
|
2026-09-01 16:05:29 +03:30
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.7rem;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.mark {
|
2026-09-01 16:28:45 +03:30
|
|
|
display: block;
|
2026-09-07 11:49:54 +03:30
|
|
|
flex-shrink: 0;
|
|
|
|
|
object-fit: contain;
|
|
|
|
|
background: transparent;
|
2026-09-01 16:05:29 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text {
|
|
|
|
|
display: grid;
|
|
|
|
|
gap: 0.05rem;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text strong {
|
2026-09-01 16:28:45 +03:30
|
|
|
font-size: 1.08rem;
|
2026-09-01 16:05:29 +03:30
|
|
|
letter-spacing: -0.02em;
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
line-height: 1.1;
|
2026-09-12 01:33:07 +03:30
|
|
|
font-weight: 600;
|
2026-09-01 16:05:29 +03:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text small {
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
font-size: 0.72rem;
|
|
|
|
|
}
|
|
|
|
|
</style>
|