-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Perps shutdown * Fix a layout issue * Do not switch networks on the perps placeholder page
- Loading branch information
Showing
14 changed files
with
123 additions
and
16 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
import { lazyLoad } from 'utils/loadable'; | ||
import { PageSkeleton } from 'app/components/PageSkeleton'; | ||
|
||
export const PerpetualsPlaceholderPageLoadable = lazyLoad( | ||
() => import('./index'), | ||
module => module.PerpetualsPlaceholderPage, | ||
{ fallback: <PageSkeleton /> }, | ||
); |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.wrapper { | ||
@apply tw-flex tw-justify-center tw-items-center tw-relative tw--mt-3; | ||
height: calc(100vh - 59px); | ||
} | ||
|
||
.overlay { | ||
@apply tw-absolute tw-top-0 tw-left-0 tw-w-full tw-h-full tw-flex tw-justify-center tw-items-center tw-flex-col; | ||
|
||
background: rgba(0, 0, 0, 0.6); | ||
backdrop-filter: blur(8px); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import React from 'react'; | ||
import placeholderImage from 'assets/images/perpetuals-shutdown/perpetuals_screenshot_without_header.png'; | ||
import { HeaderLabs } from 'app/components/HeaderLabs'; | ||
import { | ||
discordInvite, | ||
sovrynTelegram, | ||
sovrynTwitter, | ||
WIKI_PERPETUAL_FUTURES_LINK, | ||
} from 'utils/classifiers'; | ||
import { useTranslation } from 'react-i18next'; | ||
import styles from './index.module.css'; | ||
import { ReactComponent as SovLogo } from 'assets/images/perpetuals-shutdown/Logo.svg'; | ||
import { ReactComponent as DiscordLogo } from 'assets/images/perpetuals-shutdown/Discord.svg'; | ||
import { ReactComponent as TelegramLogo } from 'assets/images/perpetuals-shutdown/Telegram.svg'; | ||
import { ReactComponent as TwitterLogo } from 'assets/images/perpetuals-shutdown/Twitter.svg'; | ||
import { Picture } from 'app/components/Picture'; | ||
import { translations } from 'locales/i18n'; | ||
|
||
export const PerpetualsPlaceholderPage: React.FC = () => { | ||
const { t } = useTranslation(); | ||
return ( | ||
<> | ||
<HeaderLabs helpLink={WIKI_PERPETUAL_FUTURES_LINK} /> | ||
<div className={styles.wrapper}> | ||
<Picture src={placeholderImage} /> | ||
<div className={styles.overlay}> | ||
<SovLogo /> | ||
<div className="tw-text-2xl tw-font-medium tw-mt-12 tw-max-w-2xl tw-text-center"> | ||
{t(translations.perpetualPage.shutdown.message)} | ||
</div> | ||
<div className="tw-flex tw-mt-20"> | ||
<a href={discordInvite} target="_blank" rel="noreferrer"> | ||
<DiscordLogo /> | ||
</a> | ||
<a | ||
href={sovrynTwitter} | ||
target="_blank" | ||
rel="noreferrer" | ||
className="tw-ml-2.5" | ||
> | ||
<TwitterLogo /> | ||
</a> | ||
<a | ||
href={sovrynTelegram} | ||
target="_blank" | ||
rel="noreferrer" | ||
className="tw-ml-2.5" | ||
> | ||
<TelegramLogo /> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.09 MB
src/assets/images/perpetuals-shutdown/perpetuals_screenshot_without_header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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