Skip to content

Commit

Permalink
[WIP] feat: Header component
Browse files Browse the repository at this point in the history
Co-authored-by: Manvinderjit Rupal <91133409+manvinderjit@users.noreply.github.com>
  • Loading branch information
sounmind and manvinderjit committed Feb 11, 2025
1 parent b466922 commit bee0887
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
Binary file added public/torontojs-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/Header/Header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.header-wrapper {}
22 changes: 22 additions & 0 deletions src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
interface Props {
heading: string;

// NOTE: To be decided
withLogo: boolean;
}

const Header = ({ withLogo, heading }: Props) => (
<div className='header-wrapper'>
{withLogo && (
<picture>
<img src='./torontojs-logo.png' alt='TorontoJS' />
</picture>
)}

<header>
<h1>{heading}</h1>
</header>
</div>
);

export default Header;

0 comments on commit bee0887

Please sign in to comment.