Skip to content

Commit

Permalink
Merge pull request #183 from BibliothecaDAO/main
Browse files Browse the repository at this point in the history
add banners to user page
  • Loading branch information
RedBeardEth authored Mar 30, 2024
2 parents ef04cd1 + 8756793 commit 94b5551
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const L2ERC721Card = ({
<Image
src={token.image}
alt={token.name ?? `beasts-${token.token_id}`}
className={'disable-blur ' + isGrid ? "mx-auto disable-blur" : ""}
className={isGrid ? "mx-auto" : ""}
width={imageSize}
height={imageSize}
/>
Expand Down
1 change: 1 addition & 0 deletions apps/nextjs/src/app/user/UserTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const UserTabs = ({ address }: { address: string }) => {
{ name: "Golden Token", link: "" },
{ name: "Beasts", link: "beasts" },
{ name: "Blobert", link: "blobert" },
{ name: "Banners", link: "banners" },
);
}
return (
Expand Down
23 changes: 23 additions & 0 deletions apps/nextjs/src/app/user/[address]/banners/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { Suspense } from "react";
import { LoadingSkeletonGrid } from "@/app/_components/LoadingSkeletonGrid";
import L2ERC721Table from "@/app/collection/[id]/(list)/L2ERC721Table";
import { SUPPORTED_L2_CHAIN_ID } from "@/constants/env";

import { Collections, getCollectionAddresses } from "@realms-world/constants";

export default async function Page({
params,
}: {
params: { address: string };
}) {
return (
<Suspense fallback={<LoadingSkeletonGrid />}>
<L2ERC721Table
contractAddress={
getCollectionAddresses(Collections.BANNERS)[SUPPORTED_L2_CHAIN_ID]!
}
ownerAddress={params.address}
/>
</Suspense>
);
}
8 changes: 0 additions & 8 deletions config/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,3 @@ body::-webkit-scrollbar-thumb,
position: relative;
}

svg image {
image-rendering: pixelated;
}
@layer components {
.disable-blur{
image-rendering: pixelated;
}
}

0 comments on commit 94b5551

Please sign in to comment.