diff --git a/.vscode/settings.json b/.vscode/settings.json index 57f397c..c27ad7d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,5 @@ { - "svn.ignoreMissingSvnWarning": true -} + "svn.ignoreMissingSvnWarning": true, + "typescript.tsdk": "node_modules/.pnpm/typescript@5.0.2/node_modules/typescript/lib", + "typescript.enablePromptUseWorkspaceTsdk": true +} \ No newline at end of file diff --git a/app/layout.tsx b/app/layout.tsx new file mode 100644 index 0000000..45c8c1a --- /dev/null +++ b/app/layout.tsx @@ -0,0 +1,29 @@ +import 'styles/globals.css'; +import RUAThemeProvider from './theme-provider'; + +export const metadata = { + title: 'RUA', +}; + +export default function RootLayout({ + children, +}: { + children: React.ReactNode; +}) { + return ( + + + + + + + + {children} + + + ); +} diff --git a/app/page.tsx b/app/page.tsx new file mode 100644 index 0000000..8773ca7 --- /dev/null +++ b/app/page.tsx @@ -0,0 +1,32 @@ +import clsx from 'clsx'; +import { gltfLoader, manager } from 'lib/gltf-loader'; +import { getMousePosition } from 'lib/utils'; +import dynamic from 'next/dynamic'; +import Head from 'next/head'; +import Image from 'next/image'; +import { Suspense, useCallback } from 'react'; +import { InitFn, THREE, useThree } from 'rua-three'; +import styles from 'styles/index/index.module.css'; +import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader'; + +export default function Page() { + return ( +
+
+

+ + Hi there + + + hands + +

+
+
+ ); +} diff --git a/app/theme-provider.tsx b/app/theme-provider.tsx new file mode 100644 index 0000000..b3031c9 --- /dev/null +++ b/app/theme-provider.tsx @@ -0,0 +1,22 @@ +'use client'; + +import { ThemeProvider } from 'next-themes'; +import { ReactNode } from 'react'; + +export default function RUAThemeProvider({ + children, +}: { + children: ReactNode; +}) { + return ( + + {children} + + ); +} diff --git a/layouts/common/blog-list.tsx b/layouts/common/blog-list.tsx deleted file mode 100644 index 9258782..0000000 --- a/layouts/common/blog-list.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import clsx from 'clsx'; - -type Props = { - children: React.ReactElement | React.ReactElement[]; -}; - -const BlogList = ({ children }: Props) => { - return ( - <> -

- Blog posts -

- -
{children}
- - ); -}; - -export default BlogList; diff --git a/layouts/common/main-layout.tsx b/layouts/common/main-layout.tsx deleted file mode 100644 index e3a4277..0000000 --- a/layouts/common/main-layout.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import dynamic from 'next/dynamic'; - -const Footer = dynamic(() => import('components/footer')); -const HeadBar = dynamic(() => import('components/nav-bar')); -const BackToTop = dynamic(() => import('components/common/back-to-top')); - -type Props = { - children: React.ReactNode; -}; - -const MainLayout = ({ children }: Props) => { - return ( - <> - - {children} -