Skip to content

Commit

Permalink
Merge branch 'next' into dapp-main
Browse files Browse the repository at this point in the history
  • Loading branch information
RanGojo committed Sep 17, 2024
2 parents 06fe83e + 9f6eb12 commit 21022ce
Show file tree
Hide file tree
Showing 16 changed files with 242 additions and 235 deletions.
53 changes: 25 additions & 28 deletions components/common/Error/index.tsx
Original file line number Diff line number Diff line change
@@ -1,40 +1,37 @@
import Navbar from 'components/common/Navbar';
import Image from 'next/image';
import { useRouter } from 'next/router';
import errorImage from 'public/img/error.png';
import Layout from '../Layout';

function Error() {
const router = useRouter();

return (
<div className="h-full w-full bg-body-mask bg-cover">
<Navbar theme="dark" />
<main className="w-full flex justify-center">
<div className="container flex flex-col mt-[100px] items-center">
<div className="w-full relative">
<div className="w-full pt-1/4 opacity-75">
<Image
src={errorImage}
className="w-1/2 md:w-auto mx-auto"
alt="error"
/>
</div>
</div>
<div className="text-16 md:text-45 pt-[45px] md:pt-[100px] text-primary-500 font-semibold">
Sorry, something went wrong
</div>
<div className="text-14 md:text-20 w-[80%] text-center mt-10 md:mt-5 text-neutral-800">
An unexpected error has occurred. If reloading the page does not fix
it, please contact Rango support.
</div>
<button
onClick={() => router.reload()}
className="text-baseForeground bg-primary-600 py-10 md:py-15 px-20 mt-50 text-center rounded-full w-[224px] text-14 md:text-18 font-medium">
Reload
</button>
<Layout hasSearchInput title="Something went wrong">
<div className="flex flex-col py-[75px] md:py-[120px] items-center">
<div className="w-full relative">
<Image
priority
rel="preload"
src={errorImage}
className="max-w-[240px] md:max-w-max md:w-auto mx-auto"
alt="error"
/>
</div>
</main>
</div>
<div className="text-18 md:text-45 mt-30 md:mt-50 text-primary-500 font-semibold">
Sorry, something went wrong
</div>
<div className="text-14 md:text-20 w-[80%] text-center mt-10 md:mt-5 text-neutral-800">
An unexpected error has occurred. If reloading the page does not fix
it, please contact Rango support.
</div>
<button
onClick={() => router.reload()}
className="text-baseForeground bg-primary-600 py-8 md:py-10 px-20 mt-20 md:mt-50 text-center rounded-full w-[280px] md:w-[228px] text-16 md:text-18 font-medium">
Reload
</button>
</div>
</Layout>
);
}

Expand Down
9 changes: 5 additions & 4 deletions components/common/Footer/Footer.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,26 @@ export const products: ListItemProps[] = [
openInNewTab: true,
},
{
location: './apis',
location: 'https://rango.exchange/apis',
title: 'SDK',
openInNewTab: false,
},
{
location: './apis',
location: 'https://rango.exchange/apis',
title: 'API',
openInNewTab: false,
},
{
location: './widget',
location: 'https://rango.exchange/widget',
title: 'Widget',
openInNewTab: false,
},
];

export const documentation: ListItemProps[] = [
{
location: 'https://docs.rango.exchange/integration-quick-start/overview',
location:
'https://docs.rango.exchange/api-integration/basic-api-single-step',
title: 'SDK Docs',
openInNewTab: true,
},
Expand Down
Loading

0 comments on commit 21022ce

Please sign in to comment.