Implement user authentication

Implement login functionality and user authentication logic.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-15 06:50:56 +00:00
parent bfb446fe1a
commit 33f1a94a81
8 changed files with 387 additions and 112 deletions

View File

@@ -1,13 +1,20 @@
import React from 'react';
import { Bell } from 'lucide-react';
import { useAuth } from '@/contexts/AuthContext';
const Header: React.FC = () => {
const { user } = useAuth();
const userName = user?.user_metadata?.username || '익명';
return (
<header className="py-8">
<div className="flex justify-between items-center">
<div>
<h1 className="text-2xl font-bold neuro-text"></h1>
<h1 className="text-2xl font-bold neuro-text">
{user ? `${userName}님, 반갑습니다` : '반갑습니다'}
</h1>
<p className="text-gray-500"> </p>
</div>
<button className="neuro-flat p-2.5 rounded-full">