-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlayout.tsx
50 lines (47 loc) · 1.78 KB
/
layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import "./globals.css";
import { Inter } from "next/font/google";
import Header from "@/components/header";
import ActiveSectionContext from "@/context/active-section-context";
import Footer from "@/components/footer";
import ThemeSwitch from "@/components/theme-switch";
import ThemeContextProvider from "@/context/theme-context";
import { SpeedInsights } from "@vercel/speed-insights/next";
import { Analytics } from "@vercel/analytics/react";
const inter = Inter({ subsets: ["latin"] });
export const metadata = {
title: "SatyumS Pathania | Portfolio",
description: "Designer | Developer | Coder",
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
// This is comment is being only for theme check
<html lang="en" className="!scroll-smooth">
<body
className={`${inter.className} bg-gray-50 dark:bg-gray-900 dark:text-gray-50 dark:text-opacity-90 text-gray-950 relative h-max pt-28 sm:pt-36`}
>
<div
className="bg-[#fbe2e3] -rotate-45 absolute top-[35rem] right-[5rem] h-[31.25rem] w-[31.25rem] -z-10 rounded-full blur-[10rem]
sm:w-[68.75rem] dark:bg-gradient-to-br from-[#fc00ff] to-[#00dbde]
"
></div>
<div
className="bg-[#dbd7fb] rotate-45 absolute top-[10rem] left-[15rem] h-[31.25rem] w-[50rem] -z-10 rounded-full blur-[10rem]
sm:w-[68.75rem] md:left-[-33rem] lg:left-[-28rem] xl:left-[-15rem] 2xl:left-[-5rem] dark:bg-gradient-to-tr from-[#8A2387] via-[#E94057] to-[#F27121]
"
></div>
<ThemeContextProvider>
<ActiveSectionContext>
<Header />
{children}
<Footer />
<ThemeSwitch />
</ActiveSectionContext>
</ThemeContextProvider>
</body>
</html>
);
}