perf: md引入;docker-compose;

This commit is contained in:
archer
2023-04-09 22:56:08 +08:00
parent 5e4c4dd79b
commit 99e5fbd0f5
17 changed files with 185 additions and 149 deletions

View File

@@ -1,12 +1,14 @@
import React from 'react';
import { Card } from '@chakra-ui/react';
import Markdown from '@/components/Markdown';
import { introPage } from '@/constants/common';
import { useMarkdown } from '@/hooks/useMarkdown';
const Home = () => {
const { data } = useMarkdown({ url: '/intro.md' });
return (
<Card p={5} lineHeight={2}>
<Markdown source={introPage} isChatting={false} />
<Markdown source={data} isChatting={false} />
</Card>
);
};