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.
Merge pull request vechain#4 from zayLatt25/home
Home page
- Loading branch information
Showing
7 changed files
with
123 additions
and
40 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,14 @@ | ||
.parallax { | ||
min-height: 70px; | ||
background-attachment: fixed; | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
} | ||
|
||
.scroll-container { | ||
height: 870px; | ||
background-color: #4e6b4c; | ||
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 |
---|---|---|
@@ -1,28 +1,102 @@ | ||
import React from "react"; | ||
import { Container, Flex } from "@chakra-ui/react"; | ||
import { | ||
Dropzone, | ||
InfoCard, | ||
Instructions, | ||
} from "../components"; | ||
import { Card, CardBody, Flex, Button, Image, Text } from "@chakra-ui/react"; | ||
import "./home.css"; | ||
|
||
export default function Home() { | ||
return ( | ||
<Flex flex={1}> | ||
<Container | ||
mt={{ base: 4, md: 10 }} | ||
maxW={"container.xl"} | ||
mb={{ base: 4, md: 10 }} | ||
display={"flex"} | ||
flex={1} | ||
alignItems={"center"} | ||
justifyContent={"flex-start"} | ||
flexDirection={"column"} | ||
return ( | ||
<div style={{ backgroundColor: "#c5dcc2" }}> | ||
<div style={{ position: "absolute", top: "10px", right: "10px" }}> | ||
<Button | ||
bg="#2a3d29" | ||
color="#c5dcc2" | ||
_hover={{ bg: "#c5dcc2", color: "#2a3d29" }} | ||
width="100px" | ||
margin="3" | ||
> | ||
Profile | ||
</Button> | ||
</div> | ||
<div className="parallax"></div> | ||
<Image src="/hill.png" /> | ||
|
||
<div className="scroll-container"> | ||
<Flex justifyContent="center" alignItems="center" height="100%" gap={8}> | ||
<div> | ||
<Text color="#efefef" fontSize="5xl"> | ||
REDUCE | ||
</Text> | ||
<Card | ||
bg="#efefef" | ||
minHeight="350" | ||
paddingTop="200" | ||
borderRadius="25" | ||
> | ||
<InfoCard /> | ||
<Instructions /> | ||
<Dropzone /> | ||
</Container> | ||
<Image | ||
src="/reduce.png" | ||
position="absolute" | ||
top="-80px" | ||
left="50%" | ||
transform="translateX(-50%)" | ||
width="300px" | ||
/> | ||
|
||
<CardBody> | ||
<Text fontSize="md"> | ||
View a summary of all your customers over the last month. | ||
</Text> | ||
|
||
<Flex justify="center" mt="4"> | ||
<Button | ||
bg="#2a3d29" | ||
color="#c5dcc2" | ||
_hover={{ bg: "#c5dcc2", color: "#2a3d29" }} | ||
width="200px" | ||
> | ||
Button | ||
</Button> | ||
</Flex> | ||
</CardBody> | ||
</Card> | ||
</div> | ||
|
||
<div> | ||
<Text color="#efefef" fontSize="5xl" textAlign="right"> | ||
OFFSET | ||
</Text> | ||
<Card | ||
bg="#efefef" | ||
minHeight="350" | ||
paddingTop="200" | ||
borderRadius="25" | ||
> | ||
<Image | ||
src="/offset.png" | ||
position="absolute" | ||
top="-90px" | ||
left="50%" | ||
transform="translateX(-70%)" | ||
width="300px" | ||
/> | ||
|
||
<CardBody> | ||
<Text fontSize="md"> | ||
View a summary of all your customers over the last month. | ||
</Text> | ||
|
||
<Flex justify="center" mt="4"> | ||
<Button | ||
bg="#2a3d29" | ||
color="#c5dcc2" | ||
_hover={{ bg: "#c5dcc2", color: "#2a3d29" }} | ||
width="200px" | ||
> | ||
Button | ||
</Button> | ||
</Flex> | ||
</CardBody> | ||
</Card> | ||
</div> | ||
</Flex> | ||
); | ||
} | ||
</div> | ||
</div> | ||
); | ||
} |