Skip to content

Commit 435722a

Browse files
authored
Merge pull request #2418 from oasisprotocol/kaja/ecosystem-card-buttons
Update Ecosystem secondary button color and button group layout
2 parents 9fb6970 + e9e71da commit 435722a

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.changelog/2418.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update Ecosystem secondary button color and button group layout

src/app/pages/HomePage/EcosystemCard.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,16 @@ export const EcosystemCard: FC<EcosystemCardProps> = ({
128128
</CardContent>
129129
<CardFooter>
130130
{footer || (
131-
<div className="flex w-full gap-4">
132-
<Button variant="outline" size="lg" className="flex-1" asChild>
133-
<RouterLink to={RouteUtils.getDashboardRoute({ network: 'testnet', layer })}>
131+
<div className="flex w-full lg:flex-col xl:flex-row gap-4">
132+
<Button variant="outline" size="lg" className="flex-1 py-[10px]" asChild>
133+
<RouterLink
134+
to={RouteUtils.getDashboardRoute({ network: 'testnet', layer })}
135+
className="text-primary"
136+
>
134137
{t('common.testnet')}
135138
</RouterLink>
136139
</Button>
137-
<Button size="lg" className="flex-1" asChild>
140+
<Button size="lg" className="flex-1 py-[10px]" asChild>
138141
<RouterLink to={RouteUtils.getDashboardRoute({ network: 'mainnet', layer })}>
139142
{t('common.mainnet')}
140143
<ArrowRight />

src/app/pages/HomePage/PontusXCard.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,16 @@ export const PontusXCard: FC = () => {
6464
latestBlock={pontusxStatusQuery?.data?.data?.latest_block}
6565
activeNodes={pontusxStatusQuery?.data?.data?.active_nodes}
6666
footer={
67-
<div className="flex w-full gap-4">
68-
<Button variant="outline" size="lg" className="flex-1" asChild>
69-
<RouterLink to={RouteUtils.getDashboardRoute({ network: 'testnet', layer: 'pontusxdev' })}>
67+
<div className="flex w-full lg:flex-col xl:flex-row gap-4">
68+
<Button variant="outline" size="lg" className="flex-1 py-[10px]" asChild>
69+
<RouterLink
70+
to={RouteUtils.getDashboardRoute({ network: 'testnet', layer: 'pontusxdev' })}
71+
className="text-primary"
72+
>
7073
{t('common.devnet')}
7174
</RouterLink>
7275
</Button>
73-
<Button size="lg" className="flex-1" asChild>
76+
<Button size="lg" className="flex-1 py-[10px]" asChild>
7477
<RouterLink to={RouteUtils.getDashboardRoute({ network: 'testnet', layer: 'pontusxtest' })}>
7578
{t('common.testnet')}
7679
<ArrowRight />

0 commit comments

Comments
 (0)