Skip to content

Commit dfd4af9

Browse files
committed
fix(footer): issues with order and spacing
1 parent 4a94463 commit dfd4af9

File tree

4 files changed

+15
-17
lines changed

4 files changed

+15
-17
lines changed

docusaurus.config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const config: Config = {
162162
],
163163
},
164164
{
165-
title: "Developers",
165+
title: "Explore",
166166
items: [
167167
{
168168
label: "Flarescan",
@@ -172,6 +172,10 @@ const config: Config = {
172172
label: "Systems Explorer",
173173
href: "https://flare-systems-explorer.flare.network",
174174
},
175+
{
176+
label: "P-Chain Explorer",
177+
href: "https://flare.space/dapp/p-chain-explorer/",
178+
},
175179
{
176180
label: "Grants Program",
177181
href: "https://flare.network/grants",
@@ -196,7 +200,7 @@ const config: Config = {
196200
],
197201
},
198202
],
199-
copyright: `Copyright © Flare Network ${new Date().getFullYear()}`,
203+
copyright: `Copyright © Flare ${new Date().getFullYear()}`,
200204
},
201205
prism: {
202206
additionalLanguages: ["solidity", "bash", "json", "toml", "diff"],

src/theme/Footer/CustomFooter/customFooter.module.css

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,10 @@
1717
.brandSection {
1818
display: flex;
1919
flex-direction: column;
20-
gap: 20px;
20+
gap: 10px;
2121
align-items: center;
2222
}
2323

24-
.logoWrapper {
25-
margin-bottom: 10px;
26-
}
27-
2824
.copyrightWrapper {
2925
color: var(--ifm-navbar-link-color);
3026
font-size: 14px;

src/theme/Footer/CustomFooter/customFooter.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function CustomFooter({
2121
}: CustomFooterProps) {
2222
const flareLinks = links.find((link) => link.title == "Flare");
2323
const resourcesLinks = links.find((link) => link.title == "Resources");
24-
const developersLinks = links.find((link) => link.title == "Developers");
24+
const exploreLinks = links.find((link) => link.title == "Explore");
2525
const governanceLinks = links.find((link) => link.title == "Governance");
2626

2727
return (
@@ -31,11 +31,6 @@ export default function CustomFooter({
3131
{/* Logo first */}
3232
<div className={classes.logoWrapper}>{logo}</div>
3333

34-
{/* Tagline text would typically be part of the logo component */}
35-
36-
{/* Social icons */}
37-
<SocialLinks />
38-
3934
{/* Navigation links */}
4035
{flareLinks && (
4136
<div className={classes.horizontalLinks}>
@@ -55,6 +50,9 @@ export default function CustomFooter({
5550
</div>
5651
)}
5752

53+
{/* Social icons */}
54+
<SocialLinks />
55+
5856
{/* Copyright at the bottom */}
5957
<div className={classes.copyrightWrapper}>{copyright}</div>
6058
</div>
@@ -98,13 +96,13 @@ export default function CustomFooter({
9896
</div>
9997
)}
10098

101-
{developersLinks && (
99+
{exploreLinks && (
102100
<div className={classes.footerColumn}>
103101
<div className={classes.columnTitle}>
104-
{developersLinks.title.toUpperCase()}
102+
{exploreLinks.title.toUpperCase()}
105103
</div>
106104
<div className={classes.columnLinks}>
107-
{developersLinks.items.map(({ label, to, href }) => (
105+
{exploreLinks.items.map(({ label, to, href }) => (
108106
<Link
109107
className={classes.columnLink}
110108
key={label}

src/theme/Footer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function Footer(): JSX.Element | null {
1818
<>
1919
{links.find((link) => link.title == "Flare") &&
2020
links.find((link) => link.title == "Resources") &&
21-
links.find((link) => link.title == "Developers") &&
21+
links.find((link) => link.title == "Explore") &&
2222
links.find((link) => link.title == "Governance") ? (
2323
<CustomFooter
2424
// @ts-expect-error: We are sure the footer links have the expected structure

0 commit comments

Comments
 (0)