Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add greencart disclaimer #12

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ Open the `Inspector` tab and perform the following transactions:

## Disclaimer ⚠️

This template serves as a foundational starting point and should be thoroughly reviewed and customized to suit your project’s specific requirements. Pay special attention to configurations, security settings, and environment variables to ensure a secure and efficient deployment.
This template serves as a foundational starting point and should be thoroughly reviewed and customized to suit your project’s specific requirements and unique use case. Pay special attention to configurations, security settings, and environment variables to ensure a secure and efficient deployment.
The use case of this template is inspired by the GreenCart Dapp ([greencart.vet](https://www.greencart.vet/)). The code has been built from scratch and does not contain any references to the GreenCart codebase.

---

Expand Down
4 changes: 3 additions & 1 deletion apps/frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
Instructions,
Navbar,
SubmissionModal,
Disclaimer,
} from "./components";
import { lightTheme } from "./theme";
import { GoogleReCaptchaProvider } from "react-google-recaptcha-v3";
Expand Down Expand Up @@ -45,7 +46,8 @@ function App() {
</Container>
</Flex>
<Footer />

{/* 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";
3 changes: 2 additions & 1 deletion apps/frontend/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export * from "./InfoCard";
export * from "./Instructions";
export * from "./Dropzone";
export * from "./Footer";
export * from "./SubmissionModal";
export * from "./SubmissionModal";
export * from "./Disclaimer";
Loading