Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

Refactor Pikachu template layout to conditionally render header and page picture based on `isFirstPage` property

Amruth Pillai1e814a77cc4d
diff --git a/src/components/resume/templates/pikachu.tsx b/src/components/resume/templates/pikachu.tsx
index 592db5d47..a1eda5f8c 100644
--- a/src/components/resume/templates/pikachu.tsx
+++ b/src/components/resume/templates/pikachu.tsx
@@ -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) => {