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

Add Mobile Screen #308

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions src/i18n/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
"title": "Bridge is under maintenance!",
"subtitle": "We are working hard to improve the Bridge! We should be back soon."
},
"desktop": {
"title": "The bridge is only available on dekstop"
},
"index": {
"top-banner": {
"bridge-off": "The Bridge process is temporarily down but you can still Redeem tokens. We expect to be back running soon!",
Expand Down
23 changes: 18 additions & 5 deletions src/layouts/LayoutBridge/LayoutBridge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ export function LayoutBridge({ ...props }) {
from-bright-blue to-deep-blue to-60% overflow-auto w-full min-h-screen
"
>
<div className="flex flex-row items-center justify-between px-11 py-8 w-full h-fit fixed z-10 backdrop-blur-sm">
<div
className="hidden sm:flex flex-row items-center justify-between px-11
py-8 w-full h-fit fixed z-10 backdrop-blur-sm"
>
<BridgeLogo theme={selectedTheme} />
<div className="flex flex-row items-center gap-4">
<Dropdown
Expand All @@ -104,14 +107,24 @@ export function LayoutBridge({ ...props }) {
<ThemeMode onSetTheme={handleSetTheme} />
</div>
</div>
<div
className={`flex flex-col justify-center items-center pt-[150px] pb-10`}
>
<div className="hidden sm:flex flex-col justify-center items-center pt-[150px] pb-10">
<TopBanner />
{children}
</div>
{open && <ConnectWalletPopup setOpen={setOpen} />}
<Footer selectedTheme={selectedTheme} />
<div className="hidden sm:block">
<Footer selectedTheme={selectedTheme} />
</div>

{/* display only on mobile*/}
<div className="sm:hidden h-screen flex items-center justify-center">
<div className="flex flex-col w-full gap-10 p-4">
<BridgeLogo theme={selectedTheme} />
<p className="mas-banner text-6xl text-f-primary mb-6">
{Intl.t('desktop.title')}
</p>
</div>
</div>
</div>
);
}
Loading