-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from danielvanc/dev
Dev
- Loading branch information
Showing
7 changed files
with
101 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
export default function SkeletonNews({ | ||
blocksToShow = 10, | ||
}: { | ||
blocksToShow?: number; | ||
}) { | ||
const blocks = Array.from({ length: blocksToShow }, (_, i) => i); | ||
|
||
return ( | ||
<> | ||
<div className="relative backdrop-filter backdrop-blur-lg shadow-md bg-gray-100 h-8 mb-4 w-2/4 rounded-lg bg-opacity-10"></div> | ||
<div className="space-x-4 w-full"> | ||
<div className="relative rounded-lg"> | ||
{blocks.map((_, idx) => ( | ||
<div | ||
key={`s-${idx}`} | ||
className="flex flex-row items-start mb-4 space-x-2 animate-pulse bg-opacity-10" | ||
> | ||
<div className="mx-auto h-8 w-full rounded-lg bg-opacity-10 backdrop-filter backdrop-blur-lg shadow-md bg-gray-100"> | ||
| ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
export default function SkeletonStandings({ | ||
blocksToShow = 15, | ||
}: { | ||
blocksToShow?: number; | ||
}) { | ||
const blocks = Array.from({ length: blocksToShow }, (_, i) => i); | ||
|
||
return ( | ||
<> | ||
<div className="relative animate-pulse rounded-lg bg-gray-100 bg-opacity-10 backdrop-filter backdrop-blur-lg shadow h-8 mb-2 w-2/4"></div> | ||
<div className="flex animate-pulse space-x-4 w-full"> | ||
<div className="relative w-1/2 rounded-lg bg-gray-100 bg-opacity-10 backdrop-filter backdrop-blur-lg shadow"> | ||
{blocks.map((_, idx) => ( | ||
<div | ||
key={`s-${idx}`} | ||
className="flex flex-row items-start p-2 space-x-2" | ||
> | ||
<div className="mx-auto h-14 w-full rounded-lg bg-opacity-10 backdrop-filter backdrop-blur-lg shadow-md"> | ||
| ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
<div className="relative w-1/2 rounded-lg bg-gray-100 bg-opacity-10 backdrop-filter backdrop-blur-lg shadow"> | ||
{blocks.map((_, idx) => ( | ||
<div | ||
key={`s-${idx}`} | ||
className="flex flex-row items-start p-2 space-x-2" | ||
> | ||
<div className="mx-auto h-14 w-full rounded-lg bg-opacity-10 backdrop-filter backdrop-blur-lg shadow-md"> | ||
| ||
</div> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters