feat(chapter3): replicate styled Next.js app setup
Add the App Router page group, nested layouts, Tailwind and shadcn styling, shared header components, local fonts and backgrounds, Ant Design demo support, and compatible lint scripts and dependencies.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// src/app/_components/header/logo.tsx
|
||||
import Image from 'next/image';
|
||||
import Link from 'next/link';
|
||||
|
||||
import Avatar from './avatar.svg';
|
||||
import $styles from './logo.module.css';
|
||||
|
||||
export const HeaderLogo = () => (
|
||||
<Link href="/" className={$styles.link}>
|
||||
<Image
|
||||
src={Avatar}
|
||||
alt="avatar logo"
|
||||
sizes="100vw"
|
||||
style={{
|
||||
width: '100%',
|
||||
height: 'auto',
|
||||
}}
|
||||
/>
|
||||
</Link>
|
||||
);
|
||||
Reference in New Issue
Block a user