mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:46:29 +00:00
35 lines
1.5 KiB
TypeScript
35 lines
1.5 KiB
TypeScript
'use client'
|
|
|
|
import { FC } from 'react';
|
|
import Link from 'next/link';
|
|
import { useRouter } from 'next/navigation';
|
|
import { cn } from '@/lib/utils';
|
|
|
|
type Props = {
|
|
className?: string
|
|
};
|
|
|
|
const Logo: FC<Props> = ({ className }) => {
|
|
const router = useRouter()
|
|
|
|
return (
|
|
<>
|
|
{/* <Link href='/' className={cn('inline-flex items-center space-x-3 hover:opacity-70 duration-300', className)} onClick={() => router.refresh()}>
|
|
<div className='flex justify-center items-center w-10 h-10 rounded cursor-pointer float-left duration-500 hover:rotate-[360deg]'>
|
|
<img alt='logo' loading='lazy' src='/assets/LOGO_HATs.png' className='h-full w-full' />
|
|
</div>
|
|
<div>
|
|
<h1 className='origin-left font-extrabold duration-300 text-xl'>H.<span className='text-his'>A</span>.T.<span className='text-his'>s</span></h1>
|
|
<p className='text-[8px] -mt-1 font-medium text-muted-foreground'>HIS Attendance Task System</p>
|
|
</div>
|
|
</Link> */}
|
|
<Link href='/' className={cn('inline-flex items-center space-x-3 hover:opacity-70 duration-300', className)} onClick={() => router.refresh()}>
|
|
<div className='flex justify-center items-center h-12 max-w-[140px] rounded cursor-pointer float-left duration-500'>
|
|
<img alt='logo' loading='lazy' src='/assets/LOGO_HIS_HATs_NI.png' className='h-full w-full' />
|
|
</div>
|
|
</Link>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default Logo; |