Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 34 additions & 89 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,132 +5,85 @@ import FooterWrapper from "@/components/layout/FooterWrapper";
import { AuthProvider } from "@/context/AuthContext";
import { GamificationProvider } from "@/context/GamificationContext";
import { RealTimeProvider } from "@/context/RealTimeContext";
import { AnimatedBackground } from "@/components/AnimatedBackground";
import { AnimatedBackground } from '@/components/AnimatedBackground';

import MaintenanceBanner from "@/components/layout/MaintenanceBanner";
import BackgroundMesh from "@/components/layout/BackgroundMesh";
import PageWrapper from "@/components/layout/PageWrapper";
import MaintenanceBanner from '@/components/layout/MaintenanceBanner';
import BackgroundMesh from '@/components/layout/BackgroundMesh';
import PageWrapper from '@/components/layout/PageWrapper';
import { ThemeProvider } from "@/components/providers/theme-provider";

import "./globals.css";

const inter = Inter({
subsets: ["latin"],
variable: "--font-inter",
});

const spaceGrotesk = Space_Grotesk({
subsets: ["latin"],
variable: "--font-space",
});

const inter = Inter({ subsets: ["latin"], variable: '--font-inter' });
const spaceGrotesk = Space_Grotesk({ subsets: ["latin"], variable: '--font-space' });
const barlowCondensed = Barlow_Condensed({
weight: ["900"],
subsets: ["latin"],
variable: "--font-barlow",
weight: ['900'],
subsets: ['latin'],
variable: '--font-barlow'
});

export const metadata: Metadata = {
metadataBase: new URL("https://devpath-website.web.app"),

metadataBase: new URL('https://devpath-website.web.app'),
title: {
default: "DevPath Community",
template: "%s | DevPath Community",
},

description:
"Join 50,000+ developers accelerating their coding skills through structured paths, real projects, and an active community.",

keywords: [
"DevPath",
"Coding Community",
"Developer Community",
"Learn to Code",
"Programming",
"Software Engineering",
"Web Development",
"App Development",
],

description: "Join 50,000+ developers accelerating their coding skills through structured paths, real projects, and an active community.",
keywords: ["DevPath", "Coding Community", "Developer Community", "Learn to Code", "Programming", "Software Engineering", "Web Development", "App Development"],
authors: [{ name: "DevPath Team" }],

creator: "DevPath Community",

publisher: "DevPath Community",

robots: {
index: true,
follow: true,

googleBot: {
index: true,
follow: true,
"max-video-preview": -1,
"max-image-preview": "large",
"max-snippet": -1,
'max-video-preview': -1,
'max-image-preview': 'large',
'max-snippet': -1,
},
},

openGraph: {
type: "website",
locale: "en_US",
url: "https://devpath-website.web.app",

title: "DevPath Community",

description:
"Join 50,000+ developers accelerating their coding skills through structured paths, real projects, and an active community.",

description: "Join 50,000+ developers accelerating their coding skills through structured paths, real projects, and an active community.",
siteName: "DevPath Community",

images: [
{
url: "/logo-circle.png",
url: "/DevPath-logo.png",
width: 800,
height: 600,
alt: "DevPath Community Logo",
},
],
},

twitter: {
card: "summary_large_image",

title: "DevPath Community",

description:
"Join 50,000+ developers accelerating their coding skills through structured paths, real projects, and an active community.",

images: ["/logo-circle.png"],

creator: "@DevPath_Community",
description: "Join 50,000+ developers accelerating their coding skills through structured paths, real projects, and an active community.",
images: ["/DevPath-logo.png"],
creator: "@DevPath_Community", // Assuming handle
Comment thread
devpathindcommunity-india marked this conversation as resolved.
},

icons: {
icon: "/logo-circle.png",
apple: "/logo-circle.png",
icon: '/DevPath-logo.png',
apple: '/DevPath-logo.png',
Comment thread
devpathindcommunity-india marked this conversation as resolved.
},
};

const jsonLd = {
"@context": "https://schema.org",

"@type": "Organization",

name: "DevPath Community",

url: "https://devpath-website.web.app",

logo: "https://devpath-website.web.app/logo-circle.png",

sameAs: [
"name": "DevPath Community",
"url": "https://devpath-website.web.app",
"logo": "https://devpath-website.web.app/DevPath-logo.png",
"sameAs": [
"https://twitter.com/DevPath_Community",
"https://www.linkedin.com/company/devpath-community",
"https://github.com/devpathindcommunity-india/DevPath-Web",
"https://github.com/devpathindcommunity-india/DevPath-Web"
],

description:
"A community of 50,000+ developers accelerating their coding skills through structured paths and real projects.",
"description": "A community of 50,000+ developers accelerating their coding skills through structured paths and real projects."
};

export default function RootLayout({
Expand All @@ -140,9 +93,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body
className={`${inter.variable} ${spaceGrotesk.variable} ${barlowCondensed.variable}`}
>
<body className={`${inter.variable} ${spaceGrotesk.variable} ${barlowCondensed.variable}`}>
<ThemeProvider
attribute="class"
defaultTheme="dark"
Expand All @@ -151,24 +102,18 @@ export default function RootLayout({
>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: JSON.stringify(jsonLd),
}}
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>

<AuthProvider>
<GamificationProvider>
<RealTimeProvider>
<AnimatedBackground />

{/* <BackgroundMesh /> */}

<MaintenanceBanner />

<Navbar />

<PageWrapper>{children}</PageWrapper>

<PageWrapper>
{children}
</PageWrapper>
<FooterWrapper />
</RealTimeProvider>
</GamificationProvider>
Expand All @@ -177,4 +122,4 @@ export default function RootLayout({
</body>
</html>
);
}
}
Loading