Skip to content

Commit 0ba3678

Browse files
authored
Merge pull request #2413 from oasisprotocol/kaja/rofl-section-homepage
ROFL section on homepage
2 parents 87c1eab + 4364e38 commit 0ba3678

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.changelog/2413.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Move Rofl section below the Ecosystem and add 'View all' link to it

src/app/pages/HomePage/RoflAppsCard.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { Card, CardContent, CardHeader, CardTitle } from '@oasisprotocol/ui-libr
55
import { ErrorBoundary } from '../../components/ErrorBoundary'
66
import { RouteUtils } from '../../utils/route-utils'
77
import { Link as RouterLink } from 'react-router-dom'
8+
import { Link } from '@oasisprotocol/ui-library/src/components/link'
9+
import { Typography } from '@oasisprotocol/ui-library/src/components/typography'
810

911
export const RoflAppsCard: FC = () => {
1012
const { t } = useTranslation()
@@ -13,9 +15,10 @@ export const RoflAppsCard: FC = () => {
1315
<Card variant="layout">
1416
<CardHeader>
1517
<CardTitle>
16-
<div>
17-
<RouterLink to={RouteUtils.getRoflAppsRoute('mainnet')}>{t('rofl.listTitle')}</RouterLink>
18-
</div>
18+
<Typography variant="h3">{t('rofl.listTitle')}</Typography>
19+
<Link asChild textColor="primary" className="font-medium px-4">
20+
<RouterLink to={RouteUtils.getRoflAppsRoute('mainnet')}>{t('common.viewAll')}</RouterLink>
21+
</Link>
1922
</CardTitle>
2023
</CardHeader>
2124
<CardContent>

src/app/pages/HomePage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const HomePage: FC = () => {
2525
<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">
2626
<HomeSearch />
2727
<Ecosystem />
28+
<RoflAppsCard />
2829
<div className="flex gap-6 flex-col md:flex-row">
2930
<RecentBlocksCard />
3031
<TotalTransactions
@@ -37,7 +38,6 @@ export const HomePage: FC = () => {
3738
}
3839
/>
3940
</div>
40-
<RoflAppsCard />
4141
<Social />
4242
</div>
4343
<Footer />

0 commit comments

Comments
 (0)