Skip to content

Commit a440a15

Browse files
Clean up login card layout and connect button styling
Remove inner card backgrounds from feature items, replace emojis with subtle diamond markers, tighten spacing and padding, narrow card width, and switch connect wallet button to outline variant so it blends with the card instead of clashing with a dark primary background.
1 parent 41371a8 commit a440a15

2 files changed

Lines changed: 18 additions & 29 deletions

File tree

apps/account-portal/src/components/layout/login-card.tsx

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,45 +10,35 @@ import { StarknetWalletButton } from "./starknet-wallet-button";
1010

1111
export function LoginCard() {
1212
return (
13-
<Card className="mx-auto mt-12 w-full max-w-lg">
14-
<CardHeader>
15-
<p className="realm-eyebrow text-center">Enter The Realm</p>
16-
<CardTitle className="text-center text-2xl">
17-
Welcome to Realms Portal
18-
</CardTitle>
19-
<CardDescription className="text-center">
13+
<Card className="mx-auto mt-12 w-full max-w-md">
14+
<CardHeader className="pb-2 text-center">
15+
<p className="realm-eyebrow">Enter The Realm</p>
16+
<CardTitle className="text-2xl">Welcome to Realms Portal</CardTitle>
17+
<CardDescription>
2018
Connect your wallet to access the Realms ecosystem
2119
</CardDescription>
2220
</CardHeader>
23-
<CardContent className="space-y-6">
24-
{/* Feature list */}
25-
<div className="space-y-4">
21+
<CardContent className="space-y-5">
22+
<div className="space-y-3">
2623
<FeatureItem
2724
title="Bridge Assets"
28-
description="Transfer your assets seamlessly between Ethereum and StarkNet"
29-
icon="🌉"
25+
description="Transfer assets between Ethereum and StarkNet"
3026
/>
3127
<FeatureItem
3228
title="LORDS Claiming"
3329
description="Claim and manage your LORDS tokens"
34-
icon="👑"
3530
/>
3631
<FeatureItem
3732
title="veLORDS Staking"
38-
description="Stake your LORDS to earn rewards and voting power"
39-
icon="⚡"
33+
description="Stake LORDS to earn rewards and voting power"
4034
/>
4135
<FeatureItem
4236
title="Governance"
4337
description="Participate in shaping the future of Realms"
44-
icon="🏛️"
4538
/>
4639
</div>
4740

48-
{/* Connect wallet button */}
49-
<div className="w-full pt-4">
50-
<StarknetWalletButton className="w-full" variant="reference" />
51-
</div>
41+
<StarknetWalletButton className="w-full" variant="reference" />
5242
</CardContent>
5343
</Card>
5444
);
@@ -57,20 +47,18 @@ export function LoginCard() {
5747
function FeatureItem({
5848
title,
5949
description,
60-
icon,
6150
}: {
6251
title: string;
6352
description: string;
64-
icon: string;
6553
}) {
6654
return (
67-
<div className="realm-subtle-panel flex items-start gap-3 rounded-2xl p-4">
68-
<div className="text-2xl">{icon}</div>
55+
<div className="flex items-baseline gap-2 px-1">
56+
<span className="text-primary text-xs">&#x25C6;</span>
6957
<div>
7058
<h3 className="font-display text-sm font-semibold tracking-[var(--tracking-card)] uppercase">
7159
{title}
7260
</h3>
73-
<p className="text-muted-foreground text-sm">{description}</p>
61+
<p className="text-muted-foreground text-xs">{description}</p>
7462
</div>
7563
</div>
7664
);

apps/account-portal/src/components/layout/starknet-wallet-button.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const StarknetWalletButton = ({
4040
const isReferenceVariant = variant === "reference";
4141
const resolvedPickerMode = pickerMode ?? (variant === "reference" ? "sheet" : "dropdown");
4242
const pickerTriggerClassName = isReferenceVariant
43-
? "inline-flex h-9 w-9 items-center justify-center rounded-lg bg-background/40 text-foreground transition hover:bg-accent"
43+
? "inline-flex h-9 w-9 items-center justify-center rounded-lg text-muted-foreground transition hover:bg-accent hover:text-foreground"
4444
: "inline-flex h-7 w-7 items-center justify-center rounded-md text-primary-foreground/80 transition hover:bg-primary-foreground/10";
4545

4646
const connectPrimary = () => {
@@ -108,7 +108,8 @@ export const StarknetWalletButton = ({
108108
<div className={cn("relative w-full", className)}>
109109
<Button
110110
onClick={connectPrimary}
111-
className="h-14 w-full justify-start rounded-2xl border px-3 pr-16 shadow-sm"
111+
variant="outline"
112+
className="h-14 w-full justify-start rounded-2xl px-3 pr-16 shadow-sm"
112113
>
113114
<span className="mr-3 inline-flex h-6 w-6 items-center justify-center rounded-md bg-muted">
114115
{lastConnector ? (
@@ -118,10 +119,10 @@ export const StarknetWalletButton = ({
118119
)}
119120
</span>
120121
<span className="flex flex-col items-start leading-tight">
121-
<span className="text-base font-semibold">
122+
<span className="text-foreground text-base font-semibold">
122123
{label ?? "Connect wallet"}
123124
</span>
124-
<span className="text-xs text-muted-foreground">
125+
<span className="text-muted-foreground text-xs">
125126
{lastConnector
126127
? `Previously used ${lastConnector.name}`
127128
: "Choose a Starknet wallet"}

0 commit comments

Comments
 (0)