-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update thumbnail #495
Merged
Merged
update thumbnail #495
Changes from 45 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
00780ea
metropolis-api
jiawendh e34aad6
remove console
jiawendh 7c36ae5
metropolis
jiawendh 310b45a
edits
jiawendh fcf1312
more edits
jiawendh e121cb9
remove comma
jiawendh e0e41a9
pnpm-lock.yaml
jiawendh 7f8634a
burger in mobile view & update partners
jiawendh 70f0214
update autoplay speed
jiawendh c047747
update masthead & partners section
jiawendh e697b31
minor button edits
jiawendh 55b0e82
hamburger & mobile footer edits
jiawendh 00fa1de
remove client module
jiawendh 3222e53
update socials in footer
jiawendh da9671a
update links & minor changes to button spacing
jiawendh b422c05
edit mobile view padding + copy edit
jiawendh 61a66d8
all SVGs moved into individual components + remove internal links rel
jiawendh 7051e31
make icons color dynamic
jiawendh c609da6
Updated button links
gabrielkhh 5bce082
Misc update
gabrielkhh a8c4bb9
Moved components to components folder
gabrielkhh 69f9208
Updated header logo linkingv
gabrielkhh 26118b6
Revert change
gabrielkhh 2e581a9
Add Metropolis page linking on header icon
gabrielkhh 6e9f4c6
Prevent new tabbing when clicking header icon
gabrielkhh 0632773
update footer + header homepage link
jiawendh 41eabb1
Merge branch 'main' into metropolis-api
jiawendh 10c5203
update header link class styling
jiawendh a16d3ca
extract "start building" button from LINKS.map loop
jiawendh 3741805
update copy + partners
jiawendh 16977a8
remove excess files & button & change padding for 2nd section text
jiawendh b5f0739
centralise 2nd section
jiawendh c073bbe
change builders icon to solana
jiawendh 97d10bc
centralise 3rd section
jiawendh 875a3c4
Merge branch 'jup-ag:main' into metropolis-api
jiawendh 47d2bcd
change "Resources" naming to "Blog"
jiawendh 037989c
change svg to png & remove /metropolis in logo link
jiawendh 29f7cad
Updated padding figures to use full pixels
gabrielkhh 1d066e1
edit copy
jiawendh e1d4ac9
Merge branch 'main' into metropolis-api
jiawendh eabb65d
update padding figures to use full pixels
jiawendh 5fa2d67
format & group classes & file
jiawendh b24f798
update preview thumbnail
jiawendh 9a53413
Merge branch 'main' into metropolis-api
jiawendh 1bf69cb
update page description
jiawendh 2002d29
change meta tag on metropolis page only
jiawendh c164f75
test thumbnail image
jiawendh 14212c1
test meta tags
jiawendh 9c09110
test meta tags
jiawendh 7cc7830
test meta tags
jiawendh c25e69e
update meta tag to img link on station.jup.ag
jiawendh 8ed4ef8
image optimise
jiawendh cbdb1a1
revert lockfile
jiawendh 441e64c
change text color & images <1MB
jiawendh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,142 @@ | ||
import React from 'react'; | ||
import TwitterIcon from './icons/TwitterIcon'; | ||
import TelegramIcon from './icons/TelegramIcon'; | ||
import DiscordIcon from './icons/DiscordIcon'; | ||
import { DOCS_URL } from '../constants'; | ||
import React from "react"; | ||
import TwitterIcon from "./icons/TwitterIcon"; | ||
import TelegramIcon from "./icons/TelegramIcon"; | ||
import DiscordIcon from "./icons/DiscordIcon"; | ||
import { DOCS_URL } from "../constants"; | ||
import { cn } from "@site/src/utils"; | ||
|
||
const PRODUCTS = [ | ||
{ | ||
label: 'APIs', | ||
link: DOCS_URL, | ||
}, | ||
{ | ||
label: 'Jup Terminal', | ||
link: 'https://terminal.jup.ag/', | ||
}, | ||
{ | ||
label: "APIs", | ||
link: DOCS_URL, | ||
}, | ||
{ | ||
label: "Jup Terminal", | ||
link: "https://terminal.jup.ag/", | ||
}, | ||
]; | ||
|
||
const RESOURCES = [ | ||
{ | ||
label: 'Docs', | ||
link: DOCS_URL, | ||
}, | ||
{ | ||
label: 'Blog', | ||
link: 'https://www.jupresear.ch/c/developers/40', | ||
}, | ||
{ | ||
label: "Docs", | ||
link: DOCS_URL, | ||
}, | ||
{ | ||
label: "Blog", | ||
link: "https://www.jupresear.ch/c/developers/40", | ||
}, | ||
]; | ||
|
||
const Socials = () => { | ||
return ( | ||
<ul className='list-none p-0 mb-0 pb-9 mt-9 md:mt-14 flex gap-4 items-center justify-center'> | ||
<li> | ||
<a href="https://discord.gg/jup" target="_blank" rel="noopener noreferrer" className="py-1 text-sm font-semibold text-white hover:text-[#c7f284] hover:no-underline transition-colors ease-in duration-200"> | ||
<DiscordIcon height={18} width={18} color={"#ffffff"} /> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://t.me/jup_dev" target="_blank" rel="noopener noreferrer" className="py-1 text-sm font-semibold text-white hover:text-[#c7f284] hover:no-underline transition-colors ease-in duration-200"> | ||
<TelegramIcon height={18} width={18} color={"#ffffff"} /> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://twitter.com/JupiterExchange" target="_blank" rel="noopener noreferrer" className="py-1 text-sm font-semibold text-white hover:text-[#c7f284] hover:no-underline transition-colors ease-in duration-200"> | ||
<TwitterIcon height={18} width={18} color={"#ffffff"} /> | ||
</a> | ||
</li> | ||
</ul> | ||
) | ||
} | ||
return ( | ||
<ul className="list-none p-0 mb-0 pb-9 mt-9 md:mt-14 flex gap-4 items-center justify-center"> | ||
<li> | ||
<a | ||
href="https://discord.gg/jup" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="py-1 text-sm font-semibold text-white hover:text-[#c7f284] hover:no-underline transition-colors ease-in duration-200" | ||
> | ||
<DiscordIcon height={18} width={18} color={"#ffffff"} /> | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="https://t.me/jup_dev" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="py-1 text-sm font-semibold text-white hover:text-[#c7f284] hover:no-underline transition-colors ease-in duration-200" | ||
> | ||
<TelegramIcon height={18} width={18} color={"#ffffff"} /> | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="https://twitter.com/JupiterExchange" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="py-1 text-sm font-semibold text-white hover:text-[#c7f284] hover:no-underline transition-colors ease-in duration-200" | ||
> | ||
<TwitterIcon height={18} width={18} color={"#ffffff"} /> | ||
</a> | ||
</li> | ||
</ul> | ||
); | ||
}; | ||
|
||
const Footer = () => { | ||
return ( | ||
<footer className="max-w-screen-xl mx-auto px-5 pt-1 bg-[#131C25] md:flex md:items-center md:flex-wrap"> | ||
<div className="w-full md:w-auto md:pl-12 md:pb-8 flex items-center justify-center md:justify-start"> | ||
<a href="/" className='hover:no-underline'> | ||
<div className="flex flex-row items-center space-x-2.5"> | ||
<img | ||
alt="logo" | ||
loading="lazy" | ||
width="32" | ||
height="32" | ||
decoding="async" | ||
data-nimg="1" | ||
src="/img/jupiter-logo.svg" | ||
style={{ color: 'transparent' }} | ||
/> | ||
<span className="text-lg font-bold text-white">Jupiter</span> | ||
</div> | ||
</a> | ||
</div> | ||
return ( | ||
<footer className="max-w-screen-xl mx-auto px-5 pt-1 bg-[#131C25] md:flex md:items-center md:flex-wrap"> | ||
<div className="w-full md:w-auto md:pl-12 md:pb-8 flex items-center justify-center md:justify-start"> | ||
<a href="/" className="hover:no-underline"> | ||
<div className="flex flex-row items-center space-x-2.5"> | ||
<img | ||
alt="logo" | ||
loading="lazy" | ||
width="32" | ||
height="32" | ||
decoding="async" | ||
data-nimg="1" | ||
src="/img/jupiter-logo.svg" | ||
style={{ color: "transparent" }} | ||
/> | ||
<span className="text-lg font-bold text-white">Jupiter</span> | ||
</div> | ||
</a> | ||
</div> | ||
|
||
<div className="mx-auto md:mr-0 md:ml-auto mt-12 md:mt-0 sm:max-w-lg w-full flex flex-row min-[450px]:flex-row gap-2 min-[450px]:gap-5 justify-around text-center min-[450px]:text-left"> | ||
<div className="mx-4"> | ||
<h6 className='font-semibold text-white/70 text-xs mb-2'>Products</h6> | ||
<ul className='list-none p-0'> | ||
{PRODUCTS.map((item) => { | ||
return ( | ||
<li key={item.label}> | ||
<a href={item.link} target="_blank" className="py-1 text-sm font-semibold text-white hover:text-[#c7f284] hover:no-underline transition-colors ease-in duration-200"> | ||
{item.label} | ||
</a> | ||
</li> | ||
) | ||
})} | ||
</ul> | ||
</div> | ||
<div className="mx-4"> | ||
<h6 className='font-semibold text-white/70 text-xs mb-2'>Resources</h6> | ||
<ul className='list-none p-0'> | ||
{RESOURCES.map((item) => { | ||
return ( | ||
<li key={item.label}> | ||
<a href={item.link} target="_blank" className="py-1 text-sm font-semibold text-white hover:text-[#c7f284] hover:no-underline transition-colors ease-in duration-200"> | ||
{item.label} | ||
</a> | ||
</li> | ||
) | ||
})} | ||
</ul> | ||
</div> | ||
</div> | ||
<div className="mx-auto w-full"> | ||
<Socials /> | ||
</div> | ||
</footer> | ||
); | ||
<div | ||
className={cn( | ||
"w-full max-w-lg mx-auto mt-12 text-center", | ||
"flex flex-row gap-2 justify-around", | ||
"min-[450px]:text-left min-[450px]:gap-5", | ||
"md:mr-0 md:mt-0", | ||
)} | ||
> | ||
<div className="mx-4"> | ||
<h6 className="font-semibold text-white/70 text-xs mb-2">Products</h6> | ||
<ul className="list-none p-0"> | ||
{PRODUCTS.map((item) => { | ||
return ( | ||
<li key={item.label}> | ||
<a | ||
href={item.link} | ||
target="_blank" | ||
className="py-1 text-sm font-semibold text-white hover:text-[#c7f284] hover:no-underline transition-colors ease-in duration-200" | ||
> | ||
{item.label} | ||
</a> | ||
</li> | ||
); | ||
})} | ||
</ul> | ||
</div> | ||
<div className="mx-4"> | ||
<h6 className="font-semibold text-white/70 text-xs mb-2"> | ||
Resources | ||
</h6> | ||
<ul className="list-none p-0"> | ||
{RESOURCES.map((item) => { | ||
return ( | ||
<li key={item.label}> | ||
<a | ||
href={item.link} | ||
target="_blank" | ||
className="py-1 text-sm font-semibold text-white hover:text-[#c7f284] hover:no-underline transition-colors ease-in duration-200" | ||
> | ||
{item.label} | ||
</a> | ||
</li> | ||
); | ||
})} | ||
</ul> | ||
</div> | ||
</div> | ||
<div className="mx-auto w-full"> | ||
<Socials /> | ||
</div> | ||
</footer> | ||
); | ||
}; | ||
|
||
export default Footer; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, don't think we should change the meta tags for the project for Metropolis. Perhaps if we can override it within then landing page only or if not, some other more drastic solution might be needed