andrewjamesford / lms-nextjs

This is the codebase for a series on building an LMS app with NextJS and SupaBase for Youtube called Code with Andrew Ford. See my blog link below to learn more.
https://andrewford.co.nz/articles/build-a-full-stack-next-js-planning/
GNU General Public License v3.0
10 stars 4 forks source link

Header component #1

Closed andrewjamesford closed 1 week ago

andrewjamesford commented 11 months ago

A react header component contains header components like logo and navigation. Will show on every page in the web app. Responsive design:

OmarKing015 commented 11 months ago
const Header = () => {

  return (
    <header className="bg-gray-800 text-white">
      <div className="container mx-auto flex items-center justify-between py-4">
<div className="text-2xl font-bold">My Logo</div>
      </div>

//button of navbar
<nav>
      <ul className="flex space-x-4">
        <li>
          <a href="/" className="hover:text-gray-300">Home</a>
        </li>
        <li>
          <a href="/about" className="hover:text-gray-300">About</a>
        </li>
        <li>
          <a href="/contact" className="hover:text-gray-300">Contact</a>
        </li>
      </ul>
    </nav>
    </header>
  );
};

export default Header;

this is made by tailwind and react

andrewjamesford commented 1 week ago

Will re-look at UI theming - Possibly TailwindCSS