2024-07-06 11:05:19 +08:00
|
|
|
"use client";
|
2024-06-25 20:18:37 +08:00
|
|
|
import { Inter } from "next/font/google";
|
2024-07-06 11:05:19 +08:00
|
|
|
import React, { useEffect } from "react";
|
2024-06-25 20:18:37 +08:00
|
|
|
import "./globals.css";
|
2024-06-27 18:34:03 +08:00
|
|
|
import BottomNav from "../components/BottomNav";
|
2024-07-08 20:07:36 +08:00
|
|
|
import { Provider } from "react-redux";
|
|
|
|
import store from "../store";
|
2024-07-12 22:52:48 +08:00
|
|
|
import withAuth from "@/components/WithAuth";
|
2024-07-22 16:07:41 +08:00
|
|
|
import Head from "next/head";
|
2024-06-25 20:18:37 +08:00
|
|
|
const inter = Inter({ subsets: ["latin"] });
|
2024-06-24 22:12:13 +08:00
|
|
|
|
2024-07-22 16:07:41 +08:00
|
|
|
const metadata = {
|
2024-06-26 19:46:31 +08:00
|
|
|
title: "铁粉空间",
|
|
|
|
description: "与Ta永不失联",
|
|
|
|
keywords: [
|
|
|
|
"铁粉空间",
|
|
|
|
"铁粉空间APP",
|
|
|
|
"社交",
|
|
|
|
"网红",
|
|
|
|
"粉丝",
|
|
|
|
"创作者",
|
|
|
|
"变现",
|
|
|
|
"平台",
|
|
|
|
"铁粉",
|
|
|
|
"空间",
|
|
|
|
],
|
|
|
|
};
|
|
|
|
export const viewport = {
|
|
|
|
width: "device-width",
|
|
|
|
initialScale: 1,
|
|
|
|
maximumScale: 1,
|
|
|
|
userScalable: 0,
|
2024-06-25 20:18:37 +08:00
|
|
|
};
|
2024-06-24 22:12:13 +08:00
|
|
|
export default function RootLayout({ children }) {
|
|
|
|
return (
|
2024-07-22 19:43:20 +08:00
|
|
|
<html lang="zh-CN" className="bg-deepBg h-full" data-prefers-color-scheme="dark">
|
2024-07-22 16:07:41 +08:00
|
|
|
<Head>
|
|
|
|
<title>{metadata.title}</title>
|
|
|
|
<meta name="description" content={metadata.description} keywords={metadata.keywords}/>
|
|
|
|
</Head>
|
2024-07-22 19:43:20 +08:00
|
|
|
<body className={`${inter.className } h-full`}>
|
|
|
|
<main className={`w-full bg-deepBg h-full`}>
|
2024-07-12 22:52:48 +08:00
|
|
|
{withAuth(<Provider store={store}>{children}</Provider>)}
|
|
|
|
{/* <Provider store={store}>{children}</Provider> */}
|
2024-07-02 15:09:48 +08:00
|
|
|
</main>
|
2024-07-19 14:14:40 +08:00
|
|
|
<footer className="fixed bottom-0 left-0 w-screen bg-black">
|
2024-07-08 20:07:36 +08:00
|
|
|
<div>
|
|
|
|
<BottomNav />
|
|
|
|
</div>
|
|
|
|
</footer>
|
2024-06-27 18:34:03 +08:00
|
|
|
</body>
|
2024-06-24 22:12:13 +08:00
|
|
|
</html>
|
2024-06-25 20:18:37 +08:00
|
|
|
);
|
2024-06-24 22:12:13 +08:00
|
|
|
}
|