mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 08:41:37 +00:00
Fix docsearch style
This commit is contained in:
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@ -1,5 +0,0 @@
|
||||
{
|
||||
"svn.ignoreMissingSvnWarning": true,
|
||||
"typescript.tsdk": "node_modules/.pnpm/typescript@5.0.2/node_modules/typescript/lib",
|
||||
"typescript.enablePromptUseWorkspaceTsdk": true
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
import 'styles/globals.css';
|
||||
import '@docsearch/css/dist/style.css';
|
||||
import RUAThemeProvider from './theme-provider';
|
||||
|
||||
export const metadata = {
|
||||
title: 'RUA',
|
||||
};
|
||||
import HeadBar from 'components/nav-bar';
|
||||
import Footer from 'components/footer';
|
||||
import BackToTop from 'components/common/back-to-top';
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
@ -22,7 +22,10 @@ export default function RootLayout({
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<HeadBar />
|
||||
<RUAThemeProvider>{children}</RUAThemeProvider>
|
||||
<Footer />
|
||||
<BackToTop />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
@ -9,6 +9,10 @@ import { InitFn, THREE, useThree } from 'rua-three';
|
||||
import styles from 'styles/index/index.module.css';
|
||||
import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
|
||||
|
||||
export const metadata = {
|
||||
title: 'RUA - Home',
|
||||
};
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<main className="h-[calc(100vh-142px)] flex justify-center items-center text-xl">
|
||||
|
@ -1,3 +1,5 @@
|
||||
'use client';
|
||||
|
||||
import clsx from 'clsx';
|
||||
import Button from 'components/rua/button';
|
||||
import { memo, useCallback, useEffect, useRef, useState } from 'react';
|
||||
|
@ -1,4 +1,5 @@
|
||||
import '@docsearch/css';
|
||||
'use client';
|
||||
|
||||
import { DocSearch } from '@docsearch/react';
|
||||
import clsx from 'clsx';
|
||||
import dynamic from 'next/dynamic';
|
||||
|
@ -15,6 +15,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@codesandbox/sandpack-react": "^2.1.9",
|
||||
"@docsearch/css": "^3.3.3",
|
||||
"@docsearch/react": "3",
|
||||
"@giscus/react": "^2.2.8",
|
||||
"@mapbox/rehype-prism": "^0.8.0",
|
||||
|
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
@ -2,6 +2,7 @@ lockfileVersion: 5.4
|
||||
|
||||
specifiers:
|
||||
'@codesandbox/sandpack-react': ^2.1.9
|
||||
'@docsearch/css': ^3.3.3
|
||||
'@docsearch/react': '3'
|
||||
'@giscus/react': ^2.2.8
|
||||
'@mapbox/rehype-prism': ^0.8.0
|
||||
@ -49,6 +50,7 @@ specifiers:
|
||||
|
||||
dependencies:
|
||||
'@codesandbox/sandpack-react': 2.1.9_biqbaboplfbrettd7655fr4n2y
|
||||
'@docsearch/css': 3.3.3
|
||||
'@docsearch/react': 3.3.2_zula6vjvt3wdocc4mwcxqa6nzi
|
||||
'@giscus/react': 2.2.8_biqbaboplfbrettd7655fr4n2y
|
||||
'@mapbox/rehype-prism': 0.8.0
|
||||
@ -701,6 +703,10 @@ packages:
|
||||
resolution: {integrity: sha512-dctFYiwbvDZkksMlsmc7pj6W6By/EjnVXJq5TEPd05MwQe+dcdHJgaIn1c8wfsucxHpIsdrUcgSkACHCq6aIhw==}
|
||||
dev: false
|
||||
|
||||
/@docsearch/css/3.3.3:
|
||||
resolution: {integrity: sha512-6SCwI7P8ao+se1TUsdZ7B4XzL+gqeQZnBc+2EONZlcVa0dVrk0NjETxozFKgMv0eEGH8QzP1fkN+A1rH61l4eg==}
|
||||
dev: false
|
||||
|
||||
/@docsearch/react/3.3.2_zula6vjvt3wdocc4mwcxqa6nzi:
|
||||
resolution: {integrity: sha512-ugILab2TYKSh6IEHf6Z9xZbOovsYbsdfo60PBj+Bw+oMJ1MHJ7pBt1TTcmPki1hSgg8mysgKy2hDiVdPm7XWSQ==}
|
||||
peerDependencies:
|
||||
|
Reference in New Issue
Block a user