mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-15 07:17:00 +10:00
Refactor Pikachu template layout to conditionally render header and page picture based on isFirstPage property
This commit is contained in:
@@ -49,10 +49,12 @@ export function PikachuTemplate({ pageIndex, pageLayout }: TemplateProps) {
|
||||
)}
|
||||
|
||||
<main data-layout="main" className="group page-main flex-1 space-y-(--page-gap-y)">
|
||||
<div className="flex items-center gap-x-6">
|
||||
{fullWidth && <PagePicture />}
|
||||
{isFirstPage && <Header />}
|
||||
</div>
|
||||
{isFirstPage && (
|
||||
<div className="flex items-center gap-x-6">
|
||||
{fullWidth && <PagePicture />}
|
||||
<Header />
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="space-y-(--page-gap-y)">
|
||||
{main.map((section) => {
|
||||
|
||||
Reference in New Issue
Block a user