Skip to content

Commit

Permalink
Improve sidenav
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Sep 24, 2024
1 parent 63bf196 commit 185cd6d
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 55 deletions.
86 changes: 33 additions & 53 deletions app/local/config/navigation/protocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,21 +341,38 @@ export const navigation: SectionData[] = [
links: [
{
title: '',
links: [{ title: '👋 Welcome', href: '/dao' }],
links: [{ title: 'Welcome', href: '/dao' }],
},
{
title: '🧑‍🎓 The interesting bits',
title: 'The interesting bits',
links: [
{
title: '📜 Constitution',
title: 'Constitution',
href: '/dao/constitution',
},
{ title: '🏛️ Foundation', href: '/dao/foundation' },
{ title: '🔷 Token', href: '/dao/token' },
{ title: 'Foundation', href: '/dao/foundation' },
{ title: 'Token & Airdrop', href: '/dao/token' },
],
},
{
title: '🔗 Links',
title: 'Good to know',
links: [
{
title: 'Submit Proposal',
href: '/dao/proposals/submit',
},
{
title: 'DAO Stewards',
href: '/dao/stewards',
},
{
title: 'Working Group Rules',
href: '/dao/wg/rules',
},
],
},
{
title: 'Links',
links: [
{
title: 'Discourse',
Expand All @@ -379,42 +396,8 @@ export const navigation: SectionData[] = [
},
],
},
// {
// title: 'Governance Process',
// links: [
// {
// title: 'Governance Process',
// href: '/dao/governance/process',
// },
// {
// title: 'Moderator Checklist',
// href: '/dao/governance/moderator',
// },
// ],
// },
{
title: '🧠 Good to know',
links: [
{
title: 'Submit Proposal',
href: '/dao/proposals/submit',
},
{
title: 'DAO Stewards',
href: '/dao/stewards',
},
// {
// title: 'Voting Procedure',
// href: '/dao/proposals/voting',
// },
{
title: 'Working Group Rules',
href: '/dao/wg/rules',
},
],
},
{
title: '📖 Proposals Term 5',
title: 'Proposals Term 5',
links: [
{
// eslint-disable-next-line prettier/prettier
Expand Down Expand Up @@ -492,7 +475,7 @@ export const navigation: SectionData[] = [
],
},
{
title: '📙 Proposals Term 4',
title: 'Proposals Term 4',
links: [
{
title: '4.10 - [Social] Transfer ENS Root Key Ownership to the ENS DAO',
Expand Down Expand Up @@ -537,7 +520,7 @@ export const navigation: SectionData[] = [
],
},
{
title: '📙 Proposals Term 3',
title: 'Proposals Term 3',
links: [
{
title: '3.7 - [Social] Approval of ENS Name Normalization Standard (ENSIP-15)',
Expand Down Expand Up @@ -578,7 +561,7 @@ export const navigation: SectionData[] = [
],
},
{
title: '📙 Proposals Term 2',
title: 'Proposals Term 2',
links: [
{
title: '2.2.5 - [Social] Selection of an ENS endowment fund manager',
Expand Down Expand Up @@ -607,7 +590,7 @@ export const navigation: SectionData[] = [
],
},
{
title: '📗 Proposals Term 1',
title: 'Proposals Term 1',
links: [
{
title: '1.9 - [Executable] Fund the Protocol Guild pilot with 200,000 $ENS',
Expand Down Expand Up @@ -664,7 +647,7 @@ export const navigation: SectionData[] = [
],
},
{
title: '📘 Proposals Term 0',
title: 'Proposals Term 0',
links: [
{
title: '0.4 - [Social] Proposal: Creation of Foundational Working Groups and Working Group Rules',
Expand Down Expand Up @@ -694,17 +677,14 @@ export const navigation: SectionData[] = [
links: [
{
title: '',
links: [{ title: 'Welcome', href: '/ensip', icon: '👋' }],
links: [
{ title: 'What is an ENSIP?', href: '/ensip', icon: '👋' },
],
},
{
title: 'Improvement Proposals (ENSIPs)',
title: 'Proposals',
icon: '📖',
links: [
{
title: 'Explained',
href: '/ensip',
icon: '🧑‍🏫',
},
{ title: '1 - ENS', href: '/ensip/1' },
{ title: '2 - Hash Registrar', href: '/ensip/2' },
{
Expand Down
2 changes: 1 addition & 1 deletion app/src/layout/sidebar/_legacy/navgroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function NavLink({
'ring-ens-light-blue-primary dark:ring-ens-dark-blue-primary flex justify-between gap-2 rounded-lg border-none py-1.5 pr-0 text-sm outline-none ring-offset-1 transition',
isAnchorLink ? 'pl-8' : 'pl-4',
active
? 'bg-ens-light-blue-surface text-ens-light-blue dark:bg-ens-dark-blue-surface dark:text-ens-dark-text-primary'
? 'bg-ens-light-blue-surface text-ens-light-blue dark:bg-ens-dark-blue-surface dark:text-ens-dark-text-primary font-bold'
: 'text-ens-light-text-primary hover:bg-ens-light-background-secondary/50 dark:text-ens-dark-text-primary dark:hover:bg-ens-dark-background-secondary',
className
)}
Expand Down
2 changes: 1 addition & 1 deletion app/src/layout/sidebar/_legacy/sidenav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const NavSect: FC<{ section: SectionData; pathname: string }> = ({
</button>
</div>
{expanded && (
<ul className="mb-4 px-3">
<ul className="mb-4">
{!!section && isInsideMobileNavigation && (
<li className="text-ens-light-text-primary dark:text-ens-dark-text-primary mb-2 text-sm font-medium">
{section.name}
Expand Down

0 comments on commit 185cd6d

Please sign in to comment.