Skip to content

Commit d811bd1

Browse files
committed
Temporarily disable mobile version
1 parent 2af3ef7 commit d811bd1

File tree

9 files changed

+37
-68
lines changed

9 files changed

+37
-68
lines changed

src/components/deeploys/ApplicationCard.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ export default function ApplicationCard({ app }: { app: DeeployApp }) {
77
return (
88
<BorderedCard>
99
<div className="row justify-between gap-3 lg:gap-6">
10-
<div className="min-w-[212px]">
11-
<CardItem label="Version" value={<>{app.alias}</>} isBold />
10+
<div className="min-w-[168px]">
11+
<CardItem label="Alias" value={<>{app.alias}</>} isBold />
1212
</div>
1313

14-
<div className="min-w-[212px]">
14+
<div className="min-w-[168px]">
1515
<CardItem label="Plugin Signature" value={<>{app.pluginSignature}</>} />
1616
</div>
1717

18-
<div className="min-w-[92px]">
18+
<div className="min-w-[64px]">
1919
<CardItem label="Nodes" value={<>{app.nodes}</>} />
2020
</div>
2121

22-
<div className="min-w-[92px]">
22+
<div className="min-w-[64px]">
2323
<CardItem
2424
label="GPU/CPU"
2525
value={<SmallTag variant={app.processor === 'GPU' ? 'green' : 'blue'}>{app.processor}</SmallTag>}

src/components/deeploys/Running.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ function Running() {
1919
return (
2020
<div className="list">
2121
<ListHeader>
22-
<div className="min-w-[212px]">Alias</div>
23-
<div className="min-w-[212px]">Plugin Signature</div>
24-
<div className="min-w-[92px]">Nodes</div>
25-
<div className="min-w-[92px]">GPU/CPU</div>
22+
<div className="min-w-[168px]">Alias</div>
23+
<div className="min-w-[168px]">Plugin Signature</div>
24+
<div className="min-w-[64px]">Nodes</div>
25+
<div className="min-w-[64px]">GPU/CPU</div>
2626
<div className="min-w-[112px]">Running Nodes</div>
2727
<div className="min-w-[112px]">Expiration Date</div>
2828
</ListHeader>

src/components/layout/Content.tsx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Logo from '@assets/token.svg';
21
import { routeInfo } from '@lib/routes/routes';
32
import { ConnectKitButton } from 'connectkit';
43
import { useEffect, useState } from 'react';
@@ -26,11 +25,11 @@ function Content() {
2625
}, [location]);
2726

2827
return (
29-
<div className="col mx-auto h-full max-w-6xl gap-6 px-4 md:gap-8 md:px-8 lg:px-10 larger:gap-12">
30-
<div className="flex flex-col-reverse items-center justify-between gap-8 lg:gap-8 larger:flex-row larger:items-start">
28+
<div className="col mx-auto h-full max-w-6xl gap-6 px-4 md:gap-8 md:px-8 lg:gap-12 lg:px-10">
29+
<div className="flex flex-col-reverse items-center justify-between gap-8 lg:flex-row lg:items-start lg:gap-8">
3130
<div className="col gap-1.5">
3231
{!!title && (
33-
<div className="row justify-center larger:justify-start">
32+
<div className="row justify-center lg:justify-start">
3433
<div className="text-[26px] font-bold leading-none lg:text-[28px]">{title}</div>
3534
</div>
3635
)}
@@ -40,18 +39,12 @@ function Content() {
4039
)}
4140
</div>
4241

43-
<div className="row w-full justify-between larger:w-auto">
44-
<div className="mobile-only-block">
45-
<img src={Logo} alt="Logo" className="h-10" />
46-
</div>
47-
42+
<div className="flex">
4843
<ConnectKitButton showBalance />
4944
</div>
5045
</div>
5146

5247
<Outlet />
53-
54-
<div className="layoutBreak:hidden">{/* TODO: Display a message to inform the user to switch to desktop */}</div>
5548
</div>
5649
);
5750
}

src/components/layout/Layout.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
1+
import Logo from '@assets/logo.svg';
12
import Content from './Content';
23
import Sider from './Sider';
34

45
function Layout() {
56
return (
67
<div className="flex min-h-dvh items-stretch bg-light">
7-
<div className="hidden layoutBreak:block">
8-
<Sider />
9-
</div>
8+
<Sider />
109

11-
<div className="relative mb-[76px] min-h-dvh w-full py-6 layoutBreak:mb-0 layoutBreak:ml-sider-with-padding layoutBreak:py-10 lg:py-12">
10+
<div className="ml-small-sider-with-padding relative hidden min-h-dvh w-full py-6 md:py-10 lg:block lg:py-12 larger:ml-sider-with-padding">
1211
<Content />
1312
</div>
13+
14+
<div className="lg:hidden">
15+
<div className="center-all col fixed bottom-0 left-0 right-0 top-0 gap-6 bg-slate-50 p-8">
16+
<div className="center-all">
17+
<img src={Logo} alt="Logo" className="h-6" />
18+
</div>
19+
20+
<div className="text-center">
21+
Please switch to the <span className="font-medium">desktop</span> version
22+
</div>
23+
</div>
24+
</div>
1425
</div>
1526
);
1627
}

src/components/layout/Sider.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Navigation from './Navigation';
44

55
function Sider() {
66
return (
7-
<div className="col w-sider fixed bottom-0 left-0 top-0 m-4 justify-between rounded-xl bg-slate-100 px-6 pb-12 pt-12">
7+
<div className="col w-small-sider fixed bottom-0 left-0 top-0 m-4 justify-between rounded-xl bg-slate-100 px-6 pb-12 pt-12 larger:w-sider">
88
<div className="col gap-8">
99
<div className="center-all">
1010
<img src={Logo} alt="Logo" className="h-7" />
@@ -14,14 +14,6 @@ function Sider() {
1414
</div>
1515

1616
<div className="col text-center">
17-
{/* <NavLink to={routePath.privacyPolicy} className="text-[15px] font-medium leading-none hover:opacity-70">
18-
{routeInfo[routePath.privacyPolicy].title}
19-
</NavLink>
20-
21-
<NavLink to={routePath.termsAndConditions} className="text-[15px] font-medium leading-none hover:opacity-70">
22-
{routeInfo[routePath.termsAndConditions].title}
23-
</NavLink> */}
24-
2517
<div className="pt-1">
2618
<NetworkAndStatus />
2719
</div>

src/index.css

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,6 @@ body {
2727
@apply row justify-center;
2828
}
2929

30-
.web-only-block {
31-
@apply hidden md:block;
32-
}
33-
34-
.mobile-only-block {
35-
@apply block md:hidden;
36-
}
37-
38-
.web-only-flex {
39-
@apply hidden md:flex;
40-
}
41-
42-
.mobile-only-flex {
43-
@apply flex md:hidden;
44-
}
45-
46-
.web-only-xl-flex {
47-
@apply hidden xl:flex;
48-
}
49-
50-
.mobile-only-xl-flex {
51-
@apply flex xl:hidden;
52-
}
53-
5430
.active {
5531
@apply text-primary;
5632
}
@@ -63,16 +39,10 @@ body {
6339
@apply col w-full gap-3 overflow-x-auto;
6440
}
6541

66-
/* bg-[#e6ebf1] TODO: Remove */
6742
.slate-button {
6843
@apply bg-[#e9edf2] hover:!opacity-75;
6944
}
7045

71-
/* Safe padding for mobile devices */
72-
.nav-safe-padding {
73-
padding-bottom: env(safe-area-inset-bottom);
74-
}
75-
7646
/* Scrollbar */
7747
*::-webkit-scrollbar {
7848
width: 8px;

src/lib/providers/Web3Provider.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const siweConfig: SIWEConfig = {
2222
nonce,
2323
issuedAt: new Date().toISOString(),
2424
statement:
25+
// TODO: Modify for Deeploy
2526
`By confirming this signature and engaging with our platform,` +
2627
` you confirm your status as the rightful account manager or authorized representative for the wallet address ${address}. ` +
2728
`This action grants permission for a login attempt on the https://${window.location.host} portal. ` +
@@ -76,6 +77,7 @@ const siweConfig: SIWEConfig = {
7677
};
7778

7879
const wagmiConfig = createConfig(
80+
// TODO: Modify for Deeploy
7981
getDefaultConfig({
8082
chains: config.networks,
8183
walletConnectProjectId: projectId,

src/shared/deployment/JobList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function JobList({
7474
</div>
7575

7676
{jobs.map((job) => (
77-
<div key={job.id} className="row justify-between border-t-2 border-slate-200/65 px-4 py-3 text-sm">
77+
<div key={job.id} className="row justify-between gap-2 border-t-2 border-slate-200/65 px-4 py-3 text-sm">
7878
{renderJob(job)}
7979

8080
<ContextMenuWithTrigger

tailwind.config.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,20 @@ export default {
3232
custom: '0 0 0 3px #e2e8f0',
3333
},
3434
width: {
35-
sider: '270px',
35+
sider: '262px',
36+
'small-sider': '240px',
3637
},
3738
margin: {
38-
'sider-with-padding': 'calc(270px + 1rem)',
39+
'sider-with-padding': 'calc(262px + 1rem)',
40+
'small-sider-with-padding': 'calc(240px + 1rem)',
3941
},
4042
},
4143
screens: {
4244
xs: '400px',
4345
sm: '480px',
4446
md: '768px',
45-
layoutBreak: '836px',
4647
lg: '1024px',
47-
larger: '1232px',
48+
larger: '1176px',
4849
xl: '1410px',
4950
},
5051
},

0 commit comments

Comments
 (0)