diff --git a/src/assets/logos/facebook-logo.png b/src/assets/logos/facebook-logo.png new file mode 100644 index 0000000..1e78934 Binary files /dev/null and b/src/assets/logos/facebook-logo.png differ diff --git a/src/assets/logos/gitlab-logo.png b/src/assets/logos/gitlab-logo.png new file mode 100644 index 0000000..11d75af Binary files /dev/null and b/src/assets/logos/gitlab-logo.png differ diff --git a/src/assets/logos/google-logo.jpg b/src/assets/logos/google-logo.jpg new file mode 100644 index 0000000..87f9647 Binary files /dev/null and b/src/assets/logos/google-logo.jpg differ diff --git a/src/assets/logos/wroclaw-university-of-technology.jpg b/src/assets/logos/wroclaw-university-of-technology.jpg new file mode 100644 index 0000000..4fe2056 Binary files /dev/null and b/src/assets/logos/wroclaw-university-of-technology.jpg differ diff --git a/src/data/sections/education-section.data.ts b/src/data/sections/education-section.data.ts index ca6af21..22a418b 100644 --- a/src/data/sections/education-section.data.ts +++ b/src/data/sections/education-section.data.ts @@ -13,6 +13,7 @@ const educationSectionData = { { title: 'Information Technology', institution: 'Wrocław University of Science and Technology', + image: import('@/assets/logos/wroclaw-university-of-technology.jpg'), dates: [new Date('2014.10'), new Date('2016.07')], description: 'Master degree. Specialization in software development.', links: [website({ url: '#' })], @@ -20,6 +21,7 @@ const educationSectionData = { { title: 'Information Technology', institution: 'Wrocław University of Science and Technology', + image: import('@/assets/logos/wroclaw-university-of-technology.jpg'), dates: [new Date('2011.10'), new Date('2014.07')], description: "Bachelor's degree. Specialization in application development.", links: [website({ url: '#' })], diff --git a/src/data/sections/experience-section.data.ts b/src/data/sections/experience-section.data.ts index df1bfc0..3b636f7 100644 --- a/src/data/sections/experience-section.data.ts +++ b/src/data/sections/experience-section.data.ts @@ -26,6 +26,7 @@ const experienceSectionData = { { role: 'Senior front-end developer', company: 'Google', + image: import('@/assets/logos/google-logo.jpg'), dates: [new Date('2020-02'), null], description: ` - In tristique vulputate augue vel egestas. @@ -44,6 +45,7 @@ const experienceSectionData = { { role: 'React.js developer', company: 'Facebook', + image: import('@/assets/logos/facebook-logo.png'), dates: [new Date('2019-04'), new Date('2020-02')], description: ` - Aenean eget ultricies felis. Pellentesque dictum massa ut tellus eleifend, sed posuere massa mattis. @@ -60,6 +62,7 @@ const experienceSectionData = { { role: 'Junior front-end developer', company: 'GitLab', + image: import('@/assets/logos/gitlab-logo.png'), dates: [new Date('2016-09'), new Date('2019-04')], description: ` Nulla volutpat justo ante, rhoncus posuere massa egestas in: diff --git a/src/types/sections/education-section.types.ts b/src/types/sections/education-section.types.ts index a1f1e6c..664ca71 100644 --- a/src/types/sections/education-section.types.ts +++ b/src/types/sections/education-section.types.ts @@ -1,4 +1,4 @@ -import type { DateRange, LinkButton, Section } from '../shared'; +import type { DateRange, LinkButton, Photo, Section } from '../shared'; export interface Diploma { /** @@ -11,6 +11,15 @@ export interface Diploma { */ institution: string; + /** + * [WEB] Logo of the institution. + * + * **Ratio**: 1:1 + * + * **Display size**: 56x56px + */ + image?: Photo; + /** * Date range when you were studying in the institution. */ diff --git a/src/types/sections/experience-section.types.ts b/src/types/sections/experience-section.types.ts index fa1af39..98c3344 100644 --- a/src/types/sections/experience-section.types.ts +++ b/src/types/sections/experience-section.types.ts @@ -1,4 +1,4 @@ -import type { DateRange, LinkButton, Section, TagsList } from '../shared'; +import type { DateRange, LinkButton, Photo, Section, TagsList } from '../shared'; export interface Job { /** @@ -11,6 +11,15 @@ export interface Job { */ company: string; + /** + * [WEB] Logo of the company. + * + * **Ratio**: 1:1 + * + * **Display size**: 56x56px + */ + image?: Photo; + /** * Date range when you were working in the company. */ diff --git a/src/web/components/thumbnail.astro b/src/web/components/thumbnail.astro new file mode 100644 index 0000000..6d4299c --- /dev/null +++ b/src/web/components/thumbnail.astro @@ -0,0 +1,13 @@ +--- +import Photo from '@/components/photo.astro'; +import type { Photo as PhotoType } from '@/types/shared'; + +interface Props { + src?: PhotoType; + alt: string; +} + +const { src, alt } = Astro.props; +--- + +{src &&