Visual edit in Lovable
Edited UI in Lovable
This commit is contained in:
@@ -1,28 +1,23 @@
|
|||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Bell } from 'lucide-react';
|
import { Bell } from 'lucide-react';
|
||||||
import { useAuth } from '@/contexts/auth';
|
import { useAuth } from '@/contexts/auth';
|
||||||
|
|
||||||
const Header: React.FC = () => {
|
const Header: React.FC = () => {
|
||||||
const { user } = useAuth();
|
const {
|
||||||
|
user
|
||||||
|
} = useAuth();
|
||||||
const userName = user?.user_metadata?.username || '익명';
|
const userName = user?.user_metadata?.username || '익명';
|
||||||
|
return <header className="py-8">
|
||||||
return (
|
|
||||||
<header className="py-8">
|
|
||||||
<div className="flex justify-between items-center">
|
<div className="flex justify-between items-center">
|
||||||
<div>
|
<div>
|
||||||
<h1 className="text-2xl font-bold neuro-text">
|
<h1 className="text-2xl font-bold neuro-text">
|
||||||
{user ? `${userName}님, 반갑습니다` : '반갑습니다'}
|
{user ? `${userName}님, 반갑습니다` : '반갑습니다'}
|
||||||
</h1>
|
</h1>
|
||||||
<p className="text-gray-500">젤리의 적자탈출</p>
|
<p className="text-gray-500 text-left">젤리의 적자탈출</p>
|
||||||
</div>
|
</div>
|
||||||
<button className="neuro-flat p-2.5 rounded-full">
|
<button className="neuro-flat p-2.5 rounded-full">
|
||||||
<Bell size={20} className="text-gray-600" />
|
<Bell size={20} className="text-gray-600" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>;
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Header;
|
export default Header;
|
||||||
Reference in New Issue
Block a user