diff --git a/src/components/Gratulation.jsx b/src/components/Gratulation.jsx
index 0544331..53e99e8 100644
--- a/src/components/Gratulation.jsx
+++ b/src/components/Gratulation.jsx
@@ -8,8 +8,9 @@ import Title from './Title'
import Paragraph from './Paragraph'
import { Link } from 'react-router-dom'
import { keyframes } from '@emotion/react';
-
-import trophy from '../assets/trophy-icon.svg'
+import { getToken } from '../api/usuarioApi';
+import trophy from '../assets/trophy-icon.svg';
+import Header from './header/Header';
const trophyAnimation = keyframes`
0% {
@@ -29,96 +30,125 @@ const Gratulation = () => {
const lingua = localStorage.getItem("lingua");
const linguaTexto = lingua === 'portugues' ? 'português' : 'alemão';
- return (
-
-
-
+ const handleLogin = async (lingua) => {
+ const email = localStorage.getItem('usuarioEmail')
+ try {
+ const token = await getToken(email).catch((error) => {
+ throw error;
+ });
+ lingua = lingua === 'português' ? 'alemao' : 'portugues';
+ localStorage.setItem('usuarioToken', token.access_token);
+ localStorage.setItem('lingua', lingua);
+ window.location.href = `/leseolympiade`;
+ }
+ catch (error) {
+ alert('Falha ao logar\n' + error);
+ }
+ };
- {/* Trophy icon with animation */}
-
+
+
-
-
-
-
-
-
+ {linguaTexto === 'português' ? (
+
+ ) :
+ (
+
+ )}
+ {/* Trophy icon with animation */}
+
- Realizar Novamente
-
-
+ >
+
+
+
+
+
+
+
+
-
-
+
+ >
)
}
diff --git a/src/components/header/Header.jsx b/src/components/header/Header.jsx
index c6be5ae..44b2fb3 100644
--- a/src/components/header/Header.jsx
+++ b/src/components/header/Header.jsx
@@ -42,7 +42,9 @@ const Header = () => {
return (
-
+
{/* window.location.href = "https://olimpiadas-lemmbra.webflow.io/#faq-row-3"}
style={{ color: 'white', fontSize: '2rem' }} // Increased size