diff --git a/src/App.jsx b/src/App.jsx index ee6a996..8d46a0d 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -6,7 +6,7 @@ import { BrowserRouter, Routes, Route } from "react-router-dom"; import BeingPage from "./Components/BeingPage/index.jsx"; import HomePage from "./Components/HomePage/index.jsx"; import MeetPage from "./Components/MeetPage/index.jsx"; - +import MeetAuthPage from "./Components/MeetAuthPage/index.jsx"; @@ -21,6 +21,7 @@ function App() { }/> }/> }/> + }/> diff --git a/src/Components/Card/index.jsx b/src/Components/Card/index.jsx index eb46431..8511f62 100644 --- a/src/Components/Card/index.jsx +++ b/src/Components/Card/index.jsx @@ -1,22 +1,32 @@ import './style.module.scss'; +import { HttpApiMethods } from '../fetchUtils/FetchUtils'; - -const Card = () => { +const httpApiMethods = new HttpApiMethods() +function extractDateTime(dateString) { + const dateTime = new Date(dateString); + const date = dateTime.toLocaleDateString(); + const time = dateTime.toLocaleTimeString(); + + return { date, time }; +} +const Card = (item) => { + + console.log(item); return ( <> -
-
-
-
Психология
-
Предстоящее
-
-

Интерактивная лекция «Управление инжиниринговыми проектами на базе вуза»

-

22 декабря, с 10:00 до 22:00 по Московскому времени

+
+
{item.speackerImage}
+
+
{item.tags}
+
{item.type}
+
+

{item.title}

+

{extractDateTime(item.time).date}, в {extractDateTime(item.time).time} по Московскому времени

) diff --git a/src/Components/Header/index.jsx b/src/Components/Header/index.jsx index 6b52af8..9bcc280 100644 --- a/src/Components/Header/index.jsx +++ b/src/Components/Header/index.jsx @@ -13,7 +13,7 @@ const Header = () => {
logo
- +
) diff --git a/src/Components/Header/style.module.scss b/src/Components/Header/style.module.scss index 5b9fbd6..5fbb6be 100644 --- a/src/Components/Header/style.module.scss +++ b/src/Components/Header/style.module.scss @@ -12,9 +12,11 @@ justify-content: center; width: 100%; height: 150px; - position: absolute; + position: fixed; top: 0px; + background-color: #fff; left: 0px; + z-index: 10; } &__logo { cursor: pointer; @@ -23,7 +25,7 @@ display: flex; align-items: center; justify-content: center; - border-radius: 100px; + border-radius: 10px; background: #FFED00; width: 200px; height: 42px; diff --git a/src/Components/HomePage/style.module.scss b/src/Components/HomePage/style.module.scss index 1ccc8db..e3e3ef5 100644 --- a/src/Components/HomePage/style.module.scss +++ b/src/Components/HomePage/style.module.scss @@ -86,4 +86,4 @@ } .search__descr { margin-right: 25px; -} \ No newline at end of file +} diff --git a/src/Components/MeetAuthPage/index.jsx b/src/Components/MeetAuthPage/index.jsx new file mode 100644 index 0000000..42e61d5 --- /dev/null +++ b/src/Components/MeetAuthPage/index.jsx @@ -0,0 +1,154 @@ +import Header from "../Header"; +import styles from './style.module.scss'; +import clock from '../../img/MeetPage/Clock.png'; +import globe from '../../img/MeetPage/Globe.png'; +import avatar from '../../img/MeetPage/avatar.png'; + +import Card from "../Card"; +import Grid from '@mui/material/Grid'; +import Box from '@mui/material/Box'; +import { useState, CSSProperties, useEffect, useRef } from "react"; +import newAvatar from '../../img/MeetPage/newAvatar.png'; +import vk from '../../img/MeetPage/Vk.png'; +import tg from '../../img/MeetPage/Telegram.png'; +import book from '../../img/MeetPage/Book.png'; +const MeetPage = () => { + + // const textAreaRef = useRef(null); + // const [text, setText] = useState(""); + // const [textAreaHeight, setTextAreaHeight] = useState("auto"); + // const [parentHeight, setParentHeight] = useState("auto"); + + // const parentStyle= { + // minHeight: parentHeight, + // }; + + // const textAreaStyle= { + // height: textAreaHeight, + // }; + + + + return ( + <> +
+ +
+
+ Интерактивная лекция «Управление инжиниринговыми проектами на базе вуза» + Психология +
clock Онлайн
+
globe 22 декабря, с 10:00 до 22:00 по Московскому времени
+
+
+ +
+
+ +
+
+ + Ссылка на мероприятие + СКАЧАТЬ ВИДЕО +
+
+ Отзывы + Оставьте первый отзыв +
+ +
+
+ +
+
О мероприятии
+
Известным спикером будут продемонстрированы основные механизмы психологического воздействия в политике, а также особенности восприятия общественно-политической информации. Слушатели смогут узнать, как следует противостоять манипулятивному воздействию, фейковой информации, а также порассуждать о том, возможно ли существование мира без обмана.
+
+
+
Специалист
+
+
+
avatar
+ +
+
Иванов Иван Иванович
+
Психолог, таролог
+
+7 (888) 888 - 88 - 88
+ exampl@ya.ru +
+ +
+
+
Ссылки на материалы специалиста
+
+ + + +
+ +
+
+ +
+
+
Комментарии
+
+
3 КОММЕНТАРИЯ
+
+
+ avatar +
+