Skip to content

Commit

Permalink
Redirect to renamed ecosystem page (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
micahalcorn authored Aug 16, 2023
1 parent 017d141 commit afec0a5
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
5 changes: 5 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ const moduleExports = {
destination: `/governance`,
permanent: true,
},
{
source: "/partners",
destination: `/ecosystem`,
permanent: true,
},
];
},
async rewrites() {
Expand Down
16 changes: 9 additions & 7 deletions pages/partners.tsx → pages/ecosystem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import formatSeo from "../src/utils/seo";
import transformLinks from "../src/utils/transformLinks";
import capitalize from "lodash/capitalize";

const Partners = ({ seo, navLinks, partners }) => {
const Ecosystem = ({ seo, navLinks, partners }) => {
const [category, setCategory] = useState("");

const categoryPartners = partners?.filter((partner) => {
Expand All @@ -29,10 +29,10 @@ const Partners = ({ seo, navLinks, partners }) => {
return (
<>
<Head>
<title>Partners</title>
<title>Ecosystem</title>
</Head>
<Seo seo={seo} />
<section className="partners black">
<section className="ecosystem black">
<Header mappedLinks={navLinks} webProperty="ousd" active={"Partners"} />
<div className="px-8 md:px-16 lg:px-[134px] pb-[132px] text-left">
<div className="max-w-[1432px] mx-auto mt-5 md:mt-16">
Expand All @@ -41,7 +41,7 @@ const Partners = ({ seo, navLinks, partners }) => {
className="text-[40px] leading-[40px] md:text-[64px] md:leading-[72px]"
style={{ fontWeight: 500 }}
>
Partners
Ecosystem
</Typography.H2>
<Typography.Body3 className="max-w-[943px] mt-2 md:mt-6 text-[16px] md:text-[20px] leading-[28px] md:leading-[36px] text-subheading">
OUSD is a constantly evolving ecosystem offering the best-risk
Expand Down Expand Up @@ -140,14 +140,16 @@ const Partners = ({ seo, navLinks, partners }) => {
};

export async function getStaticProps() {
const partnerRes = await fetchAPI("/ousd-partners", {
const partnerRes = await fetchAPI(
"/ousd-partners?pagination[pageSize]=1000",
{
populate: {
logo: {
populate: "*",
},
},
});
const seoRes = await fetchAPI("/ousd/page/en/%2Fpartners");
const seoRes = await fetchAPI("/ousd/page/en/%2Fecosystem");
const navRes = await fetchAPI("/ousd-nav-links", {
populate: {
links: {
Expand All @@ -168,4 +170,4 @@ export async function getStaticProps() {
};
}

export default Partners;
export default Ecosystem;
File renamed without changes
4 changes: 2 additions & 2 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ export default function Footer() {
</Typography.Body3>
</Link>
<Link
href={"/partners"}
href={"/ecosystem"}
target="_parent"
rel="noopener noreferrer"
className="lg:mr-10 mt-[20px] lg:mt-2"
>
<Typography.Body3 className="text-[#fafbfb]">
Partners
Ecosystem
</Typography.Body3>
</Link>
<Link
Expand Down
4 changes: 2 additions & 2 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ section.page {
background-repeat: no-repeat;
}

section.partners {
background-image: url(/images/splines-partners.png);
section.ecosystem {
background-image: url(/images/splines-ecosystem.png);
background-position: right 0% bottom -400px;
background-repeat: no-repeat;
}
Expand Down

0 comments on commit afec0a5

Please sign in to comment.