Skip to content

Commit ff2c0cd

Browse files
authored
feat: shutdown banner (#54)
1 parent 8a13118 commit ff2c0cd

File tree

7 files changed

+72
-8
lines changed

7 files changed

+72
-8
lines changed

.changeset/eight-dryers-stare.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@fleek-platform/dashboard": patch
3+
---
4+
5+
add service shutdown banner

src/components/Form/createExtraValidation.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ export const createExtraValidation = {
107107

108108
const viemClient = createPublicClient({
109109
chain: mainnet,
110-
transport: http('https://rpc.ankr.com/eth/629287b99a3f9953297946a763f2b38f2b8c23d657da96d844903ae91aa0cdb3'),
110+
transport: http(
111+
'https://rpc.ankr.com/eth/629287b99a3f9953297946a763f2b38f2b8c23d657da96d844903ae91aa0cdb3',
112+
),
111113
});
112114

113115
const normalizedName = normalize(name).split('.');
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import { ExternalLink } from '@/components';
2+
3+
export const ShutdownBanner = () => {
4+
return (
5+
<div
6+
className="w-full px-4 py-2 sm:px-6"
7+
style={{
8+
backgroundColor: '#7f1d1d',
9+
borderBottom: '1px solid #dc2626',
10+
}}
11+
>
12+
<div className="mx-auto flex max-w-[1300px] items-center justify-between gap-3">
13+
<div className="flex items-center gap-2 sm:gap-3 flex-1 min-w-0">
14+
<svg
15+
className="shrink-0"
16+
style={{ width: '14px', height: '14px', color: '#fbbf24' }}
17+
fill="currentColor"
18+
viewBox="0 0 16 16"
19+
>
20+
<path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z" />
21+
</svg>
22+
23+
<span
24+
className="font-plex-sans text-[13px] font-bold uppercase tracking-wide sm:text-[14px] whitespace-nowrap"
25+
style={{ color: '#fbbf24' }}
26+
>
27+
Service Shutdown Notice
28+
</span>
29+
30+
<span
31+
className="font-plex-sans text-[12px] font-medium leading-relaxed sm:text-[13px]"
32+
style={{ color: '#ffffff' }}
33+
>
34+
Fleek Hosting and Eliza Agents service will be permanently shut down
35+
on{' '}
36+
<span className="font-bold" style={{ color: '#fcd34d' }}>
37+
January 31, 2026
38+
</span>
39+
. All data and access will cease. If you need any help with
40+
migration{' '}
41+
<ExternalLink
42+
href="https://resources.fleek.xyz/requests/new/"
43+
className="font-bold underline hover:opacity-80 transition-opacity"
44+
>
45+
<span style={{ color: '#ffd79d' }}>contact support</span>
46+
</ExternalLink>
47+
.
48+
</span>
49+
</div>
50+
</div>
51+
</div>
52+
);
53+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { ShutdownBanner } from './ShutdownBanner';
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import { AlertBox } from "@/components";
1+
import { AlertBox } from '@/components';
22

33
export const SunsetMessage: React.FC = () => {
44
return (
5-
<AlertBox size="sm" className="font-medium">Fleek storage has been sunsetted and you cannot upload new files or folders anymore.</AlertBox>
6-
);
7-
};
5+
<AlertBox size="sm" className="font-medium">
6+
Fleek storage has been sunsetted and you cannot upload new files or
7+
folders anymore.
8+
</AlertBox>
9+
);
10+
};

src/pages/_app.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import HomePage from '@/pages/LandingPage';
1818
import { LegacyPlanUpgradeModal } from '@/components/LegacyPlanUpgradeModal/LegacyPlanUpgradeModal';
1919
import { LoadingFullScreen } from '@/components/Loading';
2020
import { setDefined, getDefined, DEFINED_OVERRIDES_FILENAME } from '../defined';
21+
import { ShutdownBanner } from '@/components/ShutdownBanner';
2122

2223
const loadConfig = async (): Promise<boolean> => {
2324
const dashboardBasePath = getDashboardUrl();
@@ -102,6 +103,7 @@ const App = ({ Component, pageProps, requestCookies }: AppProps) => {
102103
return (
103104
<>
104105
<meta name="robots" content="noindex, nofollow" />
106+
<ShutdownBanner />
105107
<Providers requestCookies={requestCookies} forcedTheme={forcedTheme}>
106108
{getLayout(<Component {...pageProps} />)}
107109
<ToastsContainer />

src/pages/projects/[projectId]/storage/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ const Storage: Page = () => {
1414
);
1515
};
1616

17-
Storage.getLayout = (page) => (
18-
<Projects.Layout>{page}</Projects.Layout>
19-
);
17+
Storage.getLayout = (page) => <Projects.Layout>{page}</Projects.Layout>;
2018

2119
export default withAccess({
2220
Component: Storage,

0 commit comments

Comments
 (0)