tiefen_space_h5/app/layout.js

48 lines
1.1 KiB
JavaScript
Raw Normal View History

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";
import BottomNav from "../components/BottomNav";
2024-07-06 11:05:19 +08:00
import { Provider } from 'react-redux';
import store from '../store';
2024-06-25 20:18:37 +08:00
const inter = Inter({ subsets: ["latin"] });
2024-06-24 22:12:13 +08:00
export const metadata = {
2024-06-26 19:46:31 +08:00
title: "铁粉空间",
2024-07-06 11:05:19 +08:00
2024-06-26 19:46:31 +08:00
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-06 11:05:19 +08:00
<html lang="zh-CN" className="bg-deepBg" data-prefers-color-scheme="dark">
<body className={inter.className}>
2024-07-06 11:05:19 +08:00
2024-07-02 15:09:48 +08:00
<main
2024-07-06 11:05:19 +08:00
className={`h-screen fixed bottom-0 left-0 w-full bg-deepBg `}
>
2024-07-06 11:05:19 +08:00
<Provider store={store}>{children}</Provider>
<div className="fixed bottom-0 left-0 w-full bg-black"><BottomNav /></div>
2024-07-02 15:09:48 +08:00
</main>
</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
}