forked from vechain/x-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* form start * form * milestones --------- Co-authored-by: WillowMT <[email protected]>
- Loading branch information
Showing
5 changed files
with
188 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
|
||
.parallax { | ||
min-height: 70px; | ||
background-attachment: fixed; | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
} | ||
|
||
.scroll-container { | ||
height: 870px; | ||
background-color: #efefef; | ||
font-size: 36px; | ||
padding: 40px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
import React, { useState } from "react"; | ||
import { Box, Button, HStack, Text } from "@chakra-ui/react"; | ||
import { Dropzone } from "../components"; | ||
import { Link } from "react-router-dom"; | ||
import "./form.css"; | ||
|
||
export default function Form({ type }: { type: "reduce" | "offset" }) { | ||
const [category, setCategory] = useState("All"); | ||
|
||
// Define categories based on the type prop | ||
const categories = | ||
type === "reduce" | ||
? ["Transport", "Self care"] | ||
: ["Tree planting", "Volunteering"]; | ||
|
||
return ( | ||
<Box | ||
bg="#efefef" | ||
minHeight="100vh" | ||
position="relative" | ||
padding="5" | ||
color="#2a3d29" | ||
> | ||
<div style={{ position: "absolute", top: "10px", right: "10px" }}> | ||
<Link to="/" style={{ textDecoration: "none" }}> | ||
<Button | ||
bg="#2a3d29" | ||
color="#c5dcc2" | ||
_hover={{ bg: "#c5dcc2", color: "#2a3d29" }} | ||
width="200px" | ||
> | ||
Go back | ||
</Button> | ||
</Link> | ||
</div> | ||
<Text textAlign="center" fontSize="5xl" fontWeight="bold"> | ||
How to get your vet?{" "} | ||
</Text> | ||
|
||
{/* Category area */} | ||
<Text fontSize="2xl" fontWeight="bold"> | ||
{" "} | ||
Step 1{" "} | ||
</Text> | ||
<Text paddingTop="1"> Step 1asdkjndsfkjcnkjsd </Text> | ||
<HStack spacing={3} overflowX="auto"> | ||
{categories.map((categoryName) => ( | ||
<Button | ||
key={categoryName} | ||
px={4} | ||
borderRadius="full" | ||
variant={category === categoryName ? "solid" : "outline"} | ||
bg={category === categoryName ? "#4e6b4c" : "#c5dcc2"} | ||
color={category === categoryName ? "#c5dcc2" : "#2a3d29"} | ||
onClick={() => setCategory(categoryName)} | ||
> | ||
{categoryName} | ||
</Button> | ||
))} | ||
</HStack> | ||
|
||
{/* Dropzone area */} | ||
<Text fontSize="2xl" fontWeight="bold" paddingTop="2"> | ||
{" "} | ||
Step 2{" "} | ||
</Text> | ||
<Text> Step 1asdkjndsfkjcnkjsd </Text> | ||
<Dropzone /> | ||
|
||
{/* Submit area */} | ||
<Text fontSize="2xl" fontWeight="bold" paddingTop="2"> | ||
{" "} | ||
Step 3{" "} | ||
</Text> | ||
<Text> Step 1asdkjndsfkjcnkjsd </Text> | ||
|
||
<div style={{ position: "absolute", bottom: "10px", right: "10px" }}> | ||
<Button | ||
bg="#2a3d29" | ||
color="#c5dcc2" | ||
_hover={{ bg: "#c5dcc2", color: "#2a3d29" }} | ||
width="100px" | ||
marginRight="15" | ||
> | ||
Generate | ||
</Button> | ||
|
||
<Button | ||
bg="#2a3d29" | ||
color="#c5dcc2" | ||
_hover={{ bg: "#c5dcc2", color: "#2a3d29" }} | ||
width="100px" | ||
> | ||
Confirm | ||
</Button> | ||
</div> | ||
</Box> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { Grid, GridItem, Box, Text, Card } from "@chakra-ui/react"; | ||
|
||
export default function Milestones() { | ||
return ( | ||
<Box p={4} zIndex={1000} bg="#4e6b4c" minHeight="100vh"> | ||
{/* `toast` prop is not needed unless custom configuration is passed */} | ||
<Grid | ||
templateColumns={{ base: "1fr", md: "2fr 1fr 1fr" }} | ||
gap={4} | ||
minHeight="96vh" | ||
> | ||
{/* Left side of the page */} | ||
<Card> | ||
<Box className="left-section"> | ||
{/* Form component */} | ||
<Box className="task-form" mb={4}> | ||
{/* <Form type="task" fetchData={fetchTasks} /> */} | ||
</Box> | ||
</Box> | ||
</Card> | ||
|
||
{/* Center column */} | ||
<Card> | ||
<Box textAlign="center"> | ||
<Text fontSize="2xl" fontWeight="bold" mb={2}> | ||
Task Manager | ||
</Text> | ||
<Text fontSize="sm">Note your TO-DOs and keep in check!</Text> | ||
<Box mt={4}>{/* Badges */}hi</Box> | ||
</Box> | ||
</Card> | ||
|
||
{/* Right column */} | ||
<Card> | ||
{/* Add any additional content for the right column here */} | ||
</Card> | ||
</Grid> | ||
</Box> | ||
); | ||
} |