Skip to content

Commit

Permalink
NA - Added header component with go and wordmark
Browse files Browse the repository at this point in the history
  • Loading branch information
nagarajnetcentric committed Jan 31, 2024
1 parent e4e8444 commit 26ac765
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
24 changes: 24 additions & 0 deletions apps/frontend/src/assets/icons/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions apps/frontend/src/assets/icons/wordmark-cognizant.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions apps/frontend/src/components/Header/Header.stories.ts
Original file line number Diff line number Diff line change
@@ -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<typeof Header>;

export default meta;
type Story = StoryObj<typeof meta>;


export const DefaultHeader: Story = {};
17 changes: 17 additions & 0 deletions apps/frontend/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -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 = () => (
<header>
<div className="flex justify-between mx-12 py-[18px]">
<div className='flex'>
<img src={logo} alt="logo" />
<img src={wordmark} alt="wordmark" />
</div>
<div>
<span className='font-gellix text-midnight-blue text-[20px] leading-5 font-semibold'>Solari Astrocraft</span>
</div>
</div>
</header>
);

0 comments on commit 26ac765

Please sign in to comment.