style fixes
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.content__container {
|
.content__container {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
width: 400px;
|
width: 400px;
|
||||||
@@ -20,6 +21,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.popup {
|
.popup {
|
||||||
|
border-radius: 4px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
padding: 56px;
|
padding: 56px;
|
||||||
@@ -49,6 +51,8 @@
|
|||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@media screen and (max-width: 1440px) {
|
@media screen and (max-width: 1440px) {
|
||||||
.card-title {
|
.card-title {
|
||||||
margin: 22px 0 40px 0;
|
margin: 22px 0 40px 0;
|
||||||
|
|||||||
+1
-1
@@ -47,7 +47,7 @@ const App: React.FC = () => {
|
|||||||
<Route exact path="/">
|
<Route exact path="/">
|
||||||
<Header></Header>
|
<Header></Header>
|
||||||
<div className="main">
|
<div className="main">
|
||||||
<h3 className="card-title">{t("demo-title")}</h3>
|
<h2 className="card-title">{t("demo-title")}</h2>
|
||||||
<div className="card-container">
|
<div className="card-container">
|
||||||
{cards.map((i: ICards) => (
|
{cards.map((i: ICards) => (
|
||||||
<Card onClick={() => handleCards(i)} key={i._id} item={i}></Card>
|
<Card onClick={() => handleCards(i)} key={i._id} item={i}></Card>
|
||||||
|
|||||||
@@ -2,8 +2,13 @@ import "./LoadingPopup.css";
|
|||||||
import { useHistory } from "react-router-dom";
|
import { useHistory } from "react-router-dom";
|
||||||
|
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { useAppDispatch, useAppSelector } from "hooks/redux";
|
||||||
|
|
||||||
|
|
||||||
|
export const LoadingPopup: React.FC<any> = ({ }) => {
|
||||||
|
|
||||||
|
const { currentCard } = useAppSelector((state) => state.cardReducer);
|
||||||
|
|
||||||
export const LoadingPopup: React.FC<any> = ({ logo }) => {
|
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
@@ -11,7 +16,7 @@ export const LoadingPopup: React.FC<any> = ({ logo }) => {
|
|||||||
<div className="popup popup-type-loader">
|
<div className="popup popup-type-loader">
|
||||||
<div className="loading-logo-container">
|
<div className="loading-logo-container">
|
||||||
<div className="popup-img-container">
|
<div className="popup-img-container">
|
||||||
<img className="popup-logo" src={logo} alt="лого" />
|
<img className="popup-logo" src={currentCard.image.logo} alt="лого" />
|
||||||
</div>
|
</div>
|
||||||
<span className="loading-caption">Пожалуйста подождите</span>
|
<span className="loading-caption">Пожалуйста подождите</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -25,11 +25,11 @@ export const PopupConnect: React.FC<any> = ({ onConnect, logo, isLoading }) => {
|
|||||||
<img className="popup-logo" src={logo} alt="лого" />
|
<img className="popup-logo" src={logo} alt="лого" />
|
||||||
</div>
|
</div>
|
||||||
<div className="popup-button-container">
|
<div className="popup-button-container">
|
||||||
<button onClick={handleConnect} className="button-primary">
|
<button onClick={handleConnect} className="button button-primary">
|
||||||
{t("popup-main-btn-start")}
|
{t("popup-main-btn-start")}
|
||||||
</button>
|
</button>
|
||||||
<div className="popup-line"></div>
|
<div className="line"></div>
|
||||||
<button onClick={() => history.goBack()} className="button-secondary">
|
<button onClick={() => history.goBack()} className="button button-type-small">
|
||||||
{t("popup-main-select")}
|
{t("popup-main-select")}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ export const Card: React.FC<any> = ({ item, onClick }) => {
|
|||||||
<div className="card-header">
|
<div className="card-header">
|
||||||
<img src={iconButton} className="card-icon" alt="лого" />
|
<img src={iconButton} className="card-icon" alt="лого" />
|
||||||
<div className="card-name">
|
<div className="card-name">
|
||||||
<p className="caption-name">{currentLang === "ru" ? item.title_full.ru : item.title_full.en}</p>
|
<h2 className="caption-name">{currentLang === "ru" ? item.title_full.ru : item.title_full.en}</h2>
|
||||||
<p className="card-location">{currentLang === "ru" ? item.location.ru : item.location.en}</p>
|
<h2 className="card-location">{currentLang === "ru" ? item.location.ru : item.location.en}</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="card-description-block">
|
<div className="card-description-block">
|
||||||
|
|||||||
@@ -2,6 +2,11 @@
|
|||||||
width: 312px;
|
width: 312px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.calendar-title {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
.weekday-table {
|
.weekday-table {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ export const CalendarComponent: React.FC<any> = ({ time, pickedTime }) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="calendar-container">
|
<div className="calendar-container">
|
||||||
<h3 className="plan-title">Выберите дату.</h3>
|
<h3 className="title-planning calendar-title">Выберите <br></br> дату.</h3>
|
||||||
<div className="calendar">
|
<div className="calendar">
|
||||||
<div className="calendar-header">
|
<div className="calendar-header">
|
||||||
<img
|
<img
|
||||||
|
|||||||
@@ -22,12 +22,10 @@ export const PlanComponent: React.FC<any> = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="content-container-plan">
|
<div className="content-container-plan">
|
||||||
<img alt="logo" src={logo} className="plan-logo"></img>
|
|
||||||
<div className="calendar-position">
|
<div className="calendar-position">
|
||||||
<AnimatePresence mode="wait">
|
<AnimatePresence mode="wait">
|
||||||
{isCalendar && (
|
{isCalendar && (
|
||||||
<motion.div
|
<motion.div
|
||||||
style={{ height: "560px" }}
|
|
||||||
key={1}
|
key={1}
|
||||||
variants={popupAnimation}
|
variants={popupAnimation}
|
||||||
initial={"hidden"}
|
initial={"hidden"}
|
||||||
@@ -39,7 +37,6 @@ export const PlanComponent: React.FC<any> = () => {
|
|||||||
)}
|
)}
|
||||||
{isTimepicker && (
|
{isTimepicker && (
|
||||||
<motion.div
|
<motion.div
|
||||||
style={{ height: "560px" }}
|
|
||||||
key={2}
|
key={2}
|
||||||
variants={popupAnimation}
|
variants={popupAnimation}
|
||||||
initial={"hidden"}
|
initial={"hidden"}
|
||||||
@@ -51,7 +48,6 @@ export const PlanComponent: React.FC<any> = () => {
|
|||||||
)}
|
)}
|
||||||
{isForm && (
|
{isForm && (
|
||||||
<motion.div
|
<motion.div
|
||||||
style={{ height: "560px" }}
|
|
||||||
key={3}
|
key={3}
|
||||||
variants={popupAnimation}
|
variants={popupAnimation}
|
||||||
initial={"hidden"}
|
initial={"hidden"}
|
||||||
@@ -63,7 +59,6 @@ export const PlanComponent: React.FC<any> = () => {
|
|||||||
)}
|
)}
|
||||||
{isDone && (
|
{isDone && (
|
||||||
<motion.div
|
<motion.div
|
||||||
style={{ height: "560px" }}
|
|
||||||
key={4}
|
key={4}
|
||||||
variants={popupAnimation}
|
variants={popupAnimation}
|
||||||
initial={"hidden"}
|
initial={"hidden"}
|
||||||
@@ -77,7 +72,7 @@ export const PlanComponent: React.FC<any> = () => {
|
|||||||
{!isDone && (
|
{!isDone && (
|
||||||
<>
|
<>
|
||||||
<div className="line line-calendar"></div>
|
<div className="line line-calendar"></div>
|
||||||
<button className="button button-type-small">
|
<button style={{height: '32px'}} className="button button-type-small">
|
||||||
На сайт жилого комплекса
|
На сайт жилого комплекса
|
||||||
</button>
|
</button>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export const TimepickerComponent: React.FC<any> = ({ time }) => {
|
|||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<div className="calendar-container">
|
<div className="calendar-container">
|
||||||
<h3 className="plan-title plan-title-plan">Выберите время.</h3>
|
<h3 style={{margin:"0"}} className="title-planning">Выберите <br></br> время.</h3>
|
||||||
<button
|
<button
|
||||||
onClick={() => handleReturn()}
|
onClick={() => handleReturn()}
|
||||||
style={{ width: "120px", padding: "4px 16px 4px 4px", height: "32px" }}
|
style={{ width: "120px", padding: "4px 16px 4px 4px", height: "32px" }}
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ export const PopupExit: React.FC<TSidebarPopup> = ({ setClose, onExit }) => {
|
|||||||
<div className="popup exit-popup-container popup">
|
<div className="popup exit-popup-container popup">
|
||||||
<div className="popup-position-container">
|
<div className="popup-position-container">
|
||||||
<div className="mobile-users-part-header">
|
<div className="mobile-users-part-header">
|
||||||
<span className="mobile-users-part-header-title exit-popup-button-title">
|
<h2 className="mobile-users-part-header-title exit-popup-button-title">
|
||||||
{t("popup-control-exit-title")}
|
{t("popup-control-exit-title")}
|
||||||
</span>
|
</h2>
|
||||||
<button
|
<button
|
||||||
onClick={() => setClose()}
|
onClick={() => setClose()}
|
||||||
className="mobile-users-part-header-close-button"
|
className="mobile-users-part-header-close-button"
|
||||||
|
|||||||
@@ -24,18 +24,18 @@ export const PopupShare: React.FC<any> = ({ setClose }) => {
|
|||||||
return (
|
return (
|
||||||
<div className="share-popup-container popup">
|
<div className="share-popup-container popup">
|
||||||
<div className="mobile-users-part-header share-header-popup">
|
<div className="mobile-users-part-header share-header-popup">
|
||||||
<span className="mobile-users-part-header-title">
|
<h2 className="mobile-users-part-header-title">
|
||||||
{t("popup-control-invite-title")}
|
{t("popup-control-invite-title")}
|
||||||
</span>
|
</h2>
|
||||||
<button
|
<button
|
||||||
onClick={closePopup}
|
onClick={closePopup}
|
||||||
className="mobile-users-part-header-close-button"
|
className="mobile-users-part-header-close-button"
|
||||||
></button>
|
></button>
|
||||||
</div>
|
</div>
|
||||||
<div className="share-popup-data-container">
|
<div className="share-popup-data-container">
|
||||||
<span className="share-popup-data-title">
|
<h3 className="share-popup-data-title">
|
||||||
{t("popup-control-link")}
|
{t("popup-control-link")}
|
||||||
</span>
|
</h3>
|
||||||
<input
|
<input
|
||||||
className="share-popup-data-input href"
|
className="share-popup-data-input href"
|
||||||
value={window.location.href}
|
value={window.location.href}
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
.user {
|
.user {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 8px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-name {
|
.user-name {
|
||||||
@@ -29,6 +28,12 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.control-elements {
|
||||||
|
gap: 8px;
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.you-caption {
|
.you-caption {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
|||||||
@@ -68,38 +68,41 @@ export const User: React.FC<any> = ({
|
|||||||
</motion.span>
|
</motion.span>
|
||||||
</div>
|
</div>
|
||||||
{isSidebarWide && (
|
{isSidebarWide && (
|
||||||
<AnimatePresence>
|
<div className="control-elements">
|
||||||
{!isControl && (
|
<AnimatePresence>
|
||||||
|
{!isControl && (
|
||||||
|
<motion.div
|
||||||
|
variants={popupAnimation}
|
||||||
|
initial={"hidden"}
|
||||||
|
animate={"show"}
|
||||||
|
exit={"hidden"}
|
||||||
|
className="user-control-caption"
|
||||||
|
>
|
||||||
|
<div className="control-circle"></div>
|
||||||
|
<span className="user-control-caption">Управление</span>
|
||||||
|
</motion.div>
|
||||||
|
)}
|
||||||
|
</AnimatePresence>
|
||||||
|
{isAdmin && (
|
||||||
<motion.div
|
<motion.div
|
||||||
variants={popupAnimation}
|
initial={false}
|
||||||
initial={"hidden"}
|
variants={animationButton}
|
||||||
animate={"show"}
|
animate={isSidebarWide ? "show" : "hidden"}
|
||||||
exit={"hidden"}
|
className="icon-container"
|
||||||
className="user-control-caption"
|
|
||||||
>
|
>
|
||||||
<div className="control-circle"></div>
|
<motion.img
|
||||||
<span className="user-control-caption">Управление</span>
|
initial={false}
|
||||||
|
transition={transition}
|
||||||
|
variants={iconAnimation}
|
||||||
|
animate={expand ? "open" : "closed"}
|
||||||
|
src={chevronDown}
|
||||||
|
className="arrow-caption"
|
||||||
|
></motion.img>
|
||||||
</motion.div>
|
</motion.div>
|
||||||
)}
|
)}
|
||||||
</AnimatePresence>
|
</div>
|
||||||
)}
|
|
||||||
{isAdmin && (
|
|
||||||
<motion.div
|
|
||||||
initial={false}
|
|
||||||
variants={animationButton}
|
|
||||||
animate={isSidebarWide ? "show" : "hidden"}
|
|
||||||
className="icon-container"
|
|
||||||
>
|
|
||||||
<motion.img
|
|
||||||
initial={false}
|
|
||||||
transition={transition}
|
|
||||||
variants={iconAnimation}
|
|
||||||
animate={expand ? "open" : "closed"}
|
|
||||||
src={chevronDown}
|
|
||||||
className="arrow-caption"
|
|
||||||
></motion.img>
|
|
||||||
</motion.div>
|
|
||||||
)}
|
)}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{expand && (
|
{expand && (
|
||||||
<AnimatePresence>
|
<AnimatePresence>
|
||||||
@@ -112,6 +115,7 @@ export const User: React.FC<any> = ({
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
onClick={() => setControl((prev) => !prev)}
|
onClick={() => setControl((prev) => !prev)}
|
||||||
|
style={{ height: "40px" }}
|
||||||
className="button button-secondary"
|
className="button button-secondary"
|
||||||
>
|
>
|
||||||
<img src={isControl ? control : controlOff}></img>
|
<img src={isControl ? control : controlOff}></img>
|
||||||
@@ -120,12 +124,13 @@ export const User: React.FC<any> = ({
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
style={{width: "40px", padding: "16px"}}
|
style={{ width: "40px", height: "40px", padding: "16px" }}
|
||||||
onClick={() => setMute((prev) => !prev)}
|
onClick={() => setMute((prev) => !prev)}
|
||||||
className="button button-teritary"
|
className="button button-teritary"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
alt="иконка звук выкл"
|
alt="иконка звук выкл"
|
||||||
|
|
||||||
src={mute ? microOn : microOff}
|
src={mute ? microOn : microOff}
|
||||||
className="mic"
|
className="mic"
|
||||||
></img>
|
></img>
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+9
-1
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Inter';
|
font-family: 'Inter';
|
||||||
src:
|
src:
|
||||||
@@ -44,3 +43,12 @@
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'GilroyWebRegular';
|
||||||
|
src: url('./Gilroy_Regular.woff'),
|
||||||
|
url('./Gilroy_Regular.woff2');
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
|
||||||
|
}
|
||||||
+60
-6
@@ -15,35 +15,58 @@
|
|||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
line-height: 150%;
|
line-height: 150%;
|
||||||
padding: 12px 24px;
|
padding: 12px 24px;
|
||||||
|
border-radius: 4px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-primary {
|
.button-primary {
|
||||||
|
position: relative;
|
||||||
color: #f2f2f2;
|
color: #f2f2f2;
|
||||||
transition: background 0.2s ease-in-out;
|
transition: background 0.2s ease-in-out;
|
||||||
background: linear-gradient(180deg, #bc75ff 0%, #798fff 100%);
|
background: linear-gradient(180deg, #bc75ff 0%, #798fff 100%);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.button-primary:hover {
|
.button-primary:hover {
|
||||||
transition: background 0.2 ease-in-out;
|
transition: background 0.2 ease-in-out;
|
||||||
background: linear-gradient(180deg, #798fff -41.07%, #d375ff 100%);
|
background: linear-gradient(180deg, #798fff -41.07%, #d375ff 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-secondary {
|
.button-secondary {
|
||||||
|
position: relative;
|
||||||
color: #c5c7ce;
|
color: #c5c7ce;
|
||||||
|
background: #23242A;
|
||||||
|
|
||||||
transition: background 0.2s ease-in-out;
|
transition: background 0.2s ease-in-out;
|
||||||
border: 10px solid;
|
}
|
||||||
border-image-slice: 1;
|
|
||||||
border-width: 1px;
|
.button-secondary::before {
|
||||||
border-image-source: linear-gradient(180deg, #bc75ff 0%, #798fff 100%);
|
content: "";
|
||||||
background: #23242a;
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 1px;
|
||||||
|
background: linear-gradient(180deg, #BC75FF 0%, #798FFF 100%);
|
||||||
|
-webkit-mask:
|
||||||
|
linear-gradient(#fff 0 0) content-box,
|
||||||
|
linear-gradient(#fff 0 0);
|
||||||
|
-webkit-mask-composite: xor;
|
||||||
|
mask-composite: exclude;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-secondary:hover {
|
.button-secondary:hover {
|
||||||
|
transition: background 0.2s ease-in-out;
|
||||||
background: #2e3038;
|
background: #2e3038;
|
||||||
color: #f2f2f2;
|
color: #f2f2f2;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.button-secondary:hover::before {
|
||||||
transition: background 0.2s ease-in-out;
|
transition: background 0.2s ease-in-out;
|
||||||
border-image-source: linear-gradient(180deg, #798fff -41.07%, #d375ff 100%);
|
background: linear-gradient(180deg, #798fff -41.07%, #d375ff 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-teritary {
|
.button-teritary {
|
||||||
@@ -69,6 +92,7 @@
|
|||||||
background: #1c1d21;
|
background: #1c1d21;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
|
height: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-type-small:hover {
|
.button-type-small:hover {
|
||||||
@@ -77,3 +101,33 @@
|
|||||||
background: #23242a;
|
background: #23242a;
|
||||||
color: #f2f2f2;
|
color: #f2f2f2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-family: 'GilroyWebRegular';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 24px;
|
||||||
|
line-height: 125%;
|
||||||
|
color: #F2F2F2;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin: 0;
|
||||||
|
font-family: 'GilroyWebRegular';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 20px;
|
||||||
|
line-height: 120%;
|
||||||
|
color: #C5C7CE;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-planning {
|
||||||
|
font-family: 'GilroyWebRegular';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 38px;
|
||||||
|
line-height: 100%;
|
||||||
|
color: #F2F2F2;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user