Skip to content

Commit

Permalink
feat: introduce @awwsmith pattern header
Browse files Browse the repository at this point in the history
  • Loading branch information
trevormunoz committed Sep 1, 2024
1 parent 14dda8c commit ab93a09
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/components/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
header {
width: 100%;
text-align: left;
padding: 0 var(--base-content-spacing);
}
header svg {
max-height: 125px;
Expand Down
15 changes: 12 additions & 3 deletions src/components/header.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
import { Link } from "gatsby"
import React from "react"

import "./header.css"
import Logo from "../svg/MITH-logostack-blk.svg"
import { StaticImage } from "gatsby-plugin-image"

const Header = () => (
// siteTitle currently unused.
<header>
<div className="logo">
<div className="bg-white flex flex-row items-center justify-center py-4">
<Link to="/">
<Logo />
<Logo height="8rem" />
</Link>
</div>
<div className="h-96 overflow-hidden absolute top-0 left-0 w-full -z-10">
<StaticImage
src="../images/mith-pattern-header.png"
alt="Header Pattern"
layout="fullWidth"
className="no-repeat object-cover align-middle"
placeholder="blurred"
/>
</div>
</header>
)

Expand Down
2 changes: 1 addition & 1 deletion src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Layout = ({ children }: LayoutProps) => {
<div className="flex flex-col min-h-screen">
<Header />
<Nav />
<main id="main-content" className="grow">
<main id="main-content" className="mt-56 grow">
{children}
</main>
<Footer />
Expand Down
Binary file added src/images/mith-pattern-header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ab93a09

Please sign in to comment.