From 3a42b44612a3a96ce9b3a8c38e07d8c8908735d1 Mon Sep 17 00:00:00 2001 From: Defectink Date: Thu, 14 Apr 2022 11:00:03 +0800 Subject: [PATCH] Add DocSearch and styles * add images --- README.md | 41 +- components/NavBar.tsx | 11 +- package.json | 1 + pages/_document.tsx | 5 + public/images/img/64.ai | 4801 ++++++++++++++++++ public/images/img/64.png | Bin 0 -> 147207 bytes public/images/img/64.svg | 1 + public/images/img/Sensei_dark.webp | Bin 0 -> 18528 bytes public/images/img/Sensei_sakura.webp | Bin 0 -> 46482 bytes public/images/img/about.webp | Bin 0 -> 61938 bytes public/images/img/apple-touch-icon.webp | Bin 0 -> 2966 bytes public/images/img/avatar.ai | 890 ++++ public/images/img/avatar.svg | 1 + public/images/img/avatar_b.webp | Bin 0 -> 23076 bytes public/images/img/avatar_b2.webp | Bin 0 -> 18876 bytes public/images/img/backup.webp | Bin 0 -> 1764 bytes public/images/img/category.webp | Bin 0 -> 36394 bytes public/images/img/default.webp | Bin 0 -> 11560 bytes public/images/img/favicon.webp | Bin 0 -> 2952 bytes public/images/img/friend.webp | Bin 0 -> 42382 bytes public/images/img/index.webp | Bin 0 -> 41824 bytes public/images/img/loading.gif | Bin 0 -> 86084 bytes public/images/img/mona.webp | Bin 0 -> 12308 bytes public/images/img/placeholder-1200x1000.webp | Bin 0 -> 3168 bytes public/images/img/placeholder-600x500.webp | Bin 0 -> 1054 bytes public/images/img/police_beian.webp | Bin 0 -> 348 bytes public/images/img/post.webp | Bin 0 -> 28796 bytes public/images/img/qrcode.webp | Bin 0 -> 27790 bytes public/images/img/sparkling-heart.ai | 306 ++ public/images/img/sparkling-heart.png | Bin 0 -> 3295 bytes public/images/img/sparkling-heart.svg | 14 + public/images/img/tags.webp | Bin 0 -> 26154 bytes styles/globals.css | 45 + yarn.lock | 158 + 34 files changed, 6245 insertions(+), 29 deletions(-) create mode 100644 public/images/img/64.ai create mode 100644 public/images/img/64.png create mode 100644 public/images/img/64.svg create mode 100644 public/images/img/Sensei_dark.webp create mode 100644 public/images/img/Sensei_sakura.webp create mode 100644 public/images/img/about.webp create mode 100644 public/images/img/apple-touch-icon.webp create mode 100644 public/images/img/avatar.ai create mode 100644 public/images/img/avatar.svg create mode 100644 public/images/img/avatar_b.webp create mode 100644 public/images/img/avatar_b2.webp create mode 100644 public/images/img/backup.webp create mode 100644 public/images/img/category.webp create mode 100644 public/images/img/default.webp create mode 100644 public/images/img/favicon.webp create mode 100644 public/images/img/friend.webp create mode 100644 public/images/img/index.webp create mode 100644 public/images/img/loading.gif create mode 100644 public/images/img/mona.webp create mode 100644 public/images/img/placeholder-1200x1000.webp create mode 100644 public/images/img/placeholder-600x500.webp create mode 100644 public/images/img/police_beian.webp create mode 100644 public/images/img/post.webp create mode 100644 public/images/img/qrcode.webp create mode 100644 public/images/img/sparkling-heart.ai create mode 100644 public/images/img/sparkling-heart.png create mode 100644 public/images/img/sparkling-heart.svg create mode 100644 public/images/img/tags.webp diff --git a/README.md b/README.md index c87e042..daaa820 100644 --- a/README.md +++ b/README.md @@ -1,34 +1,19 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). + -## Getting Started +## 小破站 -First, run the development server: +
+ + + + + +
-```bash -npm run dev -# or -yarn dev -``` +咸鱼的个人站点 ✍,[RUA](https://rua.plus/)。 -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. +## ❤️ -You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. +- Host on [Vercel](https://vercel.com/) -[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. - -The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. +Powered by [Next.js](https://nextjs.org/) ❤️ [Tailwind CSS](https://tailwindcss.com/). diff --git a/components/NavBar.tsx b/components/NavBar.tsx index c7cdd69..ab854da 100644 --- a/components/NavBar.tsx +++ b/components/NavBar.tsx @@ -3,6 +3,8 @@ import Link from 'next/link'; import { FC, useCallback, useState } from 'react'; import { FiMenu } from 'react-icons/fi'; import dynamic from 'next/dynamic'; +import { DocSearch } from '@docsearch/react'; +import '@docsearch/css'; const DarkModeBtn = dynamic(() => import('components/DarkModeBtn')); @@ -70,7 +72,7 @@ const HeadBar: FC = () => { showMenu || 'hidden' )} > -