Skip to content

Commit

Permalink
refactor(h4): 👷 heading4 new component
Browse files Browse the repository at this point in the history
  • Loading branch information
krsiakdaniel committed Dec 23, 2024
1 parent 6622d12 commit 3cbd83f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
10 changes: 5 additions & 5 deletions app/work-experience/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import PageContainer from '@/components/layout/PageContainer'
import ProjectsLayout from '@/components/layout/ProjectsLayout'
import PageNavigation from '@/components/page-navigation/PageNavigation'
import ExperienceCard from '@/components/projects/experience/ExperienceCard'
import ExperienceOtherTitle from '@/components/projects/experience/ExperienceOtherTitle'
import { ProjectSection } from '@/components/projects/overview-page/ProjectSection'
import BreadCrumbs from '@/components/shared/Breadcrumbs'
import Heading4 from '@/components/shared/Heading4'
import { projectsWorkFrontEnd } from '@/data/projects/work/projects-overview/workFrontEnd'
import { projectsWorkLocalization } from '@/data/projects/work/projects-overview/workLocalization'
import { projectsWorkQA } from '@/data/projects/work/projects-overview/workQA'
Expand Down Expand Up @@ -52,7 +52,7 @@ const ProjectsWork = () => {
<ProjectSection sectionId={ID.section.react} sectionText="React" projectData={projectsWorkReact} />

<ProjectSection sectionId={ID.section.frontEnd} sectionText="Front End" projectData={projectsWorkFrontEnd} />
<ExperienceOtherTitle />
<Heading4>{TEXT.otherExperience}</Heading4>
<ExperienceCard
company="Freelance"
role="Web Developer / Consultant"
Expand All @@ -66,7 +66,7 @@ const ProjectsWork = () => {
/>

<ProjectSection sectionId={ID.section.wordpress} sectionText="WordPress" projectData={projectsWorkWordPress} />
<ExperienceOtherTitle />
<Heading4>{TEXT.otherExperience}</Heading4>
<ExperienceCard
company="Freelance"
role="WordPress Consultant"
Expand All @@ -75,7 +75,7 @@ const ProjectsWork = () => {
/>

<ProjectSection sectionId={ID.section.qa} sectionText="QA Automation & Testing" projectData={projectsWorkQA} />
<ExperienceOtherTitle />
<Heading4>{TEXT.otherExperience}</Heading4>
<ExperienceCard
company="Smartsupp"
role="QA Automation - Team Leader"
Expand All @@ -92,7 +92,7 @@ const ProjectsWork = () => {
sectionText="Localization"
projectData={projectsWorkLocalization}
/>
<ExperienceOtherTitle />
<Heading4>{TEXT.otherExperience}</Heading4>
<ExperienceCard
company="Smartsupp"
role="Localization - Manager"
Expand Down
5 changes: 0 additions & 5 deletions components/projects/experience/ExperienceOtherTitle.tsx

This file was deleted.

11 changes: 11 additions & 0 deletions components/shared/Heading4.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
type Heading4Props = {
children: React.ReactNode
textColor?: string
customCss?: string
}

const Heading4 = ({ children, textColor = '', customCss = '' }: Heading4Props) => {
return <h4 className={`mb-4 mt-8 text-xl font-bold ${textColor} ${customCss}`}>{children}</h4>
}

export default Heading4
5 changes: 5 additions & 0 deletions localization/english.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,15 @@ const COMPANIES = {
moravia: '🌎 Moravia IT',
}

const WORK = {
otherExperience: 'Other Experience',
}

export const TEXT = {
...ABOUT,
...RESUME,
...PROJECTS,
...HOME,
...COMPANIES,
...WORK,
}

0 comments on commit 3cbd83f

Please sign in to comment.