diff --git a/frontend/rabbi_gerzi/public/assets/projects/chaburot.webp b/frontend/rabbi_gerzi/public/assets/projects/chaburot.webp new file mode 100644 index 0000000..3f92f65 Binary files /dev/null and b/frontend/rabbi_gerzi/public/assets/projects/chaburot.webp differ diff --git a/frontend/rabbi_gerzi/public/assets/projects/new-building.webp b/frontend/rabbi_gerzi/public/assets/projects/new-building.webp new file mode 100644 index 0000000..e351b91 Binary files /dev/null and b/frontend/rabbi_gerzi/public/assets/projects/new-building.webp differ diff --git a/frontend/rabbi_gerzi/public/assets/projects/pilzno-work-inspired.webp b/frontend/rabbi_gerzi/public/assets/projects/pilzno-work-inspired.webp new file mode 100644 index 0000000..39a8eef Binary files /dev/null and b/frontend/rabbi_gerzi/public/assets/projects/pilzno-work-inspired.webp differ diff --git a/frontend/rabbi_gerzi/public/assets/projects/shul.webp b/frontend/rabbi_gerzi/public/assets/projects/shul.webp new file mode 100644 index 0000000..03588f4 Binary files /dev/null and b/frontend/rabbi_gerzi/public/assets/projects/shul.webp differ diff --git a/frontend/rabbi_gerzi/src/views/HomePage.vue b/frontend/rabbi_gerzi/src/views/HomePage.vue index 91503d2..73a3869 100644 --- a/frontend/rabbi_gerzi/src/views/HomePage.vue +++ b/frontend/rabbi_gerzi/src/views/HomePage.vue @@ -202,7 +202,8 @@ function sponsorLogoDataCy(sponsorGroupIndex: number): string { interface Project { title: string description: string - accent: string + imagePath: string + fallbackColor: string } const projects: Project[] = [ @@ -212,14 +213,16 @@ const projects: Project[] = [ 'Rabbi Gerzi organizes group learning sessions for men and ' + 'women that provide a focused learning environment for ' + 'spiritual growth.', - accent: '#6b5b3c', + imagePath: '/assets/projects/chaburot.webp', + fallbackColor: '#6b5b3c', }, { title: 'Pilzno Work Inspired', description: "Rabbi Gerzi's program that provides the theoretical and " + 'practical frameworks for a healthy relationship to work.', - accent: '#4a3a55', + imagePath: '/assets/projects/pilzno-work-inspired.webp', + fallbackColor: '#4a3a55', }, { title: 'Shul', @@ -227,7 +230,8 @@ const projects: Project[] = [ 'Rabbi Gerzi\u2019s shul in Ramat Beit Shemesh ' + '\u201CPilzno Beis Dovid\u201D provides a warm and enriching ' + 'environment for a diverse community of congregants.', - accent: '#3d4a4b', + imagePath: '/assets/projects/shul.webp', + fallbackColor: '#3d4a4b', }, { title: 'New Building', @@ -235,9 +239,17 @@ const projects: Project[] = [ 'Rabbi Gerzi has received the blessing of the Beit Shemesh ' + 'municipality to develop a new center, equipped with modern ' + 'facilities to support a integrated Torah lifestyle.', - accent: '#5a4232', + imagePath: '/assets/projects/new-building.webp', + fallbackColor: '#5a4232', }, ] + +function projectCardStyle(project: Project): string { + return [ + `--card-image: url(${project.imagePath})`, + `--card-fallback: ${project.fallbackColor}`, + ].join('; ') +}