-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Integrate Footer into global layout for consistent design (#69)
* feat: Integrate Footer into global layout for consistent design - Added Footer component to the global layout to ensure it appears on all pages, including the Marketplace. - Removed Footer import from the landing page to prevent redundancy. - Validated the implementation to ensure consistent design and functionality across the application. - Resolved inconsistencies in Footer visibility for a better user experience. * chore: remove console.log from Footer component * chore: remove comments and revert package.json to correct versions
- Loading branch information
Showing
6 changed files
with
1,656 additions
and
774 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,41 @@ | ||
import { Theme } from "@radix-ui/themes"; | ||
import type { Metadata } from "next"; | ||
import localFont from "next/font/local"; | ||
import Footer from "./components/ui/footer"; | ||
import "./globals.css"; | ||
|
||
const geistSans = localFont({ | ||
src: "./fonts/GeistVF.woff", | ||
variable: "--font-geist-sans", | ||
weight: "100 900", | ||
src: "./fonts/GeistVF.woff", | ||
variable: "--font-geist-sans", | ||
weight: "100 900", | ||
}); | ||
const geistMono = localFont({ | ||
src: "./fonts/GeistMonoVF.woff", | ||
variable: "--font-geist-mono", | ||
weight: "100 900", | ||
src: "./fonts/GeistMonoVF.woff", | ||
variable: "--font-geist-mono", | ||
weight: "100 900", | ||
}); | ||
|
||
export const metadata: Metadata = { | ||
title: "SafeSwap", | ||
description: "A safe marketplace for buyers and sellers", | ||
title: "SafeSwap", | ||
description: "A safe marketplace for buyers and sellers", | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
children: React.ReactNode; | ||
}>) { | ||
return ( | ||
<html lang="en"> | ||
<body | ||
className={`${geistSans.variable} ${geistMono.variable} antialiased`} | ||
> | ||
<Theme>{children}</Theme> | ||
</body> | ||
</html> | ||
); | ||
return ( | ||
<html lang="en"> | ||
<body | ||
className={`${geistSans.variable} ${geistMono.variable} antialiased`} | ||
> | ||
<Theme> | ||
{children} | ||
|
||
<Footer /> | ||
</Theme> | ||
</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
"use client"; | ||
|
||
import { FeatureSection } from "@/app/components/ui/feature-section"; | ||
import Header from "@/app/components/ui/header"; | ||
import { HeroSection } from "@/app/components/ui/hero-section"; | ||
import { StatsSection } from "@/app/components/ui/stats-section"; | ||
import { Footer } from "./components/ui/footer"; | ||
|
||
|
||
export default function Home() { | ||
return ( | ||
<main className="flex min-h-screen flex-col"> | ||
<Header /> | ||
<HeroSection /> | ||
<StatsSection /> | ||
<FeatureSection /> | ||
<Footer /> | ||
</main> | ||
); | ||
} |
Oops, something went wrong.