feat(Logo): add a separate component for project logo
This commit is contained in:
21
src/shared/ui/Logo/Logo.stories.svelte
Normal file
21
src/shared/ui/Logo/Logo.stories.svelte
Normal 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>
|
||||
19
src/shared/ui/Logo/Logo.svelte
Normal file
19
src/shared/ui/Logo/Logo.svelte
Normal 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>
|
||||
Reference in New Issue
Block a user