diff --git a/src/app/page.tsx b/src/app/page.tsx index 2fd3fd2..e5f9740 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,12 +1,60 @@ -"use client" +"use client"; + +import '@styles/editor.css' + +import Link from 'next/link'; +import dynamic from 'next/dynamic'; +import { useMemo } from 'react'; +import hljs from 'highlight.js'; + +const SimpleMDE = dynamic( + () => import("react-simplemde-editor"), + { ssr: false } +); export default function Page() { + + const options = useMemo(() => { + return { + autofocus: true, + spellChecker: true, + status: false, + toolbar: [ + "bold", "italic", "heading", "|", + "quote", "unordered-list", "ordered-list", "|", + "link", "image", "|", + "preview", "side-by-side", "fullscreen", "|", + "guide" + ], + renderingConfig: { + codeSyntaxHighlighting: true, + hljs: hljs, + }, + } as EasyMDE.Options; + }, []); + return ( - -
-

Welcome to Cursif

-

Taking notes should be quick and simple

+
+
+ +
+
+

Welcome to Cursif

+

Taking notes should be quick and simple

+ + + +
+ +

Try It Yourself!

+
+ +
- +
); } diff --git a/src/components/pages/editor.tsx b/src/components/pages/editor.tsx index dcaaec1..8cfa2e4 100644 --- a/src/components/pages/editor.tsx +++ b/src/components/pages/editor.tsx @@ -84,7 +84,7 @@ export default function PageEditor({ page_id }: { page_id: String }): JSX.Elemen codeSyntaxHighlighting: true, hljs: hljs, }, - } as SimpleMDE.Options; + } as EasyMDE.Options; }, []); if (loading) diff --git a/src/styles/globals.css b/src/styles/globals.css index 8e5d282..9e53d20 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -221,3 +221,20 @@ transition-duration: 300ms; } } + +.homepage-wave { + --size: 100px; + --m: 1; + --p: calc(var(--m)*var(--size)); + --R: calc(var(--size)*sqrt(var(--m)*var(--m) + 1)); + + height: 100%; + margin: auto; + margin-top: 200px; + + mask: + radial-gradient(var(--R) at left 50% top calc(var(--size) + var(--p)), #000 99%, #0000 101%) left calc(50% - 2*var(--size)) top 0/calc(4*var(--size)) 51% repeat-x, + radial-gradient(var(--R) at left 50% top calc(-1*var(--p)), #0000 99%, #000 101%) left 50% top var(--size)/calc(4*var(--size)) calc(51% - var(--size)) repeat-x; + background: linear-gradient(90deg, rgb(202, 11, 11), rgb(0, 0, 255)); + border: none; +} \ No newline at end of file