From 3b6f54494614b72a02b2802d9d391558aec961aa Mon Sep 17 00:00:00 2001 From: tylen Date: Sun, 2 Nov 2025 22:13:21 +0200 Subject: [PATCH] add upcoming features --- frontend/src/App.tsx | 41 ++++++++++++++++----- frontend/src/components/AttendnaceTable.tsx | 19 ++++++++++ frontend/src/components/SecretSanta.tsx | 19 ++++++++++ frontend/src/components/Suggestions.tsx | 19 ++++++++++ 4 files changed, 88 insertions(+), 10 deletions(-) create mode 100644 frontend/src/components/AttendnaceTable.tsx create mode 100644 frontend/src/components/SecretSanta.tsx create mode 100644 frontend/src/components/Suggestions.tsx diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index acf778c..c902488 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -6,20 +6,23 @@ import InitialSetup from './components/InitialSetup'; import Program from './components/Program'; import Snowflakes from './components/Snowflakes'; import { FullScreenLoading } from './components/Loading'; +import SecretSanta from './components/SecretSanta'; +import Suggestions from './components/Suggestions'; +import AttendanceTable from './components/AttendnaceTable'; function App() { const [isNavOpen, setIsNavOpen] = useState(false); - const handleLogout = () => { - const cookies = document.cookie.split(";"); + const handleLogout = () => { + const cookies = document.cookie.split(";"); - for (let cookie of cookies) { - const cookieName = cookie.split("=")[0].trim(); - // Set the cookie's expiration date to the past to delete it - document.cookie = `${cookieName}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;`; - } - window.location.reload(); - }; + for (let cookie of cookies) { + const cookieName = cookie.split("=")[0].trim(); + // Set the cookie's expiration date to the past to delete it + document.cookie = `${cookieName}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;`; + } + window.location.reload(); + }; const toggleNav = () => { setIsNavOpen(!isNavOpen); @@ -27,7 +30,7 @@ function App() { return ( <> - + @@ -46,6 +49,15 @@ function App() {
  • Программа
  • +
  • + Пожелания +
  • +
  • + Secret Santa +
  • +
  • + Кто празднует? +
  • @@ -61,6 +73,15 @@ function App() {
    +
    + +
    +
    + +
    +
    + +
    ); } diff --git a/frontend/src/components/AttendnaceTable.tsx b/frontend/src/components/AttendnaceTable.tsx new file mode 100644 index 0000000..5895c1a --- /dev/null +++ b/frontend/src/components/AttendnaceTable.tsx @@ -0,0 +1,19 @@ +import CenteredContainer from "./ChildrenContainer"; + +function AttendanceTable() { + + return ( + <> + +

    Кто празднует?

    +

    + Вскоре, вы сможете видеть всех, кто приедет и будет праздновать с нами. Данная фича по полной в разработке! +

    + Таблица в производстве... Ожидайте к началу-середние ноября +

    +
    + + ) +} + +export default AttendanceTable; \ No newline at end of file diff --git a/frontend/src/components/SecretSanta.tsx b/frontend/src/components/SecretSanta.tsx new file mode 100644 index 0000000..000cbf9 --- /dev/null +++ b/frontend/src/components/SecretSanta.tsx @@ -0,0 +1,19 @@ +import CenteredContainer from "./ChildrenContainer"; + +function SecretSanta() { + + return ( + <> + +

    Secret Santa

    +

    + Тут вы сможете узнать кому вы дарите свой подарок, а так же увидеть его вишлист, если он его добавит. Вы тоже сможете добавить свой вишлист, если захотите, чтобы ваш санта его видел! +

    + Таблица в производстве... Ожидайте к середине-концу ноября +

    +
    + + ) +} + +export default SecretSanta; \ No newline at end of file diff --git a/frontend/src/components/Suggestions.tsx b/frontend/src/components/Suggestions.tsx new file mode 100644 index 0000000..0ee28b9 --- /dev/null +++ b/frontend/src/components/Suggestions.tsx @@ -0,0 +1,19 @@ +import CenteredContainer from "./ChildrenContainer"; + +function Sugegstions() { + + return ( + <> + +

    Ваши предложения и пожелания

    +

    + Тут вы можете оставить ваши пожелания/предпочтения для чего-либо. Хотите ли вы купить ракеты, поехат в какой-то из дней куда-то, какое основное блюдо вы бы хотели тд и тп... +

    + Таблица в производстве... Ожидайте к середине-концу ноября +

    +
    + + ) +} + +export default Sugegstions; \ No newline at end of file