37 lines
844 B
JavaScript
37 lines
844 B
JavaScript
import "./globals.css";
|
|
import { Toaster } from "react-hot-toast";
|
|
|
|
export const metadata = {
|
|
title: "宠物用品商城",
|
|
description: "专业的宠物用品购物平台,为您的宠物提供优质商品",
|
|
keywords: "宠物用品,宠物商城,宠物食品,宠物玩具",
|
|
};
|
|
|
|
export const viewport = {
|
|
width: "device-width",
|
|
initialScale: 1,
|
|
maximumScale: 1,
|
|
userScalable: 0,
|
|
};
|
|
|
|
export default function RootLayout({ children }) {
|
|
return (
|
|
<html lang="zh-CN">
|
|
<body>
|
|
<div className="w-full flex justify-center">
|
|
<div className="w-[480px]">{children}</div>
|
|
</div>
|
|
<Toaster
|
|
toastOptions={{
|
|
duration: 2000,
|
|
style: {
|
|
background: "#333",
|
|
color: "#fff",
|
|
},
|
|
}}
|
|
/>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|