Skip to content

Commit

Permalink
style homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
Agilulfo1820 committed Jan 25, 2025
1 parent e9f3823 commit 0b8fbe9
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 32 deletions.
18 changes: 5 additions & 13 deletions apps/frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
import { Box, Container, VStack } from "@chakra-ui/react";
import { Container, VStack } from "@chakra-ui/react";
import { Home } from "./pages/Home";
import { Navbar } from "./components/Navbar";
import { Footer } from "./components/Footer";

function App() {
return (
<Box h="full" bgColor="#f7f7f7">
<VStack h="100vh" align="stretch" gap="0">
<Container maxW="container.lg" h="full">
<VStack align="stretch" flex="1" overflowY={"auto"} py={4}>
<Navbar />
<VStack align="stretch" flex="1" overflowY={"auto"} py={4}>
<Container maxW="container.lg" h="full">
<VStack align="stretch">
<Home />
<Footer />
</VStack>
</Container>
</VStack>
<Home />
</VStack>
</Box>
</Container>
);
}

Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/components/SupportedProject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const SupportedProject = () => {
];

return (
<Card justifyContent={"center"} alignItems={"center"}>
<Card justifyContent={"center"} alignItems={"center"} variant={"outline"}>
<CardHeader>
<Heading size={"md"}>Supported by</Heading>
</CardHeader>
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const Home = () => {
<VStack align="stretch" gap={4}>
<AbstractedAccounts />

<Card>
<Card variant={"outline"}>
<CardHeader>
<Heading size={"sm"}>Stats</Heading>
</CardHeader>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const AbstractedAccounts = () => {
);

return (
<Card>
<Card variant={"outline"}>
<CardHeader>
<Heading size={"sm"}>Your smart accounts</Heading>
<Text fontSize="sm" mt={2}>
Expand Down
31 changes: 15 additions & 16 deletions apps/frontend/src/pages/Home/components/Readme/Readme.tsx
Original file line number Diff line number Diff line change
@@ -1,43 +1,32 @@
import {
Image,
Text,
VStack,
List,
ListItem,
Card,
CardBody,
Heading,
HStack,
useMediaQuery,
Link,
Icon,
Divider,
} from "@chakra-ui/react";
import logo from "../../../../assets/privy-aa-fee.png";
import { FaExternalLinkAlt } from "react-icons/fa";

export const Readme = () => {
const [isDesktop] = useMediaQuery("(min-width: 800px)");
return (
<Card w={"full"}>
<Card w={"full"} variant={"outline"}>
<CardBody>
<VStack align="stretch" gap={4} px={isDesktop ? 20 : 4} spacing={4}>
<VStack align="center" spacing={4}>
<Heading size={"lg"} mt={4}>
Readme
Tech
</Heading>
<Image
mt={8}
src={logo}
alt="logo"
w={"full"}
// h="400px"
rounded="full"
/>
{/* <Text mt={4}>Account Abstraction for the vechain ecosystem.</Text> */}
</VStack>

<HStack justify="space-between">
{/* <HStack justify="space-between">
<div
style={{
position: "relative",
Expand All @@ -63,9 +52,8 @@ export const Readme = () => {
}}
></iframe>
</div>
</HStack>
</HStack> */}

<Heading size={"md"}>Tech</Heading>
<Text>There are 2 contracts:</Text>

<List spacing={3} styleType="disc">
Expand Down Expand Up @@ -116,6 +104,17 @@ export const Readme = () => {
</Link>{" "}
repository.
</Text>
<Text>
Implement the Smart Account in your app with{" "}
<Link
fontWeight={"bold"}
isExternal
href="https://github.com/vechain/vechain-kit"
>
VeChain Kit
<Icon as={FaExternalLinkAlt} />
</Link>
</Text>
</VStack>
</CardBody>
</Card>
Expand Down

0 comments on commit 0b8fbe9

Please sign in to comment.