Skip to content

Commit

Permalink
feat: read markdown file (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
0plan authored Mar 25, 2024
1 parent 9382e3c commit 1d31c3a
Show file tree
Hide file tree
Showing 59 changed files with 1,730 additions and 1,366 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
"react-markdown": "^9.0.1",
"react-resizable-panels": "^2.0.16",
"react-router-dom": "^6.22.3",
"rehype-highlight": "^7.0.0",
"remark-gfm": "^4.0.0",
"sonner": "^1.4.41",
"tailwind-merge": "^2.2.2",
"tailwindcss-animate": "^1.0.7",
Expand Down Expand Up @@ -116,6 +118,7 @@
"tailwindcss": "^3.4.1",
"typescript": "^5.4.3",
"vite": "^5.2.6",
"vite-plugin-markdown": "^2.2.0",
"vite-plugin-pwa": "^0.19.7",
"vite-tsconfig-paths": "^4.3.2"
}
Expand Down
153 changes: 153 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions src/components/SignIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,20 @@ import { Button } from '@/components/ui/button';
import { Label } from '@/components/ui/label';
import { Input } from '@/components/ui/input';
import { useToast } from '@/components/ui/use-toast';
import { useState } from 'react';

export default function SignIn() {
const { toast } = useToast();
const [open, setOpen] = useState(false);

const signIn = () => {
const signIn = () => new Promise((resolve) => {
setTimeout(resolve, 1000);
}).then(() => {
setOpen(false);
toast({
description: 'Signed in successfully!',
});
};
});
const handleEmailKeyPress = (e) => {
if (e.key === 'Enter') document.getElementById('password').focus();
};
Expand All @@ -28,7 +33,7 @@ export default function SignIn() {
};

return (
<Dialog>
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>
<Button>Sign in</Button>
</DialogTrigger>
Expand Down
Loading

0 comments on commit 1d31c3a

Please sign in to comment.