From a2682170293d42b9a6b18ff31059b737082eb543 Mon Sep 17 00:00:00 2001 From: JM Date: Tue, 27 May 2025 22:44:13 -0300 Subject: [PATCH] =?UTF-8?q?:lipstick:=20Adicionadas=20p=C3=A1ginas=20PostL?= =?UTF-8?q?oginLanding=20e=20Dashboard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/website/src/App.tsx | 24 ++-- apps/website/src/Dashboard.tsx | 145 ++++++++++++++++++++ apps/website/src/Home.tsx | 9 ++ apps/website/src/LandingPage.tsx | 2 +- apps/website/src/Login.tsx | 27 ++-- apps/website/src/PostLoginLanding.tsx | 184 ++++++++++++++++++++++++++ apps/website/src/Register.tsx | 82 +++++------- 7 files changed, 398 insertions(+), 75 deletions(-) create mode 100644 apps/website/src/Dashboard.tsx create mode 100644 apps/website/src/PostLoginLanding.tsx diff --git a/apps/website/src/App.tsx b/apps/website/src/App.tsx index 914271ed..e0e0cf8c 100644 --- a/apps/website/src/App.tsx +++ b/apps/website/src/App.tsx @@ -3,23 +3,21 @@ import { Routes, Route } from "react-router-dom"; import Login from "./Login"; import Register from "./Register"; import Home from "./Home"; -import LandingPage from "./LandingPage"; +import LandingPage from "./LandingPage"; +import PostLoginLanding from "./PostLoginLanding"; +import Dashboard from "./Dashboard"; export default function App(): JSX.Element { return ( -
{/* Container do Bootstrap para centralizar */} - - {/**/} +
- } /> - } /> - } /> - } /> - Página não encontrada

} /> + } /> + } /> + } /> + } /> + } /> + } /> + Página não encontrada

} />
); diff --git a/apps/website/src/Dashboard.tsx b/apps/website/src/Dashboard.tsx new file mode 100644 index 00000000..d4b8a9f4 --- /dev/null +++ b/apps/website/src/Dashboard.tsx @@ -0,0 +1,145 @@ +import React from "react"; +import { useNavigate } from "react-router-dom"; +import logoWeatherSync from "./assets/logo-weather-sync.png"; + +export default function Dashboard(): JSX.Element { + const navigate = useNavigate(); + + const handleLogout = () => { + localStorage.removeItem("token"); + localStorage.removeItem("userName"); + navigate("/login"); + }; + + return ( +
+ {/* Header Section */} +
+
+
+
+
+ Weather Sync Logo +
+

Dashboard Meteorológico

+

+ Visualize dados e estatísticas do clima das suas regiões favoritas +

+
+
+
+
+ + {/* Coming Soon Section */} +
+
+
+
+
+
+ 🚧 +
+

+ Dashboard em Desenvolvimento +

+

+ Estamos trabalhando para trazer recursos incríveis para você acompanhar + o clima de forma ainda mais detalhada e intuitiva. +

+ +
+
+
+
+
+ 📊 Gráficos Interativos +
+ + Visualize tendências climáticas + +
+
+
+ +
+
+
+
+ 🌡️ Análises Detalhadas +
+ + Dados meteorológicos completos + +
+
+
+ +
+
+
+
+ 📈 Previsões Avançadas +
+ + Alertas personalizados + +
+
+
+
+ +
+ + + + + +
+
+
+
+
+
+ + {/* Footer */} +
+
+
+
+

+ Weather Sync - Seu companheiro meteorológico +

+
+
+ + © 2025 Weather Sync. Todos os direitos reservados. + +
+
+
+
+
+ ); +} \ No newline at end of file diff --git a/apps/website/src/Home.tsx b/apps/website/src/Home.tsx index 81d919e5..3f58b6b4 100644 --- a/apps/website/src/Home.tsx +++ b/apps/website/src/Home.tsx @@ -277,6 +277,15 @@ export default function Home(): JSX.Element {
+
+ +
+ {/* Footer */}