From dbf1f62ca81eafe13bf058ac94877f378c99114b Mon Sep 17 00:00:00 2001 From: zwlucas Date: Tue, 1 Apr 2025 09:18:15 -0300 Subject: responsive web --- app/confirmar/page.tsx | 144 +++++++++++++++++---------------- app/layout.tsx | 2 +- app/listagem/page.tsx | 2 +- app/obrigado/page.tsx | 138 ++++++++++++++++---------------- app/page.tsx | 210 ++++++++++++++++++++++++------------------------- app/votar/page.tsx | 88 ++++++++++----------- 6 files changed, 299 insertions(+), 285 deletions(-) diff --git a/app/confirmar/page.tsx b/app/confirmar/page.tsx index 61c7773..a8b6f1c 100644 --- a/app/confirmar/page.tsx +++ b/app/confirmar/page.tsx @@ -63,77 +63,89 @@ export default function ConfirmPage() { }; return ( -
-
-
-
-
- JUSTIÇA ELEITORAL -
-
+
+
+
+
+
+ JUSTIÇA ELEITORAL ESTUDANTIL +
+
+
+
+ + + + + CONFIRME SEUS DADOS + + + Verifique se as informações estão corretas + + + +
+
+
+ RM: +
+
+ {rm} +
+ +
+ Nome: +
+
+ {nome} +
+ +
+ CPF: +
+
+ {maskCPF(cpf)} +
- - - CONFIRME SEUS DADOS - - Verifique se as informações estão corretas - - - -
-
-
RM:
-
{rm}
- -
Nome:
-
{nome}
- -
CPF:
-
- {maskCPF(cpf)} -
-
-
- -
-
- -
- ATENÇÃO: Verifique se seus dados estão - corretos. Caso as informações estejam incorretas, seu voto não - será computado. -
-
-
- -
- Estas informações estão corretas? -
-
- - - - -
- -
-
- © {new Date().getFullYear()} Justiça Eleitoral Estudantil +
+
+ +
+ ATENÇÃO: Verifique se seus dados estão + corretos. Caso as informações estejam incorretas, seu voto não + será computado. +
+ +
+ Estas informações estão corretas? +
+ + + + + + + +
+
+ © {new Date().getFullYear()} Justiça Eleitoral Estudantil +
+
); diff --git a/app/layout.tsx b/app/layout.tsx index cc5ccbe..7923b04 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -9,7 +9,7 @@ const roboto = Roboto({ }); export const metadata: Metadata = { - title: "Justiça Eleitoral - Sistema de Votação", + title: "Justiça Eleitoral Estudantil", description: "Eleições Estudantis", }; diff --git a/app/listagem/page.tsx b/app/listagem/page.tsx index 10f0bcc..c15cdf0 100644 --- a/app/listagem/page.tsx +++ b/app/listagem/page.tsx @@ -57,7 +57,7 @@ export default function ListVotes() {
- JUSTIÇA ELEITORAL + JUSTIÇA ELEITORAL ESTUDANTIL
diff --git a/app/obrigado/page.tsx b/app/obrigado/page.tsx index 718e122..7234012 100644 --- a/app/obrigado/page.tsx +++ b/app/obrigado/page.tsx @@ -92,77 +92,79 @@ export default function ObrigadoPage() { }, [rm, name, cpf, option]); return ( -
-
-
-
-
- JUSTIÇA ELEITORAL -
-
-
+
+
+
+
+
+ JUSTIÇA ELEITORAL ESTUDANTIL
+
+
+
- - -
- {saveStatus === "loading" ? ( -
- ) : saveStatus === "success" ? ( - - ) : ( - - )} -
- - {saveStatus === "loading" - ? "PROCESSANDO SEU VOTO..." - : saveStatus === "success" - ? "VOTO REGISTRADO COM SUCESSO!" - : "ERRO AO REGISTRAR VOTO"} - - - {saveStatus === "success" ? "FIM" : ""} - -
- - {saveStatus === "loading" ? ( -

- Aguarde enquanto registramos seu voto... -

- ) : saveStatus === "success" ? ( - <> -

- Você votou em:{" "} - {option} -

-

- Obrigado por participar das eleições. -

-

- Retornando à tela inicial em {countdown} segundos... -

- - ) : ( - <> -

{errorMessage}

-

- Retornando à tela inicial em {countdown} segundos... -

- - )} -
-
- -
-
- © {new Date().getFullYear()} Justiça Eleitoral Estudantil -
+ + +
+ {saveStatus === "loading" ? ( +
+ ) : saveStatus === "success" ? ( + + ) : ( + + )}
+ + {saveStatus === "loading" + ? "PROCESSANDO SEU VOTO..." + : saveStatus === "success" + ? "VOTO REGISTRADO COM SUCESSO!" + : "ERRO AO REGISTRAR VOTO"} + + + {saveStatus === "success" ? "FIM" : ""} + +
+ + {saveStatus === "loading" ? ( +

+ Aguarde enquanto registramos seu voto... +

+ ) : saveStatus === "success" ? ( + <> +

+ Você votou em:{" "} + {option} +

+

+ Obrigado por participar das eleições. +

+

+ Retornando à tela inicial em {countdown} segundos... +

+ + ) : ( + <> +

+ {errorMessage} +

+

+ Retornando à tela inicial em {countdown} segundos... +

+ + )} +
+
+ +
+
+ © {new Date().getFullYear()} Justiça Eleitoral Estudantil +
+
); diff --git a/app/page.tsx b/app/page.tsx index 56ac851..eb00949 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -112,117 +112,117 @@ export default function Home() { }; return ( -
+
-
-
-
- JUSTIÇA ELEITORAL -
-
-
+
+
+
+ JUSTIÇA ELEITORAL ESTUDANTIL +
+
+
+ + + + ELEIÇÕES ESTUDANTIS + + Identificação do Eleitor + + + +
+
+ + { + setRm(e.target.value); + if (errors.rm) { + setErrors((prev) => ({ ...prev, rm: undefined })); + } + }} + placeholder="Digite os 5 dígitos do seu RM" + className="border-2 border-[#004a93]" + maxLength={5} + /> + {errors.rm && ( +

{errors.rm}

+ )} +
- - - ELEIÇÕES ESTUDANTIS - - Identificação do Eleitor - - - - -
- - { - setRm(e.target.value); - if (errors.rm) { - setErrors((prev) => ({ ...prev, rm: undefined })); - } - }} - placeholder="Digite os 5 dígitos do seu RM" - className="border-2 border-[#004a93]" - maxLength={5} - /> - {errors.rm && ( -

{errors.rm}

- )} -
- -
- - { - setNome(e.target.value); - if (errors.nome) { - setErrors((prev) => ({ ...prev, nome: undefined })); - } - }} - placeholder="Digite seu nome completo" - className="border-2 border-[#004a93]" - /> - {errors.nome && ( -

{errors.nome}

- )} -
- -
- - - {errors.cpf && ( -

{errors.cpf}

- )} -
- - - -
- - Seu voto é secreto e seguro. - -
- -
-
- © {new Date().getFullYear()} Justiça Eleitoral Estudantil +
+ + { + setNome(e.target.value); + if (errors.nome) { + setErrors((prev) => ({ ...prev, nome: undefined })); + } + }} + placeholder="Digite seu nome completo" + className="border-2 border-[#004a93]" + /> + {errors.nome && ( +

{errors.nome}

+ )}
+ +
+ + + {errors.cpf && ( +

{errors.cpf}

+ )} +
+ + + + + + Seu voto é secreto e seguro. + + + +
+
+ © {new Date().getFullYear()} Justiça Eleitoral Estudantil
+
); } diff --git a/app/votar/page.tsx b/app/votar/page.tsx index 436c167..5ca0cb4 100644 --- a/app/votar/page.tsx +++ b/app/votar/page.tsx @@ -46,55 +46,55 @@ export default function VotarPage() { }; return ( -
-
-
-
-
- JUSTIÇA ELEITORAL -
-
-
+
+
+
+
+
+ JUSTIÇA ELEITORAL ESTUDANTIL
+
+
+
- - - SEU VOTO PARA - - CHAPA DO GREMIO ESTUDANTIL - - - -
- - -
-
- Toque no quadro correspondente para VOTAR -
-
-
+ + + SEU VOTO PARA + + CHAPA DO GREMIO ESTUDANTIL + + + +
+ + +
+
+ Toque no quadro correspondente para VOTAR +
+
+
-
-
- © {new Date().getFullYear()} Justiça Eleitoral Estudantil -
+
+
+ © {new Date().getFullYear()} Justiça Eleitoral Estudantil
+
); } -- cgit v1.2.3