Update class images to feature new photography across the entire website
Replaces class-specific images with a single garden image and imports the new asset. Replit-Commit-Author: Agent Replit-Commit-Session-Id: d004b9e1-f9be-46e2-acda-f440ccd644a9 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/af8dabca-e746-4e53-9c29-d8d4d9cf30f5/06caff84-bd63-4b19-b1af-45c821567903.jpg
This commit is contained in:
parent
fcdb5e8637
commit
e3865110ab
Binary file not shown.
|
After Width: | Height: | Size: 2.3 MiB |
|
|
@ -1,7 +1,5 @@
|
|||
import { Class } from "@shared/schema";
|
||||
import FadiaGroupClassImage from "../../assets/Fadia-15.jpg";
|
||||
import FadiaSmallGroupClassImage from "../../assets/Fadia-156.jpg";
|
||||
import FadiaPrivateClassImage from "../../assets/Fadia-132.jpg";
|
||||
import FadiaGardenImage from "@assets/fadia-garden_1749836720986.jpg";
|
||||
|
||||
interface ClassCardProps {
|
||||
classData: Class;
|
||||
|
|
@ -34,15 +32,9 @@ export function ClassCard({ classData }: ClassCardProps) {
|
|||
}
|
||||
};
|
||||
|
||||
// Get class image based on class type
|
||||
// Get class image - using the beautiful garden class photo for all types
|
||||
const getClassImage = () => {
|
||||
switch (classData.classType) {
|
||||
case "group": return FadiaGroupClassImage;
|
||||
case "small-group": return FadiaSmallGroupClassImage;
|
||||
case "private": return FadiaPrivateClassImage;
|
||||
case "online": return FadiaSmallGroupClassImage; // Reusing this image for online classes
|
||||
default: return FadiaGroupClassImage;
|
||||
}
|
||||
return FadiaGardenImage;
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in New Issue