Decide if the card should be displayed at higher level

This commit is contained in:
Ariful Alam
2024-01-20 18:34:32 +06:00
parent c5318da457
commit 034dbe0d2c
5 changed files with 147 additions and 163 deletions

View File

@@ -217,22 +217,30 @@ const GitProfile = ({ config }: { config: Config }) => {
github={sanitizedConfig.github}
social={sanitizedConfig.social}
/>
<SkillCard
loading={loading}
skills={sanitizedConfig.skills}
/>
<ExperienceCard
loading={loading}
experiences={sanitizedConfig.experiences}
/>
<CertificationCard
loading={loading}
certifications={sanitizedConfig.certifications}
/>
<EducationCard
loading={loading}
educations={sanitizedConfig.educations}
/>
{sanitizedConfig.skills.length !== 0 && (
<SkillCard
loading={loading}
skills={sanitizedConfig.skills}
/>
)}
{sanitizedConfig.experiences.length !== 0 && (
<ExperienceCard
loading={loading}
experiences={sanitizedConfig.experiences}
/>
)}
{sanitizedConfig.certifications.length !== 0 && (
<CertificationCard
loading={loading}
certifications={sanitizedConfig.certifications}
/>
)}
{sanitizedConfig.educations.length !== 0 && (
<EducationCard
loading={loading}
educations={sanitizedConfig.educations}
/>
)}
</div>
</div>
<div className="lg:col-span-2 col-span-1">