feat: massive front-end overhaul and initial github release
This commit is contained in:
parent
a2b40e38bf
commit
d5a0e70580
303 changed files with 19840 additions and 676 deletions
24
src/mainview/components/LoadingCardList.tsx
Normal file
24
src/mainview/components/LoadingCardList.tsx
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
import classNames from 'classnames';
|
||||
import { GameCardSkeleton } from './GameCard';
|
||||
|
||||
export default function LoadingCardList (data: { placeholderCount: number, grid?: boolean; })
|
||||
{
|
||||
return (
|
||||
<ul
|
||||
title="Games"
|
||||
id={`card-list-placeholder`}
|
||||
save-child-focus="session"
|
||||
className={classNames("my-6 items-center justify-center-safe h-(--game-card-height) ",
|
||||
data.grid ? "card-grid gap-5" : 'card-list gap-6'
|
||||
)}
|
||||
onKeyDown={(e) =>
|
||||
{
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}}
|
||||
style={{ scrollbarWidth: "none" }}
|
||||
>
|
||||
{new Array(data.placeholderCount).fill(1).map(p => <GameCardSkeleton />)}
|
||||
</ul>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue