Skip to content

Commit

Permalink
fix: topbar scrolling and external link icon
Browse files Browse the repository at this point in the history
  • Loading branch information
vdhieu committed Dec 18, 2023
1 parent e919e66 commit cd32424
Show file tree
Hide file tree
Showing 6 changed files with 314 additions and 288 deletions.
29 changes: 25 additions & 4 deletions components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
NekoShop,
WagmiConics,
} from '@configs/links'
import ArrowLink from '@components/icons/ArrowLink'

export default function Footer() {
return (
Expand Down Expand Up @@ -48,22 +49,42 @@ export default function Footer() {
links: [
{
href: NekoNFT,
text: 'NFT',
// @ts-ignore
text: (
<div className="flex items-center justify-start">
NFT <ArrowLink className="h-4 w-4" />
</div>
),
newTab: true,
},
{
href: '#',
text: 'Wallet',
// @ts-ignore
text: (
<div className="flex items-center justify-start">
Wallet <ArrowLink className="h-4 w-4" />
</div>
),
newTab: true,
},
{
href: NekoShop,
text: 'Shop',
newTab: true,
// @ts-ignore
text: (
<div className="flex items-center justify-start">
Shop <ArrowLink className="h-4 w-4" />
</div>
),
},
{
href: WagmiConics,
text: 'Comic',
// @ts-ignore
text: (
<div className="flex items-center justify-start">
Comic <ArrowLink className="h-4 w-4" />
</div>
),
newTab: true,
},
],
Expand Down
7 changes: 4 additions & 3 deletions components/layout/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import InstallButton, { installContentMenus } from '@components/InstallButton'
import ArrowLink from '@components/icons/ArrowLink'
import { NekoNFT, NekoShop } from '@configs/links'
import {
Accordion,
Expand All @@ -23,7 +24,7 @@ const shareItems = [
href={NekoNFT}
target="_blank"
>
NFT
NFT <ArrowLink className="h-4 w-4" />
</Button>,
<Button
variant="ghost"
Expand All @@ -34,7 +35,7 @@ const shareItems = [
href="#"
target="_blank"
>
Wallet
Wallet <ArrowLink className="h-4 w-4" />
</Button>,
<Button
variant="ghost"
Expand All @@ -45,7 +46,7 @@ const shareItems = [
href={NekoShop}
target="_blank"
>
Shop
Shop <ArrowLink className="h-4 w-4" />
</Button>,
<Button
as="a"
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^20.10.4",
"@types/node": "^20.10.5",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.17",
"@types/react-dom": "^18.2.18",
"autoprefixer": "^10.4.16",
"eslint": "^8.55.0",
"eslint": "^8.56.0",
"eslint-config-next": "14.0.4",
"postcss": "^8.4.32",
"prettier": "^3.1.1",
Expand Down
6 changes: 4 additions & 2 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ export default function App({ Component, pageProps }: AppProps) {
return (
<main className={clsx(inter.className, 'relative pt-14 lg:pt-0')}>
<Navbar />
<Component {...pageProps} />
<Footer />
<div className="h-[calc(100vh-57px)] overflow-scroll relative z-0">
<Component {...pageProps} />
<Footer />
</div>
</main>
)
}
Loading

0 comments on commit cd32424

Please sign in to comment.