Spaces:
Sleeping
Sleeping
Download frontend/src/components/Header.js from notha99y/timetablev2: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/spaces/notha99y/timetablev2/resolve/main/frontend/src/components/Header.js
- Command line
-
hf download hf://spaces/notha99y/timetablev2/frontend/src/components/Header.js
-
curl -L -o Header.js https://huggingface.co/spaces/notha99y/timetablev2/resolve/main/frontend/src/components/Header.js
1.3 kB
| import React from 'react'; | |
| import DarkModeToggle from './DarkModeToggle'; | |
| const Header = () => { | |
| return ( | |
| <header className="bg-white dark:bg-gray-800 shadow-sm border-b border-gray-200 dark:border-gray-700 transition-colors duration-200"> | |
| <div className="container mx-auto px-4 py-4 md:py-6"> | |
| <div className="flex items-center justify-between"> | |
| <div className="flex items-center space-x-3 md:space-x-4"> | |
| <img | |
| src="/Curtin-Singapore-logo.png" | |
| alt="Curtin Singapore Logo" | |
| className="h-10 md:h-12 w-auto flex-shrink-0" | |
| /> | |
| <div className="min-w-0 flex-1"> | |
| <h1 className="text-xl md:text-3xl font-bold text-gray-900 dark:text-white truncate"> | |
| Timetable Picker | |
| </h1> | |
| <p className="text-sm md:text-base text-gray-600 dark:text-gray-300 mt-1 hidden sm:block"> | |
| Find optimal class combinations for your modules | |
| </p> | |
| <p className="text-xs text-gray-600 dark:text-gray-300 mt-1 sm:hidden"> | |
| Find optimal class combinations | |
| </p> | |
| </div> | |
| </div> | |
| <DarkModeToggle /> | |
| </div> | |
| </div> | |
| </header> | |
| ); | |
| }; | |
| export default Header; |