Skip to content

Commit

Permalink
feat: disclaimer component
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolfopietro97 committed Jun 14, 2024
1 parent d24fd89 commit 234ba5d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
10 changes: 4 additions & 6 deletions apps/frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
ChakraProvider,
Container,
Flex,
Link
Link,
} from "@chakra-ui/react";
import {
Dropzone,
Expand All @@ -19,6 +19,7 @@ import {
} from "./components";
import { lightTheme } from "./theme";
import { GoogleReCaptchaProvider } from "react-google-recaptcha-v3";
import { Disclaimer } from "./components/Disclaimer/Disclaimer.tsx";

// RECaptcha V3 site key (https://developers.google.com/recaptcha/docs/v3)
const VITE_RECAPTCHA_V3_SITE_KEY = import.meta.env
Expand Down Expand Up @@ -54,11 +55,8 @@ function App() {
</Container>
</Flex>
<Footer />
<Alert status='warning'>
<AlertIcon />
<AlertTitle>Disclaimer</AlertTitle>
<AlertDescription>The use case of this template is inspired by the <Link color='teal.500' href={"https://www.greencart.vet/"}>GreenCart Dapp</Link>. The code has been built from scratch and does not contain any references to the GreenCart codebase.</AlertDescription>
</Alert>
{/* DISCLAIMER */}
<Disclaimer />
{/* MODALS */}
<SubmissionModal />
</DAppKitProvider>
Expand Down
27 changes: 27 additions & 0 deletions apps/frontend/src/components/Disclaimer/Disclaimer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import {
Alert,
AlertDescription,
AlertIcon,
AlertTitle,
Container,
Link,
} from "@chakra-ui/react";

export const Disclaimer = () => {
return (
<Alert status="warning">
<Container maxW={"container.xl"} display={"flex"} flexDirection={"row"}>
<AlertIcon />
<AlertTitle fontSize={"sm"}>Disclaimer</AlertTitle>
<AlertDescription fontSize={"sm"}>
The use case of this template is inspired by the{" "}
<Link color="teal.500" href={"https://www.greencart.vet/"}>
GreenCart Dapp
</Link>
. The code has been built from scratch and does not contain any
references to the GreenCart codebase.
</AlertDescription>
</Container>
</Alert>
);
};
1 change: 1 addition & 0 deletions apps/frontend/src/components/Disclaimer/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./Disclaimer";

0 comments on commit 234ba5d

Please sign in to comment.