-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1231 from Nishitbaria/main
Dark Mode is now Applied to Newsletter Component ✨
- Loading branch information
Showing
4 changed files
with
61 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
"use client" | ||
/** @format */ | ||
|
||
"use client"; | ||
|
||
import "@/styles/globals.css"; | ||
import { Inter } from "next/font/google"; | ||
|
||
|
||
const Navbar = dynamic(() => import('@/components/Navbar/Navbar')); | ||
import dynamic from 'next/dynamic'; | ||
const Navbar = dynamic(() => import("@/components/Navbar/Navbar")); | ||
import dynamic from "next/dynamic"; | ||
import Footer from "@/components/Footer/Footer"; | ||
import { ThemeProvider } from "@/components/theme/theme-provider"; | ||
import ScrollToTopButton from "@/components/ScrollButton/ScrollButton"; | ||
import { Suspense } from 'react'; | ||
import { Suspense } from "react"; | ||
import ToasterContext from "@/context/ToasterContext"; | ||
import Provider from "@/context/AuthContext"; | ||
// Import & exporting the metadata | ||
|
||
// Import & exporting the metadata | ||
|
||
const inter = Inter({ subsets: ['latin'] }) | ||
const inter = Inter({ subsets: ["latin"] }); | ||
|
||
export default function RootLayout({ children }) { | ||
return ( | ||
<html lang="en"> | ||
<body className={`${inter.className} dark:bg-neutral-950`}> | ||
<Provider> | ||
<ThemeProvider attribute="class" defaultTheme="system" enableSystem> | ||
<Suspense fallback={<div>Loading...</div>}> | ||
|
||
<Navbar /> | ||
</Suspense> | ||
<ToasterContext /> | ||
{children} | ||
<Footer /> | ||
<ScrollToTopButton /> | ||
</ThemeProvider> | ||
<ThemeProvider attribute="class" defaultTheme="system" enableSystem> | ||
<Suspense fallback={<div>Loading...</div>}> | ||
<Navbar /> | ||
</Suspense> | ||
<ToasterContext /> | ||
{children} | ||
<Footer /> | ||
<ScrollToTopButton /> | ||
</ThemeProvider> | ||
</Provider> | ||
</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,22 +1,25 @@ | ||
/** @format */ | ||
|
||
"use client"; | ||
import BkCards from "@/components/BkCards/BkCards"; | ||
import CgCards from "@/components/Home/CgCards/CgCards"; | ||
import TNYCards from "@/components/TNYCards/BkCards"; | ||
import ImgSection from "@/components/Home/ImgSection/ImgSection"; | ||
import { Books } from "@/utils/Constants"; | ||
import axios from "axios"; | ||
import { resolve } from "path"; | ||
import { useEffect, useState } from "react"; | ||
import NewsLetter from "@/components/Footer/NewsLetter/NewsLetter"; | ||
|
||
export default function Home() { | ||
return ( | ||
<section className="min-h-screen items-center justify-between py-12"> | ||
<ImgSection txt={["Start Reading", "Be a Reader"]} /> | ||
<div className="sm:max-w-xl md:max-w-3xl lg:max-w-5xl mx-auto"> | ||
<CgCards /> | ||
<BkCards bkhead="Bestselling Books & Audiobooks" books={Books} /> | ||
<TNYCards bkhead="Current New York Times Bestsellers" /> | ||
</div> | ||
</section> | ||
<> | ||
<section className="min-h-screen items-center justify-between py-12"> | ||
<ImgSection txt={["Start Reading", "Be a Reader"]} /> | ||
<div className="sm:max-w-xl md:max-w-3xl lg:max-w-5xl mx-auto"> | ||
<CgCards /> | ||
<BkCards bkhead="Bestselling Books & Audiobooks" books={Books} /> | ||
<TNYCards bkhead="Current New York Times Bestsellers" /> | ||
</div> | ||
<NewsLetter /> | ||
</section> | ||
</> | ||
); | ||
} |
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