Skip to content

Commit d14b182

Browse files
committed
Improve mobile homepage layout
1 parent 177a488 commit d14b182

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

src/app/components/PageLayout/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const Header: FC<HeaderProps> = ({ sticky = true }) => {
3030
},
3131
)}
3232
>
33-
<div className="px-6">
33+
<div className="px-2 md:px-6">
3434
<div className="grid grid-cols-12">
3535
<div className="col-span-6 xl:col-span-3 flex items-center">
3636
<HomePageLink showText={!sticky || (!scrolled && !isMobile)} />

src/app/pages/HomePage/Ecosystem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ export const Ecosystem: FC = () => {
1313
const { t } = useTranslation()
1414

1515
return (
16-
<div className="flex flex-col gap-6">
16+
<div className="flex flex-col gap-4 md:gap-6">
1717
<Typography variant="h3"> {t('home.ecosystem.title')}</Typography>
1818

19-
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
19+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 md:gap-6 mb-4 md:mb-6">
2020
<ErrorBoundary light fallbackContent={<SapphireFallbackCard />}>
2121
<SapphireCard />
2222
</ErrorBoundary>

src/app/pages/HomePage/EcosystemCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const EcosystemCard: FC<EcosystemCardProps> = ({
7777
<CardContent className="flex-1 flex items-end">
7878
{isLoading && <Skeleton className="h-14 w-full" />}
7979
{!isLoading && (
80-
<div className="w-full grid grid-cols-1 md:grid-cols-2 gap-4 font-medium">
80+
<div className="w-full grid grid-cols-2 gap-4 font-medium">
8181
<div>{t('home.blockNumber')}</div>
8282
<div className="text-right text-primary">
8383
{latestBlock !== undefined && latestBlock !== null ? latestBlock.toLocaleString() : '-'}

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-8 md:p-24 bg-[#DFDEF5] bg-cover bg-center bg-no-repeat rounded-md mb-6"
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"
2020
>
2121
<Typography
2222
variant="h2"

src/app/pages/HomePage/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ export const HomePage: FC = () => {
1919
<BuildBanner />
2020
<NetworkOfflineBanner wantedNetwork={network} />
2121
<Header sticky={false} />
22-
<div className="flex flex-col px-6">
22+
<div className="flex flex-col px-2 md:px-6">
2323
<HomeSearch />
2424
<Ecosystem />
25-
<div className="flex gap-6 flex-col md:flex-row">
25+
<div className="flex gap-4 md:gap-6 flex-col md:flex-row">
2626
<LatestBlocks />
2727
{/* TODO: Clean up commit when API supports all layers */}
2828
<TotalTransactions chartContainerHeight={280} scope={{ network: 'mainnet', layer: 'sapphire' }} />

0 commit comments

Comments
 (0)