Skip to content

Commit 5767d63

Browse files
committed
Improve mobile homepage layout
1 parent 0a5af2d commit 5767d63

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
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
@@ -11,10 +11,10 @@ export const Ecosystem: FC = () => {
1111
const { t } = useTranslation()
1212

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

17-
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
17+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 md:gap-6 mb-4 md:mb-6">
1818
<ErrorBoundary light fallbackContent={<SapphireFallbackCard />}>
1919
<SapphireCard />
2020
</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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ 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 />
2525
<div className="flex gap-6 flex-col md:flex-row">

0 commit comments

Comments
 (0)