添加一些数据
This commit is contained in:
13
demo-next/app/globals.css
Normal file
13
demo-next/app/globals.css
Normal file
@@ -0,0 +1,13 @@
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
||||
}
|
||||
22
demo-next/app/layout.tsx
Normal file
22
demo-next/app/layout.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { Metadata } from "next";
|
||||
import "./globals.css";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "iFlow Engine - Next.js Demo",
|
||||
description: "iFlow Engine BIM Viewer Demo with Next.js + React",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<script src="/lib/iflow-engine.umd.js" defer></script>
|
||||
</head>
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
9
demo-next/app/page.tsx
Normal file
9
demo-next/app/page.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import BimViewer from "@/components/BimViewer";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<main style={{ width: "100vw", height: "100vh", overflow: "hidden" }}>
|
||||
<BimViewer />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user