diff --git a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts index 9af2c43..9022792 100644 --- a/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts +++ b/frontend/rabbi_gerzi/cypress/e2e/home.cy.ts @@ -499,28 +499,6 @@ describe('homepage projects grid', () => { cy.contains('Beit Shemesh municipality').should('be.visible') }) }) - - it('uses background images for each project card', () => { - const expectedProjectImages = [ - '/assets/projects/chaburot.webp', - '/assets/projects/pilzno-work-inspired.webp', - '/assets/projects/shul.webp', - '/assets/projects/new-building.webp', - ] - - cy.get('[data-cy="project-card"]').should('have.length', 4) - expectedProjectImages.forEach((expectedProjectImage, projectIndex) => { - cy.get('[data-cy="project-card"]') - .eq(projectIndex) - .then((projectCardElements) => { - const projectCardStyle = getComputedStyle(projectCardElements[0]) - - expect(projectCardStyle.backgroundImage).to.contain( - expectedProjectImage, - ) - }) - }) - }) }) describe('homepage start your journey ctas', () => { diff --git a/frontend/rabbi_gerzi/public/assets/projects/chaburot.webp b/frontend/rabbi_gerzi/public/assets/projects/chaburot.webp deleted file mode 100644 index 3f92f65..0000000 Binary files a/frontend/rabbi_gerzi/public/assets/projects/chaburot.webp and /dev/null differ diff --git a/frontend/rabbi_gerzi/public/assets/projects/new-building.webp b/frontend/rabbi_gerzi/public/assets/projects/new-building.webp deleted file mode 100644 index e351b91..0000000 Binary files a/frontend/rabbi_gerzi/public/assets/projects/new-building.webp and /dev/null 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 deleted file mode 100644 index 39a8eef..0000000 Binary files a/frontend/rabbi_gerzi/public/assets/projects/pilzno-work-inspired.webp and /dev/null differ diff --git a/frontend/rabbi_gerzi/public/assets/projects/shul.webp b/frontend/rabbi_gerzi/public/assets/projects/shul.webp deleted file mode 100644 index 03588f4..0000000 Binary files a/frontend/rabbi_gerzi/public/assets/projects/shul.webp and /dev/null differ diff --git a/frontend/rabbi_gerzi/src/views/HomePage.vue b/frontend/rabbi_gerzi/src/views/HomePage.vue index 73a3869..91503d2 100644 --- a/frontend/rabbi_gerzi/src/views/HomePage.vue +++ b/frontend/rabbi_gerzi/src/views/HomePage.vue @@ -202,8 +202,7 @@ function sponsorLogoDataCy(sponsorGroupIndex: number): string { interface Project { title: string description: string - imagePath: string - fallbackColor: string + accent: string } const projects: Project[] = [ @@ -213,16 +212,14 @@ const projects: Project[] = [ 'Rabbi Gerzi organizes group learning sessions for men and ' + 'women that provide a focused learning environment for ' + 'spiritual growth.', - imagePath: '/assets/projects/chaburot.webp', - fallbackColor: '#6b5b3c', + accent: '#6b5b3c', }, { title: 'Pilzno Work Inspired', description: "Rabbi Gerzi's program that provides the theoretical and " + 'practical frameworks for a healthy relationship to work.', - imagePath: '/assets/projects/pilzno-work-inspired.webp', - fallbackColor: '#4a3a55', + accent: '#4a3a55', }, { title: 'Shul', @@ -230,8 +227,7 @@ 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.', - imagePath: '/assets/projects/shul.webp', - fallbackColor: '#3d4a4b', + accent: '#3d4a4b', }, { title: 'New Building', @@ -239,17 +235,9 @@ 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.', - imagePath: '/assets/projects/new-building.webp', - fallbackColor: '#5a4232', + accent: '#5a4232', }, ] - -function projectCardStyle(project: Project): string { - return [ - `--card-image: url(${project.imagePath})`, - `--card-fallback: ${project.fallbackColor}`, - ].join('; ') -}