Skip to content

Commit

Permalink
fix header rendering on small viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomashighbaugh committed Nov 6, 2023
1 parent 678c188 commit 58fc42a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ import details from '../config/details';
export default function Header() {
return (
<header
className='max-w-6xl mt-36 md:mt-0 lg:mt-0 xl:mt-0'
className='max-w-6xl '
aria-label='Header'
>
<div className='inline-flex rounded-md border-2 mx-2 mr-0 sm:mr-0 md:mr-4 lg:mr-4 xl:mr-4 border-black bg-white p-6 font-bold shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]'>
<div className='flex content-center justify-center md:inline-flex lg:inline-flex xl:inline-flex rounded-md border-2 mx-2 mr-0 sm:mr-0 md:mr-4 lg:mr-4 xl:mr-4 border-black bg-white p-6 font-black shadow-[6px_6px_0px_0px_rgba(0,0,0,1)]'>
<div className='max-w-5xl'>
<h1 className='text-left pb-6 pt-6 text-4xl text-black '>
<h1 className='text-left pb-6 pt-6 text-2xl md:text-3xl lg:text-4xl xl:text-4xl text-black '>
{details.name_surname}
</h1>
<h2 className='text-black font-black motion-safe:animate-pulse md:text-lg lg:text-lg xl:text-xl text-left '>
{details.role}
</h2>
</div>
<Image className="min-w-72 min-h-72" height={108} width={108} src='/hero-image.png' />
<Image className="min-w-72 min-h-72 justify-center" height={108} width={108} src='/hero-image.png' alt="logo of Thomas Leon Highbaugh" />
</div>

<noscript>
Expand Down
2 changes: 1 addition & 1 deletion src/config/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const links = [
url: 'https://gitlab.com/Thomashighbaugh/',
},
{
text: 'Secondary E-mail',
text: 'Other E-mail',
icon: faEnvelope,
url: `mailto:${details.email2}`,
},
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function Home() {
<>
<MetaHead />

<main className='w-full max-w-6xl flex flex-col justify-center items-center mx-auto pt-6'>
<main className='w-screen max-w-6xl min-h-screen flex flex-col justify-center items-center mx-auto pt-3'>
<Header />
<LinksList />
<Footer />
Expand Down
2 changes: 1 addition & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
--accent-primary-state: #868990; /* blue-800 */
}

html {
body {
@apply flex flex-col justify-center h-full align-middle w-full min-w-full overflow-scroll;
font-family: 'Jost', sans-serif;
box-sizing: border-box;
Expand Down

0 comments on commit 58fc42a

Please sign in to comment.