Skip to content

Commit

Permalink
Merge pull request #44 from sanctuarycomputer/hot-fix-after-launch
Browse files Browse the repository at this point in the history
fix asset issue and update the footer links
  • Loading branch information
nahbee10 authored Dec 12, 2024
2 parents 8871e62 + fdd61d0 commit f380f67
Show file tree
Hide file tree
Showing 8 changed files with 445 additions and 364 deletions.
164 changes: 65 additions & 99 deletions assets/shared-bundle.js

Large diffs are not rendered by default.

497 changes: 292 additions & 205 deletions assets/tailwind-output.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Copenhagen",
"author": "Sanctuary Computer",
"version": "4.2.22",
"version": "4.2.28",
"api_version": 4,
"default_locale": "en-us",
"settings": [
Expand Down
45 changes: 37 additions & 8 deletions src/modules/footer/FooterModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Footer: FC<Props> = ({ footerPageData }) => {
return (
<footer className="px-margin-mobile pt-margin-web sm:px-margin-web sm:pb-margin-web">
<h2 className="sr-only">Footer</h2>
<div className="default-grid sm:mb-20">
<div className="default-grid sm:mb-6">
<div className="mb-12 hidden items-start sm:col-span-8 sm:flex md:col-span-4 md:mb-0">
<LinkBase href="/" className="flex flex-row items-center">
<MiniUnicon color="neutral-1" className="mb-[0.1875rem] h-8 w-8" />
Expand All @@ -27,11 +27,11 @@ const Footer: FC<Props> = ({ footerPageData }) => {
{footerPageData?.footerLinksSupport && footerPageData.footerLinksSupport.length > 0 ? (
<div className="space-y-[0.3125rem]">
<h3 className="body-1 text-light-neutral-1 dark:text-dark-neutral-1">Support</h3>
<ul>
<ul className="flex flex-col space-y-1">
{footerPageData?.footerLinksSupport.map((link) => (
<li key={link.name}>
<TextButton
textClassName="body-2 text-light-neutral-2 dark:text-dark-neutral-2 group-hover:text-light-neutral-1 group-hover:dark:text-dark-neutral-1 transition-colors"
textClassName="body-2 text-light-neutral-2 dark:text-dark-neutral-2 group-hover:text-light-neutral-1 block group-hover:dark:text-dark-neutral-1 transition-colors"
href={link.url}
label={link.name}
/>
Expand All @@ -44,7 +44,7 @@ const Footer: FC<Props> = ({ footerPageData }) => {
footerPageData.footerLinksEcosystem.length > 0 ? (
<div className="col-span-1 space-y-[0.3125rem]">
<h3 className="body-1 text-light-neutral-1 dark:text-dark-neutral-1">Protocol</h3>
<ul>
<ul className="flex flex-col space-y-1">
{footerPageData.footerLinksEcosystem.map((link) => (
<li key={link.name}>
<TextButton
Expand All @@ -60,7 +60,7 @@ const Footer: FC<Props> = ({ footerPageData }) => {
{footerPageData?.footerLinksCompany && footerPageData?.footerLinksCompany.length > 0 ? (
<div className="space-y-[0.3125rem]">
<h3 className="body-1 text-light-neutral-1 dark:text-dark-neutral-1">Company</h3>
<ul>
<ul className="flex flex-col space-y-1">
{footerPageData.footerLinksCompany.map((link) => (
<li key={link.name}>
<TextButton
Expand All @@ -76,7 +76,7 @@ const Footer: FC<Props> = ({ footerPageData }) => {
{footerPageData?.footerLinksHelp && footerPageData.footerLinksHelp.length > 0 ? (
<div className="space-y-[0.3125rem]">
<h3 className="body-1 text-light-neutral-1 dark:text-dark-neutral-1">Need Help?</h3>
<ul>
<ul className="flex flex-col space-y-1">
{footerPageData?.footerLinksHelp.map((link) => (
<li key={link.name}>
<TextButton
Expand All @@ -91,12 +91,41 @@ const Footer: FC<Props> = ({ footerPageData }) => {
) : null}
</nav>
</div>
<div className="col-span-full flex flex-row space-x-gap-large border-b border-light-surface-3 py-margin-web dark:border-dark-surface-3 sm:border-0 sm:px-0 sm:py-0 sm:mt-6">
{footerPageData?.footerGithubLink ? (
<LinkBase
className="group"
href={footerPageData.footerGithubLink}
ariaLabel="Link to Uniswap Labs Github"
>
<Github className="h-6 w-6" />
</LinkBase>
) : null}
{footerPageData?.footerXLink ? (
<LinkBase
className="group"
href={footerPageData.footerXLink}
ariaLabel="Link to Uniswap Labs X account"
>
<X className="h-6 w-6" />
</LinkBase>
) : null}
{footerPageData?.footerDiscordLink ? (
<LinkBase
className="group"
href={footerPageData.footerDiscordLink}
ariaLabel="Link to Uniswap Labs Discord"
>
<Discord className="h-6 w-6" />
</LinkBase>
) : null}
</div>
</div>
<div className="flex flex-col-reverse border-light-surface-3 dark:border-dark-surface-3 sm:flex-row sm:items-center sm:justify-between sm:border-t sm:pt-padding-large">
<p className="body-3 my-padding-large text-light-neutral-2 dark:text-dark-neutral-2 sm:my-0">
@{new Date().getFullYear()} Uniswap Labs
</p>
<div className="flex flex-row space-x-gap-large border-b border-light-surface-3 py-margin-web dark:border-dark-surface-3 sm:border-0 sm:px-0 sm:py-0">
{/* <div className="flex flex-row space-x-gap-large border-b border-light-surface-3 py-margin-web dark:border-dark-surface-3 sm:border-0 sm:px-0 sm:py-0">
{footerPageData?.footerGithubLink ? (
<LinkBase
className="group"
Expand Down Expand Up @@ -124,7 +153,7 @@ const Footer: FC<Props> = ({ footerPageData }) => {
<Discord className="h-6 w-6" />
</LinkBase>
) : null}
</div>
</div> */}
</div>
</footer>
);
Expand Down
3 changes: 1 addition & 2 deletions src/modules/side-nav/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ type SideNavApiResponse = {
html_url: string;
name: string;
position: number;
parent_section_id: number | null;
}[];
};

Expand All @@ -45,7 +44,7 @@ const sanitizeResponse = (response: SideNavApiResponse): SideNavData => {

const categories = response.categories.map((category) => {
const sections = response.sections
.filter((section) => section.category_id === category.id && !section.parent_section_id)
.filter((section) => section.category_id === category.id)
.map((section) => {
const articles = response.articles
.filter((article) => article.section_id === section.id)
Expand Down
61 changes: 31 additions & 30 deletions style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

@import '../assets/types.css';

body {
@apply min-h-screen bg-light-surface-1 dark:bg-dark-surface-1;
}
.site-max-width {
max-width: 1440px;
}
Expand Down Expand Up @@ -222,7 +225,7 @@
display: block;
position: absolute;
content: '';
background-image: url('../assets/right-arrow-light.svg');
background-image: var(--right-arrow-path-dark);
background-size: 1.5rem 1.5rem;
height: 1.5rem;
width: 1.5rem;
Expand Down
32 changes: 14 additions & 18 deletions templates/footer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -15,40 +15,36 @@
footerDiscordLink: 'https://discord.com/invite/uniswap',
footerLinksSupport: [
{
name: 'Uniswap web app',
url: '/categories/8122316887181-Uniswap-web-app',
name: 'Frequently Asked Questions',
url: '/hc/en-us/categories/32172688959117-Frequently-Asked-Questions',
},
{
name: 'Uniswap Extension',
url: '/categories/25219141467405-Uniswap-Extension',
name: 'Getting Started Guides',
url: '/hc/en-us/categories/32174051347341-Getting-Started-Guides',
},
{
name: 'Uniswap Wallet',
url: '/categories/11301970439565-Uniswap-Wallet',
},
{
name: 'Limit orders',
url: '/categories/24325247851917-Limit-orders',
url: '/hc/en-us/categories/11301970439565-Uniswap-Wallet',
},
{
name: 'UniswapX',
url: '/categories/17081597600525-UniswapX',
name: 'Uniswap Extension',
url: '/hc/en-us/categories/25219141467405-Uniswap-Extension',
},
{
name: 'Liquidity',
url: '/categories/8122334631437-Liquidity',
name: 'Sending and Swapping',
url: '/hc/en-us/categories/32352201739021-Sending-and-Swapping',
},
{
name: 'Networks',
url: '/categories/14366725384845-Networks',
name: 'Deep Dives and Troubleshooting',
url: '/hc/en-us/categories/32174144727565-Deep-Dives-and-Troubleshooting',
},
{
name: 'Buying Crypto',
url: '/categories/11302011603341-Buying-Crypto',
name: 'Crypto Security and Scams',
url: '/hc/en-us/categories/32456997609229-Crypto-Security-and-Scams',
},
{
name: 'General',
url: '/categories/5685161551629-General',
url: '/hc/en-us/categories/5685161551629-General',
},
],
footerLinksHelp: [
Expand Down

0 comments on commit f380f67

Please sign in to comment.