diff --git a/src/api/apiModels.ts b/src/api/apiModels.ts index a0b5d17..6855325 100644 --- a/src/api/apiModels.ts +++ b/src/api/apiModels.ts @@ -29,6 +29,7 @@ export interface Election { nrCandidato: string; nomeCandidato: string; resultado: string; + partido: Partido; } export interface CandidateAssets { @@ -65,4 +66,10 @@ export interface PlatformStats { export interface CpfRevealResult { cpf: string; +} + +export interface Partido { + nome: string; + sigla: string; + numero: number; } \ No newline at end of file diff --git a/src/components/CandidatePage/ElectionsComponent.tsx b/src/components/CandidatePage/ElectionsComponent.tsx index ac62ee0..5db3ba6 100644 --- a/src/components/CandidatePage/ElectionsComponent.tsx +++ b/src/components/CandidatePage/ElectionsComponent.tsx @@ -42,6 +42,7 @@ const ElectionsComponent: React.FC = ({ elections, isLo Cargo UF Localidade + Partido Número Resultado @@ -54,6 +55,7 @@ const ElectionsComponent: React.FC = ({ elections, isLo {election.cargo} {election.siglaUF} {election.nomeUE} + {election.partido.sigla} {election.nrCandidato} = ({ icon: Icon, title, children }) => { return ( -
- +
+

{title}

{children}

diff --git a/src/components/MatrixBackground.tsx b/src/components/MatrixBackground.tsx index 1f85f07..4e768e6 100644 --- a/src/components/MatrixBackground.tsx +++ b/src/components/MatrixBackground.tsx @@ -34,7 +34,7 @@ const MatrixBackground: React.FC = () => { connectionDistance: 150, dotSpeed: 0.3, hoverRadius: 120, - baseBrightness: 0.25, // Reduced to 30% opacity (0.3 * 0.3) + baseBrightness: 0.3, // Reduced to 30% opacity (0.3 * 0.3) hoverBrightness: 0.6, // Reduced hover brightness baseThickness: 0.5, hoverThickness: 1.5, diff --git a/src/components/NavButton.tsx b/src/components/NavButton.tsx new file mode 100644 index 0000000..a99f1b5 --- /dev/null +++ b/src/components/NavButton.tsx @@ -0,0 +1,33 @@ +import React from 'react'; + +interface NavButtonProps { + href: string; + children: React.ReactNode; + className?: string; +} + +const NavButton: React.FC = ({ href, children, className = '' }) => { + return ( + + {children} + + ); +}; + +export default NavButton; diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index da015d0..7773219 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import NavButton from './NavButton'; const Navbar: React.FC = () => { return ( @@ -8,9 +9,9 @@ const Navbar: React.FC = () => { OpenCand
- Estatíscas - Recursos - Sobre + Estatíscas + Recursos + Sobre
diff --git a/src/components/StatisticsSection.tsx b/src/components/StatisticsSection.tsx index 6196c2b..052f770 100644 --- a/src/components/StatisticsSection.tsx +++ b/src/components/StatisticsSection.tsx @@ -10,7 +10,7 @@ interface StatCardProps { const StatCard: React.FC = ({ title, value, description, isLoading = false }) => { return ( -
+

{title}

{isLoading ? (
diff --git a/src/index.css b/src/index.css index 0523df4..8716ae7 100644 --- a/src/index.css +++ b/src/index.css @@ -18,15 +18,6 @@ -moz-osx-font-smoothing: grayscale; } -a { - font-weight: 500; - color: #646cff; - text-decoration: inherit; -} -a:hover { - color: #535bf2; -} - body { margin: 0; padding: 0;