This commit is contained in:
Sándor Máté Magony
2025-05-12 09:51:35 +02:00
parent 213b0d9008
commit edcfe3cf55
3 changed files with 7 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ class FelhasznaloFeltoltes extends Seeder
], [ ], [
'nev' => 'Felhasználó', 'nev' => 'Felhasználó',
'email' => 'felhasznalo@gmail.com', 'email' => 'felhasznalo@gmail.com',
'felh_nev' => 'felhaszalo', 'felh_nev' => 'felhasznalo',
'jelszo' => Hash::make('felhasznalo'), 'jelszo' => Hash::make('felhasznalo'),
'is_admin' => false, 'is_admin' => false,
'created_at' => now(), 'created_at' => now(),

View File

@@ -94,7 +94,7 @@ export default function HozzaadForm() {
}; };
return ( return (
<div className="flex justify-center items-center min-h-screen bg-yellow-100"> <div className="flex justify-center items-center min-h-screen bg-yellow-100 my-12">
<form onSubmit={handleSubmit} className="bg-white p-6 rounded-lg shadow-lg w-96 space-y-4"> <form onSubmit={handleSubmit} className="bg-white p-6 rounded-lg shadow-lg w-96 space-y-4">
<h2 className="text-2xl font-bold text-center">Adjon hozzá nyilvános mosdót, ha nem találja az oldalon</h2> <h2 className="text-2xl font-bold text-center">Adjon hozzá nyilvános mosdót, ha nem találja az oldalon</h2>

View File

@@ -1,6 +1,6 @@
import { useState } from "react"; import { useState } from "react";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import { Menu, X } from "lucide-react"; import { Menu, X, User } from "lucide-react";
import { useAuth } from "../Bejel_Regisz/AuthContext"; import { useAuth } from "../Bejel_Regisz/AuthContext";
export default function Menusor() { export default function Menusor() {
@@ -101,6 +101,10 @@ export default function Menusor() {
Kijelentkezés Kijelentkezés
</button> </button>
</li> </li>
<li className="flex items-center space-x-2 px-4 py-2">
<User size={20} />
<span>{user.felh_nev}</span>
</li>
</ul> </ul>
</nav> </nav>
); );