-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.js
32 lines (28 loc) · 813 Bytes
/
layout.js
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
import { Inter } from "next/font/google";
import "./globals.css";
import "@/app/fonts/Tanker/Fonts/WEB/css/tanker.css";
import styles from "@/app/page.module.css";
import Header from "./components/Header/Header";
const inter = Inter({ subsets: ["latin"] });
export const metadata = {
title: "Kick Ass Todo App",
description: "A Todo App where your todo's won't be forgotten.",
};
let colorClass = "";
/*
if (usePathname() === "/tinder") {
colorClass = "bgViolet";
}
*/
export default function RootLayout({ children }) {
return (
<html lang="en">
<body className={`${colorClass} ${inter.className}`}>
<Header title={`Your tasks`} />
<main className={styles.main}>
<div className={styles.main__inner}>{children}</div>
</main>
</body>
</html>
);
}