generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NA - Added header component with go and wordmark
- Loading branch information
1 parent
e4e8444
commit 26ac765
Showing
4 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); |