добавил картинок и заголовки

This commit is contained in:
Joe_Peach committed 2025-11-29 21:02:49 +03:00
1 parent 0e704bc6a0
commit e3fc84a637
12 files changed
+35 -33

No files matched your search

@@ -4,6 +4,8 @@ import Button from "../Button/Button";
import { Carousel } from "antd";
import ModalRequestForm from "../ModalRequestForm/ModalRequestForm";
const imageUrl = "http://sprint-pro.com/images/banners/slide1/t1.png";
import image1 from "../../assets/images/mainPage/_.jpg"
import image2 from "../../assets/images/mainPage/orig.jpg"
interface ProductionSlide {
id: number;
@@ -14,13 +16,13 @@ interface ProductionSlide {
const slides: ProductionSlide[] = [
{
id: 1,
image: "/images/prod1.jpg",
label: "Аэрозольная упаковка",
image: image1,
label: ".",
},
{
id: 2,
image: "/images/prod2.jpg",
label: "Металлические баллоны",
image: image2,
label: ".",
},
];
@@ -59,7 +61,7 @@ const ProductionBanner: React.FC = () => {
>
{slides.map((s) => (
<div key={s.id} className={styles.slide}>
<img src={imageUrl} className={styles.image} alt="prod" />
<img src={s.image} className={styles.image} alt="prod" />
<div className={styles.label}>{s.label}</div>
</div>
))}