diff --git a/content_tmp.json b/content_tmp.json new file mode 100644 index 0000000..5bf59b4 --- /dev/null +++ b/content_tmp.json @@ -0,0 +1 @@ +BLACK HEART DANCE HOUSE | Школа танцев
Blackheart

404

Страница не найдена

\ No newline at end of file diff --git a/public/images/master-classes/anastasia-chaley-1773587537984.webp b/public/images/master-classes/anastasia-chaley-1773587537984.webp new file mode 100644 index 0000000..d5049d0 Binary files /dev/null and b/public/images/master-classes/anastasia-chaley-1773587537984.webp differ diff --git a/public/images/master-classes/exot-1773584463793.webp b/public/images/master-classes/exot-1773584463793.webp new file mode 100644 index 0000000..b781d92 Binary files /dev/null and b/public/images/master-classes/exot-1773584463793.webp differ diff --git a/public/images/master-classes/exot-1773675117871.webp b/public/images/master-classes/exot-1773675117871.webp new file mode 100644 index 0000000..b781d92 Binary files /dev/null and b/public/images/master-classes/exot-1773675117871.webp differ diff --git a/public/images/news/online-classes-1773605597711.webp b/public/images/news/online-classes-1773605597711.webp new file mode 100644 index 0000000..3c6d4b7 Binary files /dev/null and b/public/images/news/online-classes-1773605597711.webp differ diff --git a/public/images/team/75398-original-1773399182323.webp b/public/images/team/75398-original-1773399182323.webp new file mode 100644 index 0000000..1e0775a Binary files /dev/null and b/public/images/team/75398-original-1773399182323.webp differ diff --git a/public/images/team/angel-1773234723454.webp b/public/images/team/angel-1773234723454.webp new file mode 100644 index 0000000..2950d5a Binary files /dev/null and b/public/images/team/angel-1773234723454.webp differ diff --git a/public/images/team/angel-1773588817170.PNG b/public/images/team/angel-1773588817170.PNG new file mode 100644 index 0000000..05af693 Binary files /dev/null and b/public/images/team/angel-1773588817170.PNG differ diff --git a/public/images/team/angel-1773588817170.webp b/public/images/team/angel-1773588817170.webp new file mode 100644 index 0000000..2950d5a Binary files /dev/null and b/public/images/team/angel-1773588817170.webp differ diff --git a/public/images/team/photo-2025-06-28-23-11-20-1773234496259.webp b/public/images/team/photo-2025-06-28-23-11-20-1773234496259.webp new file mode 100644 index 0000000..22f5e94 Binary files /dev/null and b/public/images/team/photo-2025-06-28-23-11-20-1773234496259.webp differ diff --git a/src/components/sections/MasterClasses.tsx b/src/components/sections/MasterClasses.tsx index a7a0485..72cdded 100644 --- a/src/components/sections/MasterClasses.tsx +++ b/src/components/sections/MasterClasses.tsx @@ -71,12 +71,17 @@ function calcDuration(slot: MasterClassSlot): string { } function isUpcoming(item: MasterClassItem): boolean { - const today = new Date(); - today.setHours(0, 0, 0, 0); - const lastDate = (item.slots ?? []) - .map((s) => parseDate(s.date)) - .reduce((a, b) => (a > b ? a : b), new Date(0)); - return lastDate >= today; + const now = new Date(); + return (item.slots ?? []).some((s) => { + const slotDate = parseDate(s.date); + if (s.startTime) { + const [h, m] = s.startTime.split(":").map(Number); + slotDate.setHours(h, m, 0, 0); + } else { + slotDate.setHours(23, 59, 59, 999); + } + return slotDate > now; + }); } function MasterClassCard({ @@ -90,22 +95,25 @@ function MasterClassCard({ const slotsDisplay = formatSlots(item.slots); return ( -
- {/* Full-bleed image */} - {item.image && ( -
- {item.title} - {/* Dark overlay that intensifies on hover */} -
-
- )} +
+ {/* Full-bleed image or placeholder */} +
+ {item.image ? ( + <> + {item.title} +
+ + ) : ( +
+ )} +
{/* Content overlay at bottom */}
@@ -207,8 +215,8 @@ export function MasterClasses({ data }: MasterClassesProps) { {data.title} - {upcoming.length === 0 ? ( - + + {upcoming.length === 0 ? (

Следите за анонсами мастер-классов в нашем{" "} @@ -222,10 +230,8 @@ export function MasterClasses({ data }: MasterClassesProps) {

-
- ) : ( - -
+ ) : ( +
{upcoming.map((item) => ( ))}
- - )} + )} +