Skip to content

Commit bace54e

Browse files
committed
feat: add sunset banner
1 parent cade99d commit bace54e

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { Alert, AlertIcon, Link, Text } from '@chakra-ui/react';
2+
import React from 'react';
3+
4+
const SUNSET_DATE = 'November 18, 2026';
5+
const ANNOUNCEMENT_URL = 'https://x.com/harmonyprotocol/status/2112865144338620431';
6+
7+
const SunsetBanner = () => {
8+
return (
9+
<Alert
10+
status="warning"
11+
justifyContent="center"
12+
alignItems={{ base: 'flex-start', md: 'center' }}
13+
py={ 2 }
14+
px={ 6 }
15+
borderRadius={ 0 }
16+
>
17+
<AlertIcon mt={{ base: '3px', md: 0 }}/>
18+
<Text fontSize="sm">
19+
<b>Harmony is sunsetting its L1 chain.</b> This Explorer will be permanently shut down on <b>{ SUNSET_DATE }</b>.{ ' ' }
20+
<Link href={ ANNOUNCEMENT_URL } isExternal fontWeight={ 600 }>
21+
Read the official announcement
22+
</Link>
23+
</Text>
24+
</Alert>
25+
);
26+
};
27+
28+
export default React.memo(SunsetBanner);

‎ui/snippets/topBar/TopBar.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import config from 'configs/app';
1212
import { useAddressFormatContext } from 'lib/contexts/addressFormat';
1313

1414
import ColorModeSwitch from './ColorModeSwitch';
15+
import SunsetBanner from './SunsetBanner';
1516
import SwapButton from './SwapButton';
1617
import TopBarStats from './TopBarStats';
1718

@@ -59,6 +60,7 @@ const TopBar = () => {
5960

6061
return (
6162
<>
63+
<SunsetBanner/>
6264
<Flex
6365
py={ 2 }
6466
px={ 6 }

0 commit comments

Comments
 (0)