From 26ac765ad6da5649549d1ef990b6e89db373d920 Mon Sep 17 00:00:00 2001 From: Nagaraj Devendhiran Date: Wed, 31 Jan 2024 13:21:24 +0100 Subject: [PATCH] NA - Added header component with go and wordmark --- apps/frontend/src/assets/icons/logo.svg | 24 +++++++++++++++++++ .../src/assets/icons/wordmark-cognizant.svg | 3 +++ .../src/components/Header/Header.stories.ts | 20 ++++++++++++++++ .../frontend/src/components/Header/Header.tsx | 17 +++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 apps/frontend/src/assets/icons/logo.svg create mode 100644 apps/frontend/src/assets/icons/wordmark-cognizant.svg create mode 100644 apps/frontend/src/components/Header/Header.stories.ts create mode 100644 apps/frontend/src/components/Header/Header.tsx diff --git a/apps/frontend/src/assets/icons/logo.svg b/apps/frontend/src/assets/icons/logo.svg new file mode 100644 index 0000000..e33cefc --- /dev/null +++ b/apps/frontend/src/assets/icons/logo.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/apps/frontend/src/assets/icons/wordmark-cognizant.svg b/apps/frontend/src/assets/icons/wordmark-cognizant.svg new file mode 100644 index 0000000..24f4bb2 --- /dev/null +++ b/apps/frontend/src/assets/icons/wordmark-cognizant.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/frontend/src/components/Header/Header.stories.ts b/apps/frontend/src/components/Header/Header.stories.ts new file mode 100644 index 0000000..bc73fa3 --- /dev/null +++ b/apps/frontend/src/components/Header/Header.stories.ts @@ -0,0 +1,20 @@ +import type { Meta, StoryObj } from '@storybook/react'; + +import { Header } from './Header'; + +const meta = { + title: 'Example/Header', + component: Header, + // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs + tags: ['autodocs'], + parameters: { + // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout + layout: 'fullscreen', + }, +} satisfies Meta; + +export default meta; +type Story = StoryObj; + + +export const DefaultHeader: Story = {}; diff --git a/apps/frontend/src/components/Header/Header.tsx b/apps/frontend/src/components/Header/Header.tsx new file mode 100644 index 0000000..3144d4b --- /dev/null +++ b/apps/frontend/src/components/Header/Header.tsx @@ -0,0 +1,17 @@ +import React from 'react'; +import logo from '../../assets/icons/logo.svg'; +import wordmark from '../../assets/icons/wordmark-cognizant.svg'; + +export const Header = () => ( +
+
+
+ logo + wordmark +
+
+ Solari Astrocraft +
+
+
+);