Skip to content
This repository was archived by the owner on Apr 25, 2022. It is now read-only.

Commit 86f2125

Browse files
committed
Move explore to landing page
In order to have more space in the header, move the explore link to the landing page.
1 parent 12479c1 commit 86f2125

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

pages/index.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { Collections } from '../src/types/Collection'
1010
import ApplicationSections from '../src/components/application/Sections'
1111
import Button from '../src/components/Button'
1212
import { useTranslation } from 'next-i18next';
13+
import Link from 'next/link';
1314

1415
export default function Home({
1516
recentlyUpdated,
@@ -38,17 +39,22 @@ export default function Home({
3839
>
3940
{t('welcome-to-flathub-index-text')}
4041
</p>
41-
<a href='https://flatpak.org/setup/'>
42-
<Button type='secondary'>{t('quick-setup')}</Button>
43-
</a>
42+
<div style={{ "display": "flex", "gap": "12px" }}>
43+
<a href='https://flatpak.org/setup/'>
44+
<Button type='secondary'>{t('quick-setup')}</Button>
45+
</a>
46+
<Link href='/apps' passHref>
47+
<Button type='secondary'>{t('explore')}</Button>
48+
</Link>
49+
</div>
4450
<ApplicationSections
4551
popular={popular}
4652
recentlyUpdated={recentlyUpdated}
4753
editorsChoiceApps={editorsChoiceApps}
4854
editorsChoiceGames={editorsChoiceGames}
4955
></ApplicationSections>
5056
</div>
51-
</Main>
57+
</Main >
5258
)
5359
}
5460

src/components/layout/Header.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ const Header = () => {
9595
id={styles.navbar}
9696
className={`${isMenuOpen && isMobile ? styles.responsive : ''}`}
9797
>
98-
<Link href='/apps' passHref>
99-
<a className={styles.navItem}>{t('explore')}</a>
100-
</Link>
10198

10299
<div className={styles.navItem}>
103100
<a

0 commit comments

Comments
 (0)