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!

fix(Gengar): Hide Summary section unless populated

Scott Buschec2837838ee30
diff --git a/apps/artboard/src/templates/gengar.tsx b/apps/artboard/src/templates/gengar.tsx
index 44d5eb572..57492c6dd 100644
--- a/apps/artboard/src/templates/gengar.tsx
+++ b/apps/artboard/src/templates/gengar.tsx
@@ -82,17 +82,19 @@ const Header = () => {
const Summary = () => {
const section = useArtboardStore((state) => state.resume.sections.summary);
-
+ const primaryColor = useArtboardStore((state) => state.resume.metadata.theme.primary);
if (!section.visible || isEmptyString(section.content)) return null;
return (
- <section id={section.id}>
- <div
- dangerouslySetInnerHTML={{ __html: section.content }}
- className="wysiwyg"
- style={{ columns: section.columns }}
- />
- </section>
+ <div className="p-custom space-y-4" style={{ backgroundColor: hexToRgb(primaryColor, 0.2) }}>
+ <section id={section.id}>
+ <div
+ dangerouslySetInnerHTML={{ __html: section.content }}
+ className="wysiwyg"
+ style={{ columns: section.columns }}
+ />
+ </section>
+ </div>
);
};
@@ -600,15 +602,7 @@ export const Gengar = ({ columns, isFirstPage = false }: TemplateProps) => {
</div>
<div className="main group col-span-2">
- {isFirstPage && (
- <div
- className="p-custom space-y-4"
- style={{ backgroundColor: hexToRgb(primaryColor, 0.2) }}
- >
- <Summary />
- </div>
- )}
-
+ {isFirstPage && <Summary />}
<div className="p-custom space-y-4">
{main.map((section) => (
<Fragment key={section}>{mapSectionToComponent(section)}</Fragment>