добавил ветку main-page

This commit is contained in:
Joe_Peach committed 2025-11-20 15:42:09 +03:00
1 parent 1fe3ba2ba5
commit 8dc704c466
41 files changed
+1988

No files matched your search

@@ -0,0 +1,95 @@
.wrapper {
width: 100%;
position: relative;
}
.carousel {
width: 100%;
height: 100%;
}
.slide {
position: relative;
width: 100%;
height: 700px;
overflow: hidden;
display: flex;
justify-content: space-between;
align-items: center;
background: var(--darkblue);
}
.textBlock {
position: absolute;
left: 80px;
top: 180px;
color: white;
max-width: 500px;
z-index: 2;
}
.textBlock h1 {
font-size: 36px;
font-weight: 700;
line-height: 1.3;
}
.textBlock h2 {
font-size: 20px;
font-weight: 400;
opacity: 0.8;
}
.button {
margin-top: 30px;
background: #ffd400 !important;
border: none !important;
color: black !important;
font-weight: 600;
padding: 0 26px;
height: 48px;
}
.image {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
/* --- Mobile Adaptive --- */
@media (max-width: 768px) {
.slide {
height: 500px;
}
.textBlock {
left: 20px;
top: 120px;
max-width: 300px;
}
.textBlock h1 {
font-size: 22px;
}
.textBlock h2 {
font-size: 16px;
}
.button {
height: 42px;
padding: 0 20px;
}
}
+73
View File
@@ -0,0 +1,73 @@
import styles from './Banner.module.css'
import React from "react";
import { Carousel } from "antd";
import Button from '../Button/Button.tsx';
export interface SlideItem {
id: number;
image: string;
title: string;
subtitle: string;
description: string;
}
const slides: SlideItem[] = [
{
id: 1,
image: "/images/banner1.jpg",
title: "ПРОИЗВОДСТВО",
subtitle: "ЛЫЖНЫХ СМАЗОК, АКСЕСУАРОВ И ПРОДУКЦИИ",
description: "ДЛЯ ЗИМНИХ ВИДОВ СПОРТА",
},
{
id: 2,
image: "/images/banner2.jpg",
title: "ПРОИЗВОДСТВО",
subtitle: "ЛЫЖНЫХ СМАЗОК, АКСЕСУАРОВ И ПРОДУКЦИИ",
description: "ДЛЯ ЗИМНИХ ВИДОВ СПОРТА",
},
{
id: 3,
image: "/images/banner3.jpg",
title: "ПРОИЗВОДСТВО",
subtitle: "ЛЫЖНЫХ СМАЗОК, АКСЕСУАРОВ И ПРОДУКЦИИ",
description: "ДЛЯ ЗИМНИХ ВИДОВ СПОРТА",
},
];
const BannerSlider: React.FC = () => {
const handleClick = () => {
console.log('Кнопка нажата!');
};
return (
<div className={styles.wrapper}>
<Carousel autoplay dots className={styles.carousel}>
{slides.map((slide) => (
<div key={slide.id}>
<div className={styles.slide}>
<div className={styles.textBlock}>
<h2>{slide.title}</h2>
<h1>
{slide.subtitle}
<br /> {slide.description}
</h1>
<Button
label="СМОТРЕТЬ КАТАЛОГ"
onClick={handleClick}
/>
</div>
<img src={slide.image} alt="banner" className={styles.image} />
</div>
</div>
))}
</Carousel>
</div>
);
};
export default BannerSlider;
@@ -0,0 +1,22 @@
.button {
background: #ffd400;
border: none;
color: #000;
font-weight: 600;
padding: 0 50px;
height: 50px;
border-radius: 50px;
cursor: pointer;
transition: 0.25s ease;
font-size: 15px;
}
.button:hover {
background: #ffdf3e;
}
.button:active {
transform: scale(0.97);
}
+21
View File
@@ -0,0 +1,21 @@
import React from "react";
import styles from "./Button.module.css";
interface ButtonProps {
label: string;
onClick?: () => void;
className?: string;
}
const Button: React.FC<ButtonProps> = ({ label, onClick, className }) => {
return (
<button className={`${styles.button} ${className || ""}`} onClick={onClick}>
{label}
</button>
);
};
export default Button;
@@ -0,0 +1,127 @@
.wrapper {
width: 100%;
margin-top: 40px;
}
.header {
font-size: 24px;
font-weight: 700;
margin-bottom: 20px;
}
.grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-auto-rows: 230px;
gap: 0;
}
.card {
position: relative;
overflow: hidden;
border: 1px solid #ececec;
}
.image {
width: 100%;
height: 100%;
object-fit: cover;
}
.highlight {
grid-column: span 2;
grid-row: span 2;
}
.overlay {
position: absolute;
left: 40px;
bottom: 40px;
color: white;
max-width: 320px;
}
.overlay h3 {
font-size: 22px;
font-weight: 700;
}
.overlay h4 {
margin-top: 4px;
font-size: 16px;
opacity: 0.9;
}
.button {
margin-top: 20px;
background: #ffd400 !important;
color: black !important;
border: none !important;
font-weight: 600;
}
.titleSmall {
position: absolute;
bottom: 15px;
left: 15px;
font-size: 15px;
font-weight: 600;
}
.card:hover .image {
transform: scale(1.05);
transition: transform 0.4s ease;
}
.card:hover {
cursor: pointer;
background-color: #ffd400;
}
.highlight:hover .overlay h3,
.highlight:hover .overlay h4 {
transform: translateX(4px);
transition: all 0.3s ease;
}
.titleSmall {
transition: transform 0.3s ease, opacity 0.3s ease;
}
.card:hover .titleSmall {
transform: translateY(-4px);
opacity: 0.9;
}
/* Mobile */
@media (max-width: 900px) {
.grid {
grid-template-columns: repeat(2, 1fr);
}
.highlight {
grid-column: span 2;
}
}
@media (max-width: 600px) {
.grid {
grid-template-columns: 1fr;
}
.highlight {
grid-column: span 1;
grid-row: span 1;
}
}
@@ -0,0 +1,85 @@
import React from "react";
import styles from "./Categories.module.css";
import Button from "../Button/Button";
interface CategoryItem {
id: number;
title: string;
subtitle?: string;
image: string;
highlight?: boolean;
}
const categories: CategoryItem[] = [
{
id: 1,
title: "СРЕДСТВА",
subtitle: "ДЛЯ УХОДА",
image: "/images/cat-care.jpg",
highlight: true,
},
{ id: 2, title: "СМАЗКИ СКОЛЬЖЕНИЯ", subtitle: "(ПАРАФИНЫ)", image: "/images/cat-paraffin.jpg" },
{ id: 3, title: "МАЗИ ДЕРЖАНИЯ", image: "/images/cat-hold.jpg" },
{ id: 4, title: "СМЫВКА", image: "/images/cat-wash.jpg" },
{ id: 5, title: "СМОЛА", image: "/images/cat-resin.jpg" },
{ id: 6, title: "СКРЕБКИ", image: "/images/cat-scraper.jpg" },
{ id: 7, title: "ПРОБКИ / РАСТИРКИ", image: "/images/cat-cork.jpg" },
{
id: 8,
title: "ПОЛЕЗНЫЕ",
subtitle: "АКССЕСУАРЫ",
highlight: true,
image: "/images/cat-accessories.jpg",
},
{ id: 9, title: "СВЯЗКИ И СКРЕПКИ ДЛЯ ЛЫЖ", image: "/images/cat-straps.jpg" },
{ id: 10, title: "ЧЕХЛЫ, СУМКИ", image: "/images/cat-bags.jpg" },
];
const CategoriesGrid: React.FC = () => {
const handleClick = () => {
console.log('Кнопка нажата!');
};
return (
<div className={styles.wrapper}>
<h2 className={styles.header}>КАТЕГОРИИ ТОВАРОВ</h2>
<div className={styles.grid}>
{categories.map((cat) => (
<div
key={cat.id}
className={`${styles.card} ${cat.highlight ? styles.highlight : ""}`}
>
<img src={cat.image} className={styles.image} alt={cat.title} />
{cat.highlight && (
<div className={styles.overlay}>
<h3>{cat.title}</h3>
{cat.subtitle && <h4>{cat.subtitle}</h4>}
<Button
label="СМОТРЕТЬ КАТАЛОГ"
onClick={handleClick}
/>
</div>
)}
{!cat.highlight && (
<div className={styles.titleSmall}>
<span>{cat.title}</span>
{cat.subtitle && <span>{cat.subtitle}</span>}
</div>
)}
</div>
))}
</div>
</div>
);
};
export default CategoriesGrid;
@@ -0,0 +1,81 @@
.wrapper {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0px 0;
}
.left {
flex: 1;
padding-left: 0px;
}
.right {
flex: 1;
position: relative;
width: 60%;
height: 100%;
max-height: 600px;
}
.carousel {
width: 100%;
height: 100%; /* Добавьте высоту 100% */
}
.slide {
position: relative;
width: 100%;
height: 100%;
}
.image {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center bottom;
display: block;
}
.label {
position: absolute;
bottom: 20px;
left: 40px;
color: white;
font-size: 22px;
}
.arrows {
position: absolute;
right: 30px;
bottom: 30px;
display: flex;
gap: 16px;
}
.arrow {
width: 48px;
height: 48px;
background: white;
border: 1px solid #ccc;
font-size: 22px;
cursor: pointer;
}
@media (max-width: 900px) {
.wrapper {
flex-direction: column;
text-align: center;
}
.left {
padding-left: 0;
}
.right {
margin-top: 30px;
height: 300px; /* Меньшая высота для мобильных */
width: 100%;
}
}
@@ -0,0 +1,88 @@
import React, { useRef, useState } from "react";
import styles from "./ContactProduct.module.css";
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";
interface ProductionSlide {
id: number;
image: string;
label: string;
}
const slides: ProductionSlide[] = [
{
id: 1,
image: "/images/prod1.jpg",
label: "Аэрозольная упаковка",
},
{
id: 2,
image: "/images/prod2.jpg",
label: "Металлические баллоны",
},
];
const ProductionBanner: React.FC = () => {
const [open, setOpen] = useState(false);
const handleClick = () => {
console.log('Кнопка нажата!');
};
const carouselRef = useRef<any>(null);
console.log('ProductionBanner render, open:', open);
return (
<div className={styles.wrapper}>
<ModalRequestForm open={open} onClose={() => setOpen(false)} />
<div className={styles.left}>
<h2 className={styles.title}>КОНТРАКТНОЕ</h2>
<h1 className={styles.subtitle}>ПРОИЗВОДСТВО</h1>
<Button
label="СДЕЛАТЬ ЗАПРОС"
onClick={() => setOpen(true)}
/>
</div>
<div className={styles.right}>
<Carousel
ref={carouselRef}
dots={false}
effect="scrollx"
className={styles.carousel}
>
{slides.map((s) => (
<div key={s.id} className={styles.slide}>
<img src={imageUrl} className={styles.image} alt="prod" />
<div className={styles.label}>{s.label}</div>
</div>
))}
</Carousel>
<div className={styles.arrows}>
<button
className={styles.arrow}
onClick={() => carouselRef.current?.prev()}
>
←
</button>
<button
className={styles.arrow}
onClick={() => carouselRef.current?.next()}
>
→
</button>
</div>
</div>
</div>
);
};
export default ProductionBanner;
@@ -0,0 +1,92 @@
.footer {
color: #bfbfbf;
background: #000;
padding: 60px 0;
}
.container {
width: 90%;
margin: 0 auto;
display: flex;
align-items: flex-start;
justify-content: space-between;
}
.left {
display: flex;
flex-direction: column;
gap: 25px;
}
.logo {
width: 160px;
opacity: 0.9;
}
.copy {
font-size: 14px;
opacity: 0.7;
}
.center {
display: flex;
flex-direction: column;
gap: 14px;
font-size: 16px;
}
.center a {
cursor: pointer;
transition: 0.3s ease;
}
.center a:hover {
color: #fff;
}
.right {
text-align: right;
}
.phone {
color: #fff;
font-size: 20px;
font-weight: 600;
}
.mail {
margin-top: 6px;
display: inline-block;
font-size: 16px;
color: #bfbfbf;
}
.mail:hover {
color: #fff;
}
/* Mobile */
@media (max-width: 900px) {
.container {
flex-direction: column;
gap: 40px;
text-align: center;
}
.right {
text-align: center;
}
}
+32
View File
@@ -0,0 +1,32 @@
import React from "react";
import styles from "./Footer.module.css";
import { NavLink } from "react-router-dom";
const Footer: React.FC = () => {
return (
<footer className={styles.footer}>
<div className={styles.container}>
<div className={styles.left}>
<img src="/images/logo-footer.png" alt="logo" className={styles.logo} />
<span className={styles.copy}>ТРК Спринт. 2017-2025 ©</span>
</div>
<div className={styles.center}>
<NavLink to="about" >O КОМПАНИИ</NavLink>
<NavLink to="products" >ПРОДУКЦИЯ</NavLink>
<a>ПРАЙС-ЛИСТ</a>
</div>
<div className={styles.right}>
<div className={styles.phone}>+7 910 121 09 62</div>
<a className={styles.mail}>rkplastic@mail.ru</a>
</div>
</div>
</footer>
);
};
export default Footer;
@@ -0,0 +1,146 @@
.header {
/*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
background-color: white;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
padding: 0;
position: fixed;
top: 0;
z-index: 1000;
backdrop-filter: blur(10px);
width: 100%;
}
.phoneBlock a{
font-size: 10px;
}
.headerMenu {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 auto;
padding: 0 20px;
}
.headerMenu a {
position: relative;
color: black;
text-decoration: none;
padding: 1.8rem 2rem;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight: 500;
font-size: 1.1rem;
transition: all 0.3s ease;
overflow: hidden;
}
.headerMenu a::before {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 3px;
background: linear-gradient(90deg, var(--lavander), var(--light-blue));
transition: all 0.3s ease;
transform: translateX(-50%);
}
.headerMenu a::after {
content: '';
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
transition: left 0.5s ease;
}
.headeLogo {
display: flex;
align-items: center;
gap: 12px;
color: white;
text-decoration: none;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-weight: 700;
font-size: 1.4rem;
transition: all 0.3s ease;
}
.logoImage {
height: 80px;
border-radius: 8px;
object-fit: contain;
transition: all 0.3s ease;
/*filter: brightness(0) invert(1);*/
}
.headerMenu a:hover {
background: rgba(255, 255, 255, 0.1);
transform: translateY(-2px);
}
.headerMenu a:hover::before {
width: 80%;
}
.headerMenu a:hover::after {
left: 100%;
}
.headerMenu a.active {
background: rgba(255, 255, 255, 0.15);
font-weight: 600;
}
.headerMenu a.active::before {
width: 100%;
background: linear-gradient(90deg, var(--lavander), var(--light-blue));
}
/* Анимация при загрузке */
.headerMenu a {
animation: slideIn 0.6s ease forwards;
opacity: 0;
transform: translateY(-20px);
}
.headerMenu a:nth-child(1) { animation-delay: 0.1s; }
.headerMenu a:nth-child(2) { animation-delay: 0.2s; }
.headerMenu a:nth-child(3) { animation-delay: 0.3s; }
@keyframes slideIn {
to {
opacity: 1;
transform: translateY(0);
}
}
/* Адаптивность */
@media (max-width: 768px) {
.headerMenu {
flex-direction: column;
padding: 0;
}
.headerMenu a {
width: 100%;
text-align: center;
padding: 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.headerMenu a:last-child {
border-bottom: none;
}
}
/* Эффект пульсации при наведении на кнопку выхода */
.headerMenu a[onclick]:hover {
background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}
.headerMenu a[onclick]:hover::before {
background: linear-gradient(90deg, #ffd89b, #ff6b6b);
}
+26
View File
@@ -0,0 +1,26 @@
import { NavLink } from "react-router-dom";
import styles from './Header.module.css'
import logo from '../../assets/images/Logo.jpg'
const Header = () =>{
return(
<nav className={styles.header}>
<div className={styles.headerMenu}>
<div className={styles.headeLogo}>
<img src={logo} alt="logo" className={styles.logoImage}/>
<div className={styles.phoneBlock}>
<a href="" className={styles.phoneBlock}>+7 905 010 58 40</a>
</div>
</div>
<div className={styles.headerNav}>
<NavLink to="/" end >ГЛАВНАЯ</NavLink>
<NavLink to="about" >O КОМПАНИИ</NavLink>
<NavLink to="products" >ПРОДУКЦИЯ</NavLink>
</div>
</div>
</nav>
)
}
export default Header;
@@ -0,0 +1,68 @@
.modalBox {
padding: 10px 20px 30px;
}
.title {
text-align: center;
font-size: 28px;
font-weight: 700;
}
.subtitle {
text-align: center;
margin-top: 6px;
margin-bottom: 26px;
color: #666;
font-size: 16px;
}
.form {
display: flex;
flex-direction: column;
gap: 16px;
}
.field {
position: relative;
}
.input {
width: 93%;
padding: 18px;
font-size: 18px;
border-radius: 12px;
border: 1px solid #ddd;
background: #f9f9f9;
outline: none;
transition: 0.2s;
}
.input:focus {
border-color: #ffd400;
background: white;
}
.textarea {
height: 120px;
resize: none;
padding: 18px;
border-radius: 12px;
border: 1px solid #ddd;
background: #f9f9f9;
font-size: 18px;
}
.error {
font-size: 13px;
color: #d33;
position: absolute;
bottom: -18px;
left: 5px;
}
.button {
margin-top: 10px;
width: 100%;
height: 58px;
font-size: 18px;
}
@@ -0,0 +1,202 @@
import React from "react";
import { Modal } from "antd";
import { motion } from "framer-motion";
import InputMask from "react-input-mask";
import { useForm } from "react-hook-form";
import * as yup from "yup";
import { yupResolver } from "@hookform/resolvers/yup";
import styles from "./ModalRequestForm.module.css";
import Button from "../Button/Button";
// ✅ Схема валидации
const schema = yup.object().shape({
name: yup.string().required("Введите имя"),
email: yup.string().email("Некорректный Email").required("Введите Email"),
phone: yup.string().min(18, "Введите корректный номер").required("Введите номер"),
message: yup.string().nullable(),
});
interface Props {
open: boolean;
onClose: () => void;
}
interface FormData {
name: string;
email: string;
phone: string;
message?: string | null;
}
const ModalRequestForm: React.FC<Props> = ({ open, onClose }) => {
console.log('ModalRequestForm render, open:', open);
const {
register,
handleSubmit,
formState: { errors, isSubmitting },
reset,
} = useForm({ resolver: yupResolver(schema) });
const handlePhoneInput = (e: React.ChangeEvent<HTMLInputElement>) => {
let value = e.target.value.replace(/\D/g, '');
if (value.startsWith('7') || value.startsWith('8')) {
value = value.substring(1);
}
let formattedValue = '+7 ';
if (value.length > 0) {
formattedValue += '(' + value.substring(0, 3);
}
if (value.length > 3) {
formattedValue += ') ' + value.substring(3, 6);
}
if (value.length > 6) {
formattedValue += '-' + value.substring(6, 8);
}
if (value.length > 8) {
formattedValue += '-' + value.substring(8, 10);
}
e.target.value = formattedValue;
};
// ✅ Отправка данных на бэкенд
const sendToBackend = async (data: FormData): Promise<boolean> => {
try {
const response = await fetch(`/api/requests`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
...data,
source: "website-form",
timestamp: new Date().toISOString(),
}),
});
if (!response.ok) {
throw new Error(`HTTP error! status: ${response.status}`);
}
const result = await response.json();
return result.success;
} catch (error) {
console.error("Error sending request:", error);
throw new Error("Не удалось отправить заявку. Попробуйте позже.");
}
};
// ✅ Submit
const onSubmit = async (data: FormData) => {
try {
await sendToBackend(data);
// Показываем уведомление об успехе
Modal.success({
title: "Заявка отправлена!",
content: "Наш менеджер свяжется с вами в ближайшее время.",
okText: "Хорошо",
});
reset();
onClose();
} catch (error) {
// Показываем ошибку
Modal.error({
title: "Ошибка",
content: error instanceof Error ? error.message : "Произошла неизвестная ошибка",
okText: "Понятно",
});
}
};
return (
<Modal
open={open}
footer={null}
onCancel={onClose}
centered
width={620}
closable={!isSubmitting}
maskClosable={!isSubmitting}
>
<motion.div
initial={{ opacity: 0, y: 40 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.35 }}
className={styles.modalBox}
>
<h2 className={styles.title}>Контрактное производство</h2>
<p className={styles.subtitle}>
Заполните форму ниже, и наш менеджер свяжется с Вами
</p>
<form onSubmit={handleSubmit(onSubmit)} className={styles.form}>
<div className={styles.field}>
<input
className={styles.input}
placeholder="Введите имя *"
{...register("name")}
disabled={isSubmitting}
/>
{errors.name && <span className={styles.error}>{errors.name.message}</span>}
</div>
<div className={styles.field}>
<input
className={styles.input}
placeholder="Введите email *"
{...register("email")}
disabled={isSubmitting}
/>
{errors.email && <span className={styles.error}>{errors.email.message}</span>}
</div>
{/*<div className={styles.field}>
<InputMask
mask="+7 (999) 999-99-99"
{...register("phone")}
disabled={isSubmitting}
>
{(inputProps: any) => (
<input
className={styles.input}
placeholder="Введите № телефона *"
{...inputProps}
/>
)}
</InputMask>
{errors.phone && <span className={styles.error}>{errors.phone.message}</span>}
</div>*/}
<div className={styles.field}>
<input
className={styles.input}
placeholder="+7 (___) ___-__-__ *"
{...register("phone")}
onInput={handlePhoneInput}
disabled={isSubmitting}
/>
{errors.phone && <span className={styles.error}>{errors.phone.message}</span>}
</div>
<textarea
className={styles.textarea}
placeholder="Задайте свой вопрос"
{...register("message")}
disabled={isSubmitting}
/>
<Button
label={isSubmitting ? "ОТПРАВКА..." : "СДЕЛАТЬ ЗАПРОС"}
className={styles.button}
/>
</form>
</motion.div>
</Modal>
);
};
export default ModalRequestForm;
@@ -0,0 +1,125 @@
.phoneIcon {
font-size: 28px;
color: #ffd400;
}
.wrapper {
width: 100%;
background-image: url("");
background-size: cover;
background-position: center;
padding: 120px 0;
}
.inner {
width: 90%;
max-width: 1400px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.left {
max-width: 45%;
}
.title {
font-size: 42px;
font-weight: 700;
color: #1a1a1a;
margin-bottom: 25px;
}
.text {
font-size: 18px;
line-height: 1.6;
color: #2a2a2a;
}
.right {
max-width: 50%;
text-align: left;
}
.phoneBlock {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 10px;
}
.phoneNumber {
font-size: 25px;
font-weight: 600;
}
.phoneInfo {
margin-left: 44px;
margin-top: -5px;
font-size: 14px;
color: #555;
}
.formLabel {
margin-top: 40px;
font-size: 18px;
color: #333;
}
.form {
margin-top: 20px;
display: flex;
align-items: center;
gap: 20px;
}
.input {
flex: 1;
padding: 18px 24px;
border-radius: 50px;
border: none;
font-size: 18px;
outline: none;
}
.button {
height: 56px !important;
padding: 0 36px !important;
border-radius: 50px !important;
}
/* --- MOBILE --- */
@media (max-width: 992px) {
.inner {
flex-direction: column;
text-align: center;
}
.left,
.right {
max-width: 100%;
text-align: center;
}
.phoneBlock {
justify-content: center;
}
.phoneInfo {
margin-left: 0;
}
.form {
flex-direction: column;
}
.input {
width: 100%;
}
.button {
width: 100%;
}
}
@@ -0,0 +1,59 @@
import React from "react";
import styles from "./QuestionsBlock.module.css";
import Button from "../Button/Button";
import { PhoneOutlined } from "@ant-design/icons";
const QuestionsBlock: React.FC = () => {
const handleClick = () => {
console.log('Кнопка нажата!');
};
return (
<section className={styles.wrapper}>
<div className={styles.inner}>
{/* LEFT TEXT */}
<div className={styles.left}>
<h2 className={styles.title}>ЕСТЬ ВОПРОСЫ?</h2>
<p className={styles.text}>
Мы готовы ответить на ваши вопросы <br />
и предоставить всю необходимую информацию <br />
о сотрудничестве и товаре.
</p>
</div>
{/* RIGHT CONTENT */}
<div className={styles.right}>
<div className={styles.phoneBlock}>
<PhoneOutlined className={styles.phoneIcon} />
<span className={styles.phoneNumber}>8 800 707 25 58</span>
<div className={styles.phoneInfo}>
Звоните с понедельника по пятницу <br /> c 09:00 до 18:00 (по Москве)
</div>
</div>
<p className={styles.formLabel}>
Или оставьте заявку и мы вам перезвоним
</p>
{/* FORM */}
<div className={styles.form}>
<input
type="text"
placeholder="+7 (___) ___-__-__"
className={styles.input}
/>
<Button
label="ОТПРАВИТЬ"
onClick={handleClick}
/>
</div>
</div>
</div>
</section>
);
};
export default QuestionsBlock;