Skip to content

Commit

Permalink
fix(RoleCard): use the old design
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Nov 29, 2024
1 parent 71bd24b commit c2a9f52
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/app/(dashboard)/[guildId]/[roleGroupId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ const RoleCard = async ({ role }: { role: Role }) => {
//console.log(rewards);

return (
<Card className="flex flex-col border md:flex-row" key={role.id}>
<div className="border-r-2 p-6 md:w-1/2">
<Card className="flex flex-col md:flex-row" key={role.id}>
<div className="border-r p-6 md:w-1/2">
<div className="flex items-center gap-3">
{role.imageUrl && (
<img
Expand All @@ -91,7 +91,7 @@ const RoleCard = async ({ role }: { role: Role }) => {
{role.description}
</p>
{!!rewards.length && (
<ScrollArea className="mt-8 h-64 rounded-lg border-2 pr-3">
<ScrollArea className="mt-8 h-64 rounded-lg border pr-3">
<div className="flex flex-col gap-4">
{rewards.map((reward) => (
<Reward reward={reward} key={reward.id} />
Expand All @@ -100,7 +100,7 @@ const RoleCard = async ({ role }: { role: Role }) => {
</ScrollArea>
)}
</div>
<div className="bg-background p-6 md:w-1/2">
<div className="bg-card-secondary p-6 md:w-1/2">
<div className="flex items-center justify-between">
<span className="font-bold text-foreground-secondary text-xs">
REQUIREMENTS
Expand All @@ -117,7 +117,7 @@ const RoleCard = async ({ role }: { role: Role }) => {

const Reward = ({ reward }: { reward: Reward }) => {
return (
<div className="border-b p-4">
<div className="border-b p-4 last:border-b-0">
<div className="mb-2 font-medium">{reward.name}</div>
<div className="text-foreground-dimmed text-sm">{reward.description}</div>
<pre className="mt-3 text-foreground-secondary text-xs">
Expand Down

0 comments on commit c2a9f52

Please sign in to comment.