diff --git a/SerpentRace_Backend/.env.dev b/SerpentRace_Backend/.env.dev
index 0979d16d..7f280d5f 100644
--- a/SerpentRace_Backend/.env.dev
+++ b/SerpentRace_Backend/.env.dev
@@ -32,3 +32,10 @@ MINIO_USE_SSL=false
MAX_SPECIAL_FIELDS_PERCENTAGE=67
MAX_GENERATION_TIME_SECONDS=20
GENERATION_ERROR_TOLERANCE=15
+
+# EMAIL SERVICE CONFIGURATION
+EMAIL_HOST=smtp.gmail.com
+EMAIL_PORT=587
+EMAIL_USER=your_email@domain.com
+EMAIL_PASS=your_email_password
+EMAIL_FROM=noreply@serpentrace.com
\ No newline at end of file
diff --git a/SerpentRace_Frontend/src/api/userApi.js b/SerpentRace_Frontend/src/api/userApi.js
index db92ba47..7a393fdc 100644
--- a/SerpentRace_Frontend/src/api/userApi.js
+++ b/SerpentRace_Frontend/src/api/userApi.js
@@ -73,3 +73,13 @@ export const verifyEmail = async (token) => {
throw error
}
}
+
+// Get current user's game statistics
+export const getUserStats = async () => {
+ try {
+ const response = await apiClient.get("/users/me/stats")
+ return response.data
+ } catch (error) {
+ throw error
+ }
+}
diff --git a/SerpentRace_Frontend/src/components/Landingpage/LandingPage.jsx b/SerpentRace_Frontend/src/components/Landingpage/LandingPage.jsx
index 86f1f507..b28357e3 100644
--- a/SerpentRace_Frontend/src/components/Landingpage/LandingPage.jsx
+++ b/SerpentRace_Frontend/src/components/Landingpage/LandingPage.jsx
@@ -55,7 +55,7 @@ const LandingPage = ({ onNavigateToPlay, onNavigateToAuth }) => {
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.7, delay: 1 }}
>
-
+
diff --git a/SerpentRace_Frontend/src/pages/Landing/Landingpage.jsx b/SerpentRace_Frontend/src/pages/Landing/Landingpage.jsx
index 8488dbc2..50758c40 100644
--- a/SerpentRace_Frontend/src/pages/Landing/Landingpage.jsx
+++ b/SerpentRace_Frontend/src/pages/Landing/Landingpage.jsx
@@ -1,23 +1,23 @@
// src/pages/Landing/Landingpage.jsx
// Főoldal - Landing Page
-import { useState } from "react"
+
+import { useNavigate } from "react-router-dom"
import Navbar from "../../components/Navbar/Navbar"
import Footer from "../../components/Footer/Footer.jsx"
import Background from "../../assets/backgrounds/Background.jsx"
import LandingPage from "../../components/Landingpage/LandingPage.jsx"
export default function LandingPageMain() {
- // Navigációs callbackok
+ const navigate = useNavigate();
+
const handleNavigateToPlay = () => {
- // Itt lehet navigálni a játék oldalra
- alert("Navigáció a játék oldalra")
- }
+ navigate("/login");
+ };
const handleNavigateToAuth = () => {
- // Itt lehet navigálni a bejelentkezés oldalra
- alert("Navigáció a bejelentkezés oldalra")
- }
+ navigate("/register");
+ };
return (
@@ -32,5 +32,5 @@ export default function LandingPageMain() {
- )
+ );
}
diff --git a/SerpentRace_Frontend/src/pages/Report/Reports.jsx b/SerpentRace_Frontend/src/pages/Report/Reports.jsx
index 27fa4526..2340ae51 100644
--- a/SerpentRace_Frontend/src/pages/Report/Reports.jsx
+++ b/SerpentRace_Frontend/src/pages/Report/Reports.jsx
@@ -3,6 +3,7 @@ import { useState } from "react"
import Navbar from "../../components/Navbar/Navbar.jsx"
import Footer from "../../components/Footer/Footer.jsx"
import Background from "../../assets/backgrounds/Background.jsx"
+import { getUserStats } from "../../api/userApi.js"
export default function Reports() {
return (