Skip to content

Commit 031bbea

Browse files
authored
Merge pull request #2360 from oasisprotocol/kaja/homepage-content-width
Homepage design updates
2 parents bb84916 + fb18986 commit 031bbea

5 files changed

Lines changed: 10 additions & 9 deletions

File tree

.changelog/2360.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Homepage design updates.

src/app/pages/HomePage/EcosystemCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ export const EcosystemCard: FC<EcosystemCardProps> = ({
128128
</CardContent>
129129
<CardFooter>
130130
{footer || (
131-
<>
132-
<Button variant="link" size="lg" className="flex-1" asChild>
131+
<div className="flex w-full gap-4">
132+
<Button variant="outline" size="lg" className="flex-1" asChild>
133133
<RouterLink to={RouteUtils.getDashboardRoute({ network: 'testnet', layer })}>
134134
{t('common.testnet')}
135135
</RouterLink>
@@ -140,7 +140,7 @@ export const EcosystemCard: FC<EcosystemCardProps> = ({
140140
<ArrowRight />
141141
</RouterLink>
142142
</Button>
143-
</>
143+
</div>
144144
)}
145145
</CardFooter>
146146
</Card>

src/app/pages/HomePage/HomeSearch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const HomeSearch: FC = () => {
1616
<div
1717
id="search"
1818
style={{ backgroundImage: `url(${SearchBg})` }}
19-
className="py-12 px-4 md:px-8 md:p-24 bg-[#DFDEF5] bg-cover bg-center bg-no-repeat rounded-md mb-4 md:mb-6"
19+
className="py-12 px-4 md:px-8 xl:px-60 md:p-24 bg-[#DFDEF5] bg-cover bg-center bg-no-repeat rounded-md mb-4 md:mb-6"
2020
>
2121
<Typography
2222
variant="h2"

src/app/pages/HomePage/PontusXCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ export const PontusXCard: FC = () => {
6464
latestBlock={pontusxStatusQuery?.data?.data?.latest_block}
6565
activeNodes={pontusxStatusQuery?.data?.data?.active_nodes}
6666
footer={
67-
<>
68-
<Button variant="link" size="lg" className="flex-1" asChild>
67+
<div className="flex w-full gap-4">
68+
<Button variant="outline" size="lg" className="flex-1" asChild>
6969
<RouterLink to={RouteUtils.getDashboardRoute({ network: 'testnet', layer: 'pontusxdev' })}>
7070
{t('common.devnet')}
7171
</RouterLink>
@@ -76,7 +76,7 @@ export const PontusXCard: FC = () => {
7676
<ArrowRight />
7777
</RouterLink>
7878
</Button>
79-
</>
79+
</div>
8080
}
8181
/>
8282
)

src/app/pages/HomePage/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export const HomePage: FC = () => {
1818
<>
1919
<BuildBanner />
2020
<NetworkOfflineBanner wantedNetwork={network} />
21-
<Header sticky={false} />
22-
<div className="flex flex-col px-2 md:px-6">
21+
<Header />
22+
<div className="flex flex-col border-8 md:border-[15px] px-0 md:px-[4%] pt-4 md:pt-7 md:border-t-0 border-t-0 border-theme-layout-accent">
2323
<HomeSearch />
2424
<Ecosystem />
2525
<div className="flex gap-6 flex-col md:flex-row">

0 commit comments

Comments
 (0)