diff --git a/packages/nextjs/app/layout.tsx b/packages/nextjs/app/layout.tsx index be1234b..3e639ab 100644 --- a/packages/nextjs/app/layout.tsx +++ b/packages/nextjs/app/layout.tsx @@ -5,8 +5,10 @@ import "~~/styles/globals.css"; import { getMetadata } from "~~/utils/scaffold-eth/getMetadata"; export const metadata = getMetadata({ - title: "Scaffold-ETH 2 App", - description: "Built with 🏗 Scaffold-ETH 2", + // title: "Scaffold-ETH 2 App", + // description: "Built with 🏗 Scaffold-ETH 2", + title: "Agro-Insurance", + description: "Built on Scaffold-ETH 2", }); const ScaffoldEthApp = ({ children }: { children: React.ReactNode }) => { diff --git a/packages/nextjs/app/page.tsx b/packages/nextjs/app/page.tsx index b91c22f..9aa82d7 100644 --- a/packages/nextjs/app/page.tsx +++ b/packages/nextjs/app/page.tsx @@ -1,66 +1,44 @@ "use client"; -import Link from "next/link"; +import Image from "next/image"; import type { NextPage } from "next"; -import { useAccount } from "wagmi"; -import { BugAntIcon, MagnifyingGlassIcon } from "@heroicons/react/24/outline"; -import { Address } from "~~/components/scaffold-eth"; const Home: NextPage = () => { - const { address: connectedAddress } = useAccount(); - return ( <>

Welcome to - Scaffold-ETH 2 + Agro-Insurance

-
-

Connected Address:

-
+
+ farm
-

- Get started by editing{" "} - - packages/nextjs/app/page.tsx - -

-

- Edit your smart contract{" "} - - YourContract.sol - {" "} - in{" "} - - packages/hardhat/contracts - -

-
- -
-
-
- -

- Tinker with your smart contract using the{" "} - - Debug Contracts - {" "} - tab. -

-
-
- -

- Explore your local transactions with the{" "} - - Block Explorer - {" "} - tab. -

-
+ {/*
*/} +
+

+ Agro-Insurance is an app where you can insure your soyabeans against the wether + conditions. During the campaign of soyabeans it is expected to rain between 500 and 800 mm + of water. If this condition is not fulfilled, you can collect 10x the fee you paid. +

+

+ The steps are: + 🔅 Select the region where you produce your soyabeans +
+ 🔅 Pay the Fee +
+ 🔅 When the campaign for your region ends, and if the rain was bad you can collect the insurance. +
+

+

+ Important note: + 🔅 You can see the mm of rain fallen in the contract's owner section. +
+ 🔅 To avoid wait the dates and get bored :P, there is a "testing" function (called + setCurrentDate) which you can use to change the date and play accordingly.
+ 🔅 You have to pass the date in unix format and this is only for testing purposes. +

diff --git a/packages/nextjs/components/Header.tsx b/packages/nextjs/components/Header.tsx index cf7848f..c488c72 100644 --- a/packages/nextjs/components/Header.tsx +++ b/packages/nextjs/components/Header.tsx @@ -95,11 +95,11 @@ export const Header = () => {
- SE2 logo + SE2 logo
- Scaffold-ETH - Ethereum dev stack + Agro-Insurance + Built on Scaffold-ETH