From b141218adf96141716c591121d71bb2bdb66f7d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Henrique?= Date: Tue, 10 Jun 2025 13:19:00 -0300 Subject: [PATCH] melhorias no design --- src/App.css | 45 +++++ src/App.tsx | 5 + src/api/apiModels.ts | 8 + src/api/openCandApi.ts | 10 +- src/components/Button.tsx | 66 +++++++ .../CandidatePage/CandidatePage.tsx | 21 +- .../CandidatePage/ElectionsComponent.tsx | 2 +- .../CandidatePage/SocialMediaComponent.tsx | 80 +++++--- src/components/Card.tsx | 31 +++ src/components/DataStatsPage.tsx | 186 ++++++++++++++++++ src/components/FeaturesSection.tsx | 7 +- src/components/Footer.tsx | 2 +- src/components/NavButton.tsx | 31 --- src/components/Navbar.tsx | 9 +- src/components/NotFound.tsx | 59 ++++++ src/components/StatisticsSection.tsx | 57 +++--- src/components/Tooltip.tsx | 180 ----------------- 17 files changed, 506 insertions(+), 293 deletions(-) create mode 100644 src/components/Button.tsx create mode 100644 src/components/Card.tsx create mode 100644 src/components/DataStatsPage.tsx delete mode 100644 src/components/NavButton.tsx create mode 100644 src/components/NotFound.tsx delete mode 100644 src/components/Tooltip.tsx diff --git a/src/App.css b/src/App.css index 1b2d9fa..5b1acdf 100644 --- a/src/App.css +++ b/src/App.css @@ -26,6 +26,51 @@ body, html { animation: fadeIn 0.3s ease-in-out forwards; } +/* New animations for DataStatsPage */ +@keyframes fade-in { + from { opacity: 0; } + to { opacity: 1; } +} + +@keyframes slide-up { + from { opacity: 0; transform: translateY(20px); } + to { opacity: 1; transform: translateY(0); } +} + +@keyframes fade-in-up { + from { opacity: 0; transform: translateY(30px); } + to { opacity: 1; transform: translateY(0); } +} + +@keyframes slide-in-left { + from { opacity: 0; transform: translateX(-20px); } + to { opacity: 1; transform: translateX(0); } +} + +.animate-fade-in { + animation: fade-in 0.8s ease-out forwards; +} + +.animate-slide-up { + animation: slide-up 0.6s ease-out forwards; +} + +.animate-fade-in-up { + animation: fade-in-up 0.8s ease-out forwards; +} + +.animate-slide-in-left { + animation: slide-in-left 0.6s ease-out forwards; +} + +.delay-100 { + animation-delay: 0.1s; +} + +.delay-200 { + animation-delay: 0.2s; +} + /* Custom scrollbar for search results */ .custom-scrollbar::-webkit-scrollbar { width: 6px; diff --git a/src/App.tsx b/src/App.tsx index dde6a58..9bf8520 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,6 +6,8 @@ import StatisticsSection from './components/StatisticsSection'; import FeaturesSection from './components/FeaturesSection'; import Footer from './components/Footer'; import CandidatePage from './components/CandidatePage/CandidatePage'; +import DataStatsPage from './components/DataStatsPage'; +import NotFound from './components/NotFound'; import MatrixBackground from './components/MatrixBackground'; import './App.css'; @@ -14,6 +16,7 @@ const HomePage: React.FC = () => (
+
); @@ -28,6 +31,8 @@ function App() { } /> } /> + } /> + } />