Add symbol to home header
Adds a symbol to the left side of the welcome message and app description in the home header.
This commit is contained in:
@@ -1,23 +1,41 @@
|
|||||||
|
|
||||||
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 {
|
const {
|
||||||
user
|
user
|
||||||
} = useAuth();
|
} = 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>
|
||||||
|
<div className="flex items-center mb-1">
|
||||||
|
<img
|
||||||
|
src="/zellyy.png"
|
||||||
|
alt="Zellyy"
|
||||||
|
className="w-6 h-6 mr-2"
|
||||||
|
/>
|
||||||
<h1 className="text-2xl font-bold neuro-text">
|
<h1 className="text-2xl font-bold neuro-text">
|
||||||
{user ? `${userName}님, 반갑습니다` : '반갑습니다'}
|
{user ? `${userName}님, 반갑습니다` : '반갑습니다'}
|
||||||
</h1>
|
</h1>
|
||||||
|
</div>
|
||||||
|
<div className="flex items-center">
|
||||||
|
<img
|
||||||
|
src="/zellyy.png"
|
||||||
|
alt="Zellyy"
|
||||||
|
className="w-4 h-4 mr-2"
|
||||||
|
/>
|
||||||
<p className="text-gray-500 text-left">젤리의 적자탈출</p>
|
<p className="text-gray-500 text-left">젤리의 적자탈출</p>
|
||||||
</div>
|
</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