Add gists skeleton animation

This commit is contained in:
DefectingCat
2023-01-30 11:37:15 +08:00
parent 3c001e0028
commit 35d1aeec9e
13 changed files with 120 additions and 33 deletions

View File

@ -3,11 +3,12 @@ import { memo, ReactNode } from 'react';
import { FiExternalLink } from 'react-icons/fi';
interface Props {
children: ReactNode;
children?: ReactNode;
external?: boolean;
className?: string;
}
const Anchor = ({ children, external = true }: Props) => {
const Anchor = ({ children, external = true, className }: Props) => {
return (
<>
<span
@ -16,7 +17,8 @@ const Anchor = ({ children, external = true }: Props) => {
'before:left-0 before:top-[1px] before:block before:absolute',
'before:w-full before:h-full before:transition-all before:shadow-underline',
'hover:before:shadow-throughline',
'dark:text-teal-600'
'dark:text-teal-600',
className
)}
>
{children}