Skip to content

Commit

Permalink
Notification bar
Browse files Browse the repository at this point in the history
  • Loading branch information
claudioantonio committed Jun 2, 2024
1 parent b7b48b2 commit a89446f
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
18 changes: 16 additions & 2 deletions frontend/src/app/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ import {
ActionIcon,
Divider,
Tooltip,
Stack,
} from "@mantine/core";
import { FC } from "react";
import { RiMoneyDollarCircleLine } from "react-icons/ri";
import { HasConnectedAccount } from "../components/hasConnectedAccount";
import { withTimeout } from "viem/_types/utils/promise/withTimeout";
import { colorResolver } from "@mantine/core/lib/core/Box/style-props/resolvers/color-resolver/color-resolver";

export default function ConnectButton() {
return <w3m-button />;
Expand All @@ -32,7 +35,17 @@ const VoucherNotification: FC = () => {

export const Header: FC = () => {
return (
<Group h="100%" px={20}>
<Stack
align="stretch"
justify="flex-start"
gap="xs"
>
<Group bg="gray">
<Center w="100%">
<Anchor href="/notification" underline="never">We are in Alpha stage, read more.</Anchor>
</Center>
</Group>
<Group h="100%" px={20}>
<Center>
<Anchor href="/" underline="never">
<Title>🪲 Bug Buster</Title>
Expand All @@ -45,6 +58,7 @@ export const Header: FC = () => {
<Divider orientation="vertical" />
<ConnectButton />
</Group>
</Group>
</Group>
</Stack>
);
};
33 changes: 33 additions & 0 deletions frontend/src/app/notification/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import { Anchor, Center,Group,Stack,Text, Title } from "@mantine/core"
import { FC } from "react"

const WordsOfCaution: FC = () => {
return (
<Group justify="center">
<Stack align="center" w="60%">
<Title mt="lg">🚨Words of caution to our early user adopters🚨</Title>
<Text>
Bug Buster is in alpha stage and this means that its development is heavily
active thus changes (new features, improvements and fixes) can come anytime.
</Text>
<Text>
In regards to security, althought Bug Buster is built on top of Cartesi Rollups SDK
and its development has been done with care, we cannot guarantee that the platform
is free of bugs or vulnerabilities at this stage.
</Text>
<Text>
To avoid any potential loss of funds, we recommend that you use the platform with scaution, and avoid using it with large amounts of funds.
</Text>
<Text>
Finally, this is an exciting phase of development and your feedback really matters!
Let’s build together a innovative, safer and user-friendly open source bug bounty platform for the web3 industry? 🌟
</Text>
<Text>
Feel free to explore, ask questions, and provide feedback on our <Anchor href="https://discord.com/channels/600597137524391947/1166042819782258788" underline="never">Discord channel</Anchor> or mention our <Anchor href="https://x.com/BugBusterApp" underline="never">X account</Anchor>.
</Text>
</Stack>
</Group>
)
}

export default WordsOfCaution;

0 comments on commit a89446f

Please sign in to comment.