diff --git a/web/next-example/public/Yoopta_Intro.mp4 b/web/next-example/public/Yoopta_Intro.mp4 new file mode 100644 index 000000000..3dc36e913 Binary files /dev/null and b/web/next-example/public/Yoopta_Intro.mp4 differ diff --git a/web/next-example/src/pages/index.tsx b/web/next-example/src/pages/index.tsx index cb0a9e43e..7fd69e83e 100644 --- a/web/next-example/src/pages/index.tsx +++ b/web/next-example/src/pages/index.tsx @@ -1,8 +1,18 @@ import { createYooptaEditor } from '@yoopta/editor'; -import { useEffect, useMemo, useRef } from 'react'; +import { useMemo, useRef } from 'react'; import NextLink from 'next/link'; -import { ExpandIcon, CodeIcon, StarIcon, Send, Code2Icon, FileHeart, PlusIcon } from 'lucide-react'; +import { + ExpandIcon, + CodeIcon, + StarIcon, + Send, + Code2Icon, + FileHeart, + PlusIcon, + ExternalLinkIcon, + LucideGithub, +} from 'lucide-react'; import { Head } from '@/components/Head/Head'; import { LandingEditor } from '@/components/LandingEditor/LandingEditor'; @@ -16,10 +26,65 @@ const Card = ({ title, description }) => { ); }; -export default function Home() { - const editor = useMemo(() => createYooptaEditor(), []); - const selectionRef = useRef(null); +const GithubButton = ({ repo }) => { + return ( + + +
+ + + + Star on GitHub{' '} +
+
+ + + {repo.stargazers_count} + +
+
+ ); +}; +const ProductHuntButton = () => { + return ( + + Yoopta Editor - The truly open-source rich-text editor | Product Hunt + + ); +}; + +export default function Home({ repoData }) { return (
- opta :D + opta ˆ-ˆ

Meet Yoopta-Editor 🚀

+
+ + {repoData && } +

Open-source rich-text editor that's truly{' '} @@ -101,51 +170,23 @@ export default function Home() { . Install and use it in your project. Easy to to use and fully customizable. Just relax, we're here to solve all your challenges with rich-text editors.

-
+
-
-
- - - - -
- -
+
+
+