diff --git a/app/help/[article]/loading.tsx b/app/help/[article]/loading.tsx index 72af60f..440b552 100644 --- a/app/help/[article]/loading.tsx +++ b/app/help/[article]/loading.tsx @@ -1,5 +1,5 @@ -import { Loader } from "@/components/loader"; +import { MDSkeletonLoader } from "@/components/loader"; export default function Loading() { - return ; + return ; } diff --git a/app/help/[article]/page.tsx b/app/help/[article]/page.tsx index 8bca31c..7d0cb23 100644 --- a/app/help/[article]/page.tsx +++ b/app/help/[article]/page.tsx @@ -1,7 +1,7 @@ import { readMD } from "@/actions/readMD"; import { HelpClient } from "./client"; import { Suspense } from "react"; -import { Loader } from "@/components/loader"; +import { MDSkeletonLoader } from "@/components/loader"; // export const @@ -15,7 +15,7 @@ export default async function Help({ "./md/help articles/" + decodeURIComponent(params.article), ); return ( - }> + }> */ } - }> + }> diff --git a/components/loader.tsx b/components/loader.tsx index 718697c..da1c214 100644 --- a/components/loader.tsx +++ b/components/loader.tsx @@ -1,6 +1,6 @@ import { FC } from "react"; -export const Loader: FC = () => { +export const MDSkeletonLoader: FC = () => { const tragedy = [ "Did you ever hear the tragedy of Darth Plagueis the Wise?", "No.", @@ -13,14 +13,75 @@ export const Loader: FC = () => { "Not from a Jedi.", ]; + const bucket = [ + "Dear God", + "Theres more", + "No!", + "It contains, a bucket!", + ]; + + const indentation = ["ml-0", "ml-6", "ml-12"]; + return ( <>
-

Do It

-

Kill him. Kill him now.

+

Do It

+

+ Kill him. Kill him now. +

-
- {tragedy.map((t) =>

{t}

)} +
+
+ {tragedy.map((t) => ( +

+ {t} +

+ ))} +
+
+
+

+ Hey man I heard you like memes +

+

+ + I'll be honest, I'm just kind of phoning it in down + here. The other memes came to mind really easily, but I could + think of anything for down here. Ooh look, lorem ipsum! + +

+

+ + Lorem ipsum dolor, sit amet consectetur adipisicing elit. + Exercitationem fugiat sed odit sunt ex ab maxime qui animi + optio! Rem itaque nesciunt beatae voluptas facilis optio natus + culpa. Corrupti, error. + +

+
+
+
+
+
+

+ This is a bucket +

+
    + {Array(Math.floor(Math.random() * 3) + 2).fill(bucket).flat().map(( + t, + i, + ) => ( +
  • + {t} +
  • + ))} +
+
//
diff --git a/components/ttcmd/index.tsx b/components/ttcmd/index.tsx index 3cab180..6726482 100644 --- a/components/ttcmd/index.tsx +++ b/components/ttcmd/index.tsx @@ -15,7 +15,7 @@ import React, { } from "react"; import { sanitize } from "isomorphic-dompurify"; -import { Loader } from "../loader"; +import { MDSkeletonLoader } from "../loader"; export const TTCMD: FC< { body: string; escapeTOC?: (tokens: Token[]) => boolean } @@ -44,14 +44,16 @@ export const TTCMD: FC< }, [escapeTOC, toc]); return ( - }> - + */ + } {hasEscapedTOC !== undefined && (