diff --git a/app/gists/file-content-skeleton.tsx b/app/gists/file-content-skeleton.tsx new file mode 100644 index 0000000..bd28827 --- /dev/null +++ b/app/gists/file-content-skeleton.tsx @@ -0,0 +1,33 @@ +import clsx from 'clsx'; + +export default function FileContentLoading() { + return ( +
+ {/* Username */} +

+ {/* last active */} +
+ {/* code block */} +
+
+ ); +} diff --git a/app/gists/loading.tsx b/app/gists/loading.tsx new file mode 100644 index 0000000..744a9fe --- /dev/null +++ b/app/gists/loading.tsx @@ -0,0 +1,13 @@ +import FileContentLoading from './file-content-skeleton'; + +export default function Loading() { + const num = Array(3).fill(null); + + return ( + <> + {num.map((_, i) => ( + + ))} + + ); +}