looking decent
This commit is contained in:
@@ -5,7 +5,6 @@ import LoadingSpinner from "~/components/LoadingSpinner";
|
||||
export interface CardLinksProps {
|
||||
postTitle: string;
|
||||
postID: number;
|
||||
linkTarget: string;
|
||||
privilegeLevel: string;
|
||||
}
|
||||
|
||||
@@ -19,12 +18,8 @@ export default function CardLinks(props: CardLinksProps) {
|
||||
href={`/blog/${props.postTitle}`}
|
||||
onClick={() => setReadLoading(true)}
|
||||
class={`${
|
||||
readLoading()
|
||||
? "bg-zinc-400"
|
||||
: props.linkTarget === "project"
|
||||
? "bg-blue-400 hover:bg-blue-500 dark:bg-blue-600 dark:hover:bg-blue-700"
|
||||
: "bg-orange-400 hover:bg-orange-500"
|
||||
} mb-1 ml-2 flex rounded px-4 py-2 font-light text-white shadow transition-all duration-300 ease-out active:scale-90`}
|
||||
readLoading() ? "bg-zinc-400" : "bg-lavender hover:brightness-125"
|
||||
} mb-1 ml-2 flex rounded px-4 py-2 text-base font-light shadow transition-all duration-300 ease-out active:scale-90`}
|
||||
>
|
||||
<Show when={readLoading()} fallback="Read">
|
||||
<LoadingSpinner height={24} width={24} />
|
||||
|
||||
Reference in New Issue
Block a user