feat(Logo): add a separate component for project logo

This commit is contained in:
Ilia Mashkov
2026-02-06 15:36:52 +03:00
parent fedf3f88e7
commit a1080d3b34
2 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<script module>
import { defineMeta } from '@storybook/addon-svelte-csf';
import Logo from './Logo.svelte';
const { Story } = defineMeta({
title: 'Shared/Logo',
tags: ['autodocs'],
parameters: {
docs: {
description: {
component: 'Projec Logo',
},
story: { inline: false }, // Render stories in iframe for state isolation
},
},
});
</script>
<Story name="Default">
<Logo />
</Story>

View File

@@ -0,0 +1,19 @@
<!--
Component: Logo
Project logo with apropriate styles
-->
<script lang="ts">
import { cn } from '$shared/shadcn/utils/shadcn-utils';
interface Props {
class?: string;
}
const { class: className }: Props = $props();
const baseClasses =
'font-[Barlow] font-thin text-5xl sm:text-6xl md:text-7xl lg:text-8xl text-justify [text-align-last:justify] [text-justify:inter-character]';
</script>
<h2 class={cn(baseClasses, className)}>
GLYPHDIFF
</h2>