h2 styles changeg
This commit is contained in:
parent
28b0025500
commit
b643bcfe9f
|
|
@ -71,6 +71,7 @@ export const HomeTimer: FC<Props> = ({ className }) => {
|
||||||
|
|
||||||
return () => clearInterval(timerInterval);
|
return () => clearInterval(timerInterval);
|
||||||
}, [targetDate]); // Убрали зависимость от timeLeft
|
}, [targetDate]); // Убрали зависимость от timeLeft
|
||||||
|
|
||||||
const {
|
const {
|
||||||
title,
|
title,
|
||||||
days: daysLabel,
|
days: daysLabel,
|
||||||
|
|
@ -87,10 +88,12 @@ export const HomeTimer: FC<Props> = ({ className }) => {
|
||||||
seconds: string;
|
seconds: string;
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<section className={cn("container py-10", className)}>
|
<section className={cn("", className)}>
|
||||||
<h2 className="h2 text-center mb-10">{title}</h2>
|
<h3 className="sm:text-[28px] text-base sm:leading-8 text-right mb-6 !text-[#FAD8DB]">
|
||||||
|
{title}
|
||||||
|
</h3>
|
||||||
|
|
||||||
<div className="grid grid-cols-4 gap-6 place-items-center">
|
<div className="grid grid-cols-4 max-w-[392px] gap-6 items-end place-items-center">
|
||||||
<TimerItem
|
<TimerItem
|
||||||
value={timeLeft.days}
|
value={timeLeft.days}
|
||||||
prevValue={prevValues.days || timeLeft.days}
|
prevValue={prevValues.days || timeLeft.days}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue