Define config data for all sections

This commit is contained in:
Konrad Szwarc 2022-08-28 22:55:49 +02:00
parent 33f137d269
commit 75856ecb07
3 changed files with 47 additions and 3 deletions

View file

@ -140,6 +140,50 @@ const data: Data = {
}, },
], ],
}, },
experience: {
config: {
title: 'Work experience',
icon: 'fa6-solid:suitcase',
},
jobs: [],
},
portfolio: {
config: {
title: 'Projects',
icon: 'fa6-solid:rocket',
filter: null,
},
projects: [],
},
testimonials: {
config: {
title: 'Testimonials',
icon: 'fa6-solid:comment',
},
testimonials: [],
},
favorites: {
config: {
title: 'My favorites',
icon: 'fa6-solid:star',
},
books: {
title: 'Books I read',
data: [],
},
medias: {
title: 'People I learn from',
data: [],
},
people: {
title: 'Videos I watched',
data: [],
},
videos: {
title: 'Media I follow',
data: [],
},
},
}; };
export default data; export default data;

View file

@ -1,6 +1,6 @@
import type { SectionConfig, Social, Tag } from './common'; import type { SectionConfig, Social, Tag } from './common';
interface ExperienceItem { interface Job {
role: string; role: string;
company: string; company: string;
startDate: Date; startDate: Date;
@ -11,6 +11,6 @@ interface ExperienceItem {
} }
export interface ExperienceSection { export interface ExperienceSection {
items: ExperienceItem[]; jobs: Job[];
config: SectionConfig; config: SectionConfig;
} }

View file

@ -28,7 +28,7 @@ interface Media {
interface SubSection<Data> { interface SubSection<Data> {
title: string; title: string;
data: Data; data: Data[];
} }
export interface FavoritesSection { export interface FavoritesSection {