From dbda2479c4ff7acfecb69a037d3a0d02ce8b0f3f Mon Sep 17 00:00:00 2001 From: Keven Leone Date: Sun, 1 Oct 2023 16:42:33 -0300 Subject: [PATCH] Update Homepage #55 --- apps/mdreader/app/routes/_index.tsx | 47 +++++++++++++++++++++-------- apps/mdreader/postcss.config.js | 9 ++---- 2 files changed, 38 insertions(+), 18 deletions(-) diff --git a/apps/mdreader/app/routes/_index.tsx b/apps/mdreader/app/routes/_index.tsx index a716e2e..ed9cc5e 100644 --- a/apps/mdreader/app/routes/_index.tsx +++ b/apps/mdreader/app/routes/_index.tsx @@ -1,7 +1,7 @@ -import { Markdown } from '@mdreader/markdown'; +import { Button } from '@mdreader/interface'; import { LoaderArgs } from '@remix-run/node'; import { V2_MetaFunction } from '@remix-run/react'; -import useFetch from '~/hooks/useFetch'; +import { Github } from 'lucide-react'; export const meta: V2_MetaFunction = ({ data: { origin } }) => { return [ @@ -14,6 +14,18 @@ export const meta: V2_MetaFunction = ({ data: { origin } }) => { property: 'og:image', content: `${origin}/api/og?template=site&title=MD Reader`, }, + { + property: 'twitter:image', + content: `${origin}/api/og?template=site&title=MD Reader`, + }, + { + property: 'og:image:width', + content: '800px', + }, + { + property: 'og:image:height', + content: '600px', + }, ]; }; @@ -22,15 +34,26 @@ export const loader = ({ request }: LoaderArgs) => ({ }); export default function MarkdownPreview() { - const { data: markdown, isLoading } = useFetch( - `https://raw.githubusercontent.com/kevenleone/mdreader/main/README.md`, - undefined, - { parseAs: 'text' } - ); + return ( +
+
+

+ MD Reader +

+

+ Effortlessly organize your favorite Markdown into 'Articles' that are + both easy to manage and share with others. Say goodbye to cluttered + notes and hello to a sleek, streamlined system that puts your ideas + front and center. +

- if (isLoading) { - return

Loading...

; - } - - return {markdown}; +
+ + +
+
+
+ ); } diff --git a/apps/mdreader/postcss.config.js b/apps/mdreader/postcss.config.js index 2e7af2b..3ea9307 100644 --- a/apps/mdreader/postcss.config.js +++ b/apps/mdreader/postcss.config.js @@ -1,6 +1,3 @@ -export default { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} +module.exports = { + plugins: [require('tailwindcss'), require('autoprefixer')], +};