Skip to content
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 54 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
00780ea
metropolis-api
jiawendh Sep 10, 2024
e34aad6
remove console
jiawendh Sep 10, 2024
7c36ae5
metropolis
jiawendh Sep 10, 2024
310b45a
edits
jiawendh Sep 10, 2024
fcf1312
more edits
jiawendh Sep 11, 2024
e121cb9
remove comma
jiawendh Sep 11, 2024
e0e41a9
pnpm-lock.yaml
jiawendh Sep 11, 2024
7f8634a
burger in mobile view & update partners
jiawendh Sep 11, 2024
70f0214
update autoplay speed
jiawendh Sep 11, 2024
c047747
update masthead & partners section
jiawendh Sep 12, 2024
e697b31
minor button edits
jiawendh Sep 12, 2024
55b0e82
hamburger & mobile footer edits
jiawendh Sep 13, 2024
00fa1de
remove client module
jiawendh Sep 13, 2024
3222e53
update socials in footer
jiawendh Sep 13, 2024
da9671a
update links & minor changes to button spacing
jiawendh Sep 16, 2024
b422c05
edit mobile view padding + copy edit
jiawendh Sep 16, 2024
61a66d8
all SVGs moved into individual components + remove internal links rel
jiawendh Sep 16, 2024
7051e31
make icons color dynamic
jiawendh Sep 16, 2024
c609da6
Updated button links
gabrielkhh Sep 16, 2024
5bce082
Misc update
gabrielkhh Sep 16, 2024
a8c4bb9
Moved components to components folder
gabrielkhh Sep 16, 2024
69f9208
Updated header logo linkingv
gabrielkhh Sep 16, 2024
26118b6
Revert change
gabrielkhh Sep 16, 2024
2e581a9
Add Metropolis page linking on header icon
gabrielkhh Sep 16, 2024
6e9f4c6
Prevent new tabbing when clicking header icon
gabrielkhh Sep 16, 2024
0632773
update footer + header homepage link
jiawendh Sep 17, 2024
41eabb1
Merge branch 'main' into metropolis-api
jiawendh Sep 17, 2024
10c5203
update header link class styling
jiawendh Sep 17, 2024
a16d3ca
extract "start building" button from LINKS.map loop
jiawendh Sep 17, 2024
3741805
update copy + partners
jiawendh Sep 18, 2024
16977a8
remove excess files & button & change padding for 2nd section text
jiawendh Sep 18, 2024
b5f0739
centralise 2nd section
jiawendh Sep 18, 2024
c073bbe
change builders icon to solana
jiawendh Sep 18, 2024
97d10bc
centralise 3rd section
jiawendh Sep 18, 2024
875a3c4
Merge branch 'jup-ag:main' into metropolis-api
jiawendh Sep 19, 2024
47d2bcd
change "Resources" naming to "Blog"
jiawendh Sep 19, 2024
037989c
change svg to png & remove /metropolis in logo link
jiawendh Sep 19, 2024
29f7cad
Updated padding figures to use full pixels
gabrielkhh Sep 19, 2024
1d066e1
edit copy
jiawendh Sep 19, 2024
e1d4ac9
Merge branch 'main' into metropolis-api
jiawendh Sep 19, 2024
eabb65d
update padding figures to use full pixels
jiawendh Sep 23, 2024
5fa2d67
format & group classes & file
jiawendh Sep 23, 2024
b24f798
update preview thumbnail
jiawendh Sep 24, 2024
9a53413
Merge branch 'main' into metropolis-api
jiawendh Sep 24, 2024
1bf69cb
update page description
jiawendh Sep 24, 2024
2002d29
change meta tag on metropolis page only
jiawendh Sep 24, 2024
c164f75
test thumbnail image
jiawendh Sep 24, 2024
14212c1
test meta tags
jiawendh Sep 24, 2024
9c09110
test meta tags
jiawendh Sep 24, 2024
7cc7830
test meta tags
jiawendh Sep 24, 2024
c25e69e
update meta tag to img link on station.jup.ag
jiawendh Sep 24, 2024
8ed4ef8
image optimise
jiawendh Sep 25, 2024
cbdb1a1
revert lockfile
jiawendh Sep 25, 2024
441e64c
change text color & images <1MB
jiawendh Sep 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require("dotenv").config();

/** @type {import('@docusaurus/types').Config} */
const config = {
title: "Jupiter Station",
title: "Jupiter Metropolis API",
staticDirectories: ["static"],
tagline: "The Key Liquidity Aggregator and Swap Infrastructure for Solana",
favicon: "img/favicon.ico",
Expand Down Expand Up @@ -192,11 +192,12 @@ const config = {
{
property: "description",
content:
"Jupiter Station is the place for all things related to Jupiter. Here you can access comprehensive documentation, explore statistics and analytics, ecosystem partners that are integrating with Jupiter and read our latest updates.",
"Jupiter Metropolis API is the hub for the most powerful set of liquidity APIs in crypto. Unlock seamless access to liquidity and data with Metropolis and find all the API endpoints needed to build a winning business, ranging from Swap API, Token API, Price API, and more.",
Copy link
Contributor

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

},
{
property: "og:image",
content: "https://og.jup.ag/api/jupiter-station",
content: "https://station.jup.ag/img/metropolis-api/api-jup_2.jpg",
// content: "https://og.jup.ag/api/jupiter-station",
},
{
name: "theme-color",
Expand Down
223 changes: 128 additions & 95 deletions src/components/Metropolis/components/Footer.tsx
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;
Loading