Skip to content

Commit 35ee0fd

Browse files
committed
alert
1 parent a687c63 commit 35ee0fd

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

components/Layout.tsx

+35
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,12 @@ const Layout = ({ children }: { children: ReactNode }) => {
166166
}`}
167167
>
168168
<TopBar />
169+
<BannerContent
170+
isClaim={true}
171+
text={
172+
'Due to a critical vulnerability found by core dev team, all withdrawals and spot trading are currently disabled. Exchange will be back operating in ~4 days from 06.12.2024, Please see the announcement in Discord for more info'
173+
}
174+
></BannerContent>
169175
{asPath !== '/rewards' ? <PromoBanner /> : null}
170176
<NewListingBanner />
171177
<div className="pb-12 md:pb-[27px]">
@@ -285,3 +291,32 @@ function DeployRefreshManager(): JSX.Element | null {
285291
</Transition>
286292
)
287293
}
294+
295+
const BannerContent = ({
296+
text,
297+
isClaim,
298+
}: {
299+
text: string
300+
isClaim?: boolean
301+
}) => {
302+
return (
303+
<div className="relative">
304+
<div
305+
className={`flex flex-wrap items-center justify-center border-b border-th-bkg-3 bg-gradient-to-r from-th-bkg-1 ${
306+
isClaim ? 'via-orange-800' : 'via-th-bkg-3'
307+
} to-th-bkg-1 px-10 py-3`}
308+
>
309+
<p
310+
className={`mr-2 text-center ${
311+
isClaim ? 'text-white' : 'text-th-fgd-1'
312+
} lg:text-base`}
313+
>
314+
{text}{' '}
315+
<a href="https://discord.com/channels/791995070613159966/791995070613159971/1314637420490264668">
316+
Link
317+
</a>
318+
</p>
319+
</div>
320+
</div>
321+
)
322+
}

0 commit comments

Comments
 (0)