Download themes/example/components/Header.js from sandy-try/blog: direct link, hf CLI and curl.
- Browser
- Download file 769 Bytes
-
https://huggingface.co/spaces/sandy-try/blog/resolve/main/themes/example/components/Header.js
- Command line
-
hf download hf://spaces/sandy-try/blog/themes/example/components/Header.js
-
curl -L -o Header.js https://huggingface.co/spaces/sandy-try/blog/resolve/main/themes/example/components/Header.js
769 Bytes
| import Link from 'next/link' | |
| import { siteConfig } from '@/lib/config' | |
| /** | |
| * 网站顶部 | |
| * @returns | |
| */ | |
| export const Header = (props) => { | |
| return ( | |
| <header className="w-full px-6 bg-white dark:bg-black relative z-10"> | |
| <div className="container mx-auto max-w-4xl md:flex justify-between items-center"> | |
| <Link | |
| href='/' | |
| className="py-6 w-full text-center md:text-left md:w-auto text-gray-dark no-underline flex justify-center items-center"> | |
| {siteConfig('TITLE')} | |
| </Link> | |
| <div className="w-full md:w-auto text-center md:text-right"> | |
| {/* 右侧文字 */} | |
| </div> | |
| </div> | |
| </header> | |
| ) | |
| } | |