GLOBAL PATCH
This commit is contained in:
1 parent
78b8ff61a7
commit
df3165dac0
31 files changed
+1678
-1323
No files matched your search
@@ -0,0 +1,98 @@
|
||||
.modalRoot :global(.ant-modal-content) {
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
border-radius: 24px;
|
||||
|
||||
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.modalRoot :global(.ant-modal-close) {
|
||||
top: 18px;
|
||||
right: 18px;
|
||||
border-radius: 50%;
|
||||
color: #222;
|
||||
|
||||
}
|
||||
|
||||
.modalRoot :global(.ant-modal-close:hover) {
|
||||
background: #ffffff;
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.modalBox {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 46px 44px 38px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.modalBox::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
border: 1px solid rgba(255, 212, 0, 0.35);
|
||||
border-radius: 24px;
|
||||
}
|
||||
|
||||
.iconWrap {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 78px;
|
||||
height: 78px;
|
||||
margin-bottom: 22px;
|
||||
border-radius: 50%;
|
||||
background: #fff4a8;
|
||||
box-shadow: 0 14px 30px rgba(255, 212, 0, 0.3);
|
||||
}
|
||||
|
||||
.icon {
|
||||
color: #111111;
|
||||
font-size: 42px;
|
||||
}
|
||||
|
||||
.title {
|
||||
max-width: 360px;
|
||||
margin: 0;
|
||||
font-size: 30px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
max-width: 350px;
|
||||
margin: 12px 0 28px;
|
||||
color: #636363;
|
||||
font-size: 16px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.modalRoot :global(.ant-modal) {
|
||||
max-width: calc(100vw - 28px);
|
||||
}
|
||||
|
||||
.modalBox {
|
||||
padding: 40px 24px 30px;
|
||||
}
|
||||
|
||||
.iconWrap {
|
||||
width: 68px;
|
||||
height: 68px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
|
||||
.icon {
|
||||
font-size: 36px;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
margin-bottom: 24px;
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
import { CheckCircleFilled } from "@ant-design/icons";
|
||||
import { Modal } from "antd";
|
||||
import { motion } from "framer-motion";
|
||||
import React from "react";
|
||||
import styles from "./Modal.module.css";
|
||||
import Button from "../Button/Button";
|
||||
|
||||
interface Props {
|
||||
open: boolean;
|
||||
onClose: () => void;
|
||||
}
|
||||
|
||||
const Modalka: React.FC<Props> = ({ open, onClose }) => {
|
||||
return (
|
||||
<Modal
|
||||
open={open}
|
||||
footer={null}
|
||||
onCancel={onClose}
|
||||
centered
|
||||
width={460}
|
||||
rootClassName={styles.modalRoot}
|
||||
>
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 28, scale: 0.96 }}
|
||||
animate={{ opacity: 1, y: 0, scale: 1 }}
|
||||
transition={{ duration: 0.35, ease: "easeOut" }}
|
||||
className={styles.modalBox}
|
||||
>
|
||||
<div className={styles.iconWrap}>
|
||||
<CheckCircleFilled className={styles.icon} />
|
||||
</div>
|
||||
|
||||
<p className={styles.title}>Спасибо за обращение!</p>
|
||||
<p className={styles.subtitle}>
|
||||
Мы свяжемся с вами в ближайшее время. Хорошего дня!
|
||||
</p>
|
||||
|
||||
<Button onClick={onClose} label="Хорошо"/>
|
||||
</motion.div>
|
||||
</Modal>
|
||||
);
|
||||
};
|
||||
|
||||
export default Modalka;
|
||||
Reference in new issue
Block a user