diff --git a/src/App.css b/src/App.css index a2f6837..afdf2e7 100644 --- a/src/App.css +++ b/src/App.css @@ -4,6 +4,7 @@ width: 100%; } + .content__container { height: 100vh; width: 400px; @@ -20,6 +21,7 @@ } .popup { + border-radius: 4px; width: 100%; background: transparent; padding: 56px; @@ -49,6 +51,8 @@ border-radius: 16px; } + + @media screen and (max-width: 1440px) { .card-title { margin: 22px 0 40px 0; diff --git a/src/App.tsx b/src/App.tsx index 7d9f7e7..92cff59 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -47,7 +47,7 @@ const App: React.FC = () => {
-

{t("demo-title")}

+

{t("demo-title")}

{cards.map((i: ICards) => ( handleCards(i)} key={i._id} item={i}> diff --git a/src/components/pages/ConnectPage/LoadingPopup/LoadingPopup.tsx b/src/components/pages/ConnectPage/LoadingPopup/LoadingPopup.tsx index 9863462..5aa6e3d 100644 --- a/src/components/pages/ConnectPage/LoadingPopup/LoadingPopup.tsx +++ b/src/components/pages/ConnectPage/LoadingPopup/LoadingPopup.tsx @@ -2,8 +2,13 @@ import "./LoadingPopup.css"; import { useHistory } from "react-router-dom"; import { useTranslation } from "react-i18next"; +import { useAppDispatch, useAppSelector } from "hooks/redux"; + + +export const LoadingPopup: React.FC = ({ }) => { + + const { currentCard } = useAppSelector((state) => state.cardReducer); -export const LoadingPopup: React.FC = ({ logo }) => { const history = useHistory(); const { t } = useTranslation(); @@ -11,7 +16,7 @@ export const LoadingPopup: React.FC = ({ logo }) => {
- лого + лого
Пожалуйста подождите
diff --git a/src/components/pages/ConnectPage/PopupConnect/PopupConnect.tsx b/src/components/pages/ConnectPage/PopupConnect/PopupConnect.tsx index f00c694..baa99f1 100644 --- a/src/components/pages/ConnectPage/PopupConnect/PopupConnect.tsx +++ b/src/components/pages/ConnectPage/PopupConnect/PopupConnect.tsx @@ -25,11 +25,11 @@ export const PopupConnect: React.FC = ({ onConnect, logo, isLoading }) => { лого
- -
-
diff --git a/src/components/pages/Main/Card/Card.tsx b/src/components/pages/Main/Card/Card.tsx index 748d60e..605f298 100644 --- a/src/components/pages/Main/Card/Card.tsx +++ b/src/components/pages/Main/Card/Card.tsx @@ -14,8 +14,8 @@ export const Card: React.FC = ({ item, onClick }) => {
лого
-

{currentLang === "ru" ? item.title_full.ru : item.title_full.en}

-

{currentLang === "ru" ? item.location.ru : item.location.en}

+

{currentLang === "ru" ? item.title_full.ru : item.title_full.en}

+

{currentLang === "ru" ? item.location.ru : item.location.en}

diff --git a/src/components/pages/Plan/CalendarComponent/CalendarComponent.css b/src/components/pages/Plan/CalendarComponent/CalendarComponent.css index af3fce6..178d67b 100644 --- a/src/components/pages/Plan/CalendarComponent/CalendarComponent.css +++ b/src/components/pages/Plan/CalendarComponent/CalendarComponent.css @@ -2,6 +2,11 @@ width: 312px; } +.calendar-title { + margin-top: 0; + margin-bottom: 32px; +} + .weekday-table { user-select: none; background: transparent; diff --git a/src/components/pages/Plan/CalendarComponent/CalendarComponent.tsx b/src/components/pages/Plan/CalendarComponent/CalendarComponent.tsx index 2afaa40..59bcc6d 100644 --- a/src/components/pages/Plan/CalendarComponent/CalendarComponent.tsx +++ b/src/components/pages/Plan/CalendarComponent/CalendarComponent.tsx @@ -85,7 +85,7 @@ export const CalendarComponent: React.FC = ({ time, pickedTime }) => { return (
-

Выберите дату.

+

Выберите

дату.

= () => { return (
- logo
{isCalendar && ( = () => { )} {isTimepicker && ( = () => { )} {isForm && ( = () => { )} {isDone && ( = () => { {!isDone && ( <>
- diff --git a/src/components/pages/Plan/TimepickerComponent/TimepickerComponent.tsx b/src/components/pages/Plan/TimepickerComponent/TimepickerComponent.tsx index fa0395e..6d47431 100644 --- a/src/components/pages/Plan/TimepickerComponent/TimepickerComponent.tsx +++ b/src/components/pages/Plan/TimepickerComponent/TimepickerComponent.tsx @@ -51,7 +51,7 @@ export const TimepickerComponent: React.FC = ({ time }) => { }; return (
-

Выберите время.

+

Выберите

время.

- +

{t("popup-control-link")} - +

= ({
{isSidebarWide && ( - - {!isControl && ( +
+ + {!isControl && ( + +
+ Управление +
+ )} +
+ {isAdmin && ( -
- Управление +
)} - - )} - {isAdmin && ( - - - +
)} +
{expand && ( @@ -112,6 +115,7 @@ export const User: React.FC = ({ >
setControl((prev) => !prev)} + style={{ height: "40px" }} className="button button-secondary" > @@ -120,12 +124,13 @@ export const User: React.FC = ({
setMute((prev) => !prev)} className="button button-teritary" > иконка звук выкл diff --git a/src/fonts/Gilroy_Bold.woff b/src/fonts/Gilroy_Bold.woff new file mode 100644 index 0000000..c5bbebb Binary files /dev/null and b/src/fonts/Gilroy_Bold.woff differ diff --git a/src/fonts/Gilroy_Bold.woff2 b/src/fonts/Gilroy_Bold.woff2 new file mode 100644 index 0000000..bb8d73a Binary files /dev/null and b/src/fonts/Gilroy_Bold.woff2 differ diff --git a/src/fonts/Gilroy_Light.woff b/src/fonts/Gilroy_Light.woff new file mode 100644 index 0000000..3c8aca8 Binary files /dev/null and b/src/fonts/Gilroy_Light.woff differ diff --git a/src/fonts/Gilroy_Light.woff2 b/src/fonts/Gilroy_Light.woff2 new file mode 100644 index 0000000..bac74f7 Binary files /dev/null and b/src/fonts/Gilroy_Light.woff2 differ diff --git a/src/fonts/Gilroy_Medium.woff b/src/fonts/Gilroy_Medium.woff new file mode 100644 index 0000000..af869f6 Binary files /dev/null and b/src/fonts/Gilroy_Medium.woff differ diff --git a/src/fonts/Gilroy_Medium.woff2 b/src/fonts/Gilroy_Medium.woff2 new file mode 100644 index 0000000..dfaa5b6 Binary files /dev/null and b/src/fonts/Gilroy_Medium.woff2 differ diff --git a/src/fonts/Gilroy_Regular.woff b/src/fonts/Gilroy_Regular.woff new file mode 100644 index 0000000..d7ddc7e Binary files /dev/null and b/src/fonts/Gilroy_Regular.woff differ diff --git a/src/fonts/Gilroy_Regular.woff2 b/src/fonts/Gilroy_Regular.woff2 new file mode 100644 index 0000000..57b277d Binary files /dev/null and b/src/fonts/Gilroy_Regular.woff2 differ diff --git a/src/fonts/Gilroy_SemiBold.woff b/src/fonts/Gilroy_SemiBold.woff new file mode 100644 index 0000000..acdf98e Binary files /dev/null and b/src/fonts/Gilroy_SemiBold.woff differ diff --git a/src/fonts/Gilroy_SemiBold.woff2 b/src/fonts/Gilroy_SemiBold.woff2 new file mode 100644 index 0000000..9a1b0dc Binary files /dev/null and b/src/fonts/Gilroy_SemiBold.woff2 differ diff --git a/src/fonts/fonts.css b/src/fonts/fonts.css index f9e9d85..2e582f9 100644 --- a/src/fonts/fonts.css +++ b/src/fonts/fonts.css @@ -1,4 +1,3 @@ - @font-face { font-family: 'Inter'; src: @@ -44,3 +43,12 @@ font-style: normal; } + +@font-face { + font-family: 'GilroyWebRegular'; + src: url('./Gilroy_Regular.woff'), + url('./Gilroy_Regular.woff2'); + font-weight: 400; + font-style: normal; + +} \ No newline at end of file diff --git a/src/styles/styles.css b/src/styles/styles.css index 9ab77fb..5e0a822 100644 --- a/src/styles/styles.css +++ b/src/styles/styles.css @@ -15,35 +15,58 @@ font-size: 15px; line-height: 150%; padding: 12px 24px; + border-radius: 4px; + } .button-primary { + position: relative; color: #f2f2f2; transition: background 0.2s ease-in-out; background: linear-gradient(180deg, #bc75ff 0%, #798fff 100%); border-radius: 4px; } + + .button-primary:hover { transition: background 0.2 ease-in-out; background: linear-gradient(180deg, #798fff -41.07%, #d375ff 100%); } .button-secondary { + position: relative; color: #c5c7ce; + background: #23242A; + transition: background 0.2s ease-in-out; - border: 10px solid; - border-image-slice: 1; - border-width: 1px; - border-image-source: linear-gradient(180deg, #bc75ff 0%, #798fff 100%); - background: #23242a; +} + +.button-secondary::before { + content: ""; + 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 { + transition: background 0.2s ease-in-out; background: #2e3038; color: #f2f2f2; +} + + + +.button-secondary:hover::before { 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 { @@ -69,6 +92,7 @@ background: #1c1d21; border-radius: 4px; padding: 8px 16px; + height: 32px; } .button-type-small:hover { @@ -77,3 +101,33 @@ background: #23242a; 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; +} \ No newline at end of file