Skip to content

Commit

Permalink
Merge pull request #341 from Samdevtechnology/feat/HNG-37-create-land…
Browse files Browse the repository at this point in the history
…ing-page

Feat/hng 37 create landing page
  • Loading branch information
shalomtaiwo authored Jul 22, 2024
2 parents ccf0ab0 + c6f88cd commit 61d13ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/components/ui/header.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import account from "/images/account.png";
import logo1 from "/images/logodesktop.png";
import logo2 from "/images/logomobile.png";
import notification from "/images/notification.png";
import { FC, useState } from "react";

import account from "../../../public/images/account.png";
import logo1 from "../../../public/images/logodesktop.png";
import logo2 from "../../../public/images/logomobile.png";
import notification from "../../../public/images/notification.png";
import MenuButton from "../sidebar/menu-button";
import MobileSidebarComponent from "../sidebar/sidebar";

Expand All @@ -23,14 +23,14 @@ const Header: FC = () => {
)}
<div className="flex items-center justify-center">
<img src={logo1} alt="logo" className="mr-2.5 hidden lg:block" />
<div className="mr-6">
<div className="mr-6 md:hidden">
<MenuButton
IsMenuOpen={isMenuOpen}
isMenuOpen={isMenuOpen}
handleToggleMenu={handleToggleMenu}
/>
</div>
<img src={logo2} alt="logo" className="mr-2.5 block md:hidden" />
<h3 className="text-center text-[1.75rem] font-semibold leading-8 text-muted-foreground">
<h3 className="text-center text-2xl font-semibold leading-8 text-muted-foreground md:text-[1.75rem]">
HNG Boilerplate
</h3>
</div>
Expand Down
2 changes: 2 additions & 0 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
import type { ReactNode } from "react";

import FooterLight from "./components/ui/footerLight";
import Header from "./components/ui/header";
import styles from "./styles/global.css?url";

export const links: LinksFunction = () => [
Expand All @@ -29,6 +30,7 @@ export function Layout({ children }: { children: ReactNode }) {
<body>
<div>
<main>
<Header />
{children}
<FooterLight />
</main>
Expand Down

0 comments on commit 61d13ca

Please sign in to comment.