Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Gather307/Gather
Browse files Browse the repository at this point in the history
  • Loading branch information
SilveerDusk committed May 23, 2024
2 parents 90ea186 + 92c365d commit 646cfc6
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 18 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/ItemGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type ItemGroupProps = {

const ItemGroup: React.FC<ItemGroupProps> = ({ category, items }) => {
return (
<Box p={4} borderWidth="1px" borderRadius="lg" width="full" mb={4}>
<Box p={4} borderWidth="1px" borderRadius="lg" width="full" mb={4} bg="white">
<Heading as="h2" size="md">
{category}
</Heading>
Expand Down
54 changes: 37 additions & 17 deletions frontend/src/pages/ItemsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
import React from "react";
import { Box, Button, Flex, Heading, Input, VStack } from "@chakra-ui/react";
import { ArrowForwardIcon } from "@chakra-ui/icons";
import {
Box,
Button,
Flex,
Heading,
Input,
InputGroup,
InputLeftElement,
VStack
} from "@chakra-ui/react";
import { ArrowForwardIcon, SearchIcon } from "@chakra-ui/icons";
import ItemGroup from "../components/ItemGroup";

// Define the types for items
Expand Down Expand Up @@ -35,26 +44,37 @@ const items: Items = {

const ItemsPage: React.FC = () => {
return (
<Box w="100vw" p={4}>
<Box w="100vw" p={4} bg="gray.100">
<Flex direction="column" minH="100vh" width="full">
<Box mb={4} width="full">
<Heading as="h1" size="lg">
Your Items
</Heading>
<Button
leftIcon={<ArrowForwardIcon />}
colorScheme="teal"
variant="solid"
mr={4}
>
Switch to Groups
</Button>
<Input
placeholder="Search for group"
width="300px"
mt={2}
isDisabled
/>
<Flex mt={2} alignItems="center">
<Button
leftIcon={<ArrowForwardIcon />}
colorScheme="teal"
variant="solid"
mr={4}
>
Switch to Groups
</Button>
<InputGroup width="300px">
<InputLeftElement
pointerEvents="none"
children={<SearchIcon color="gray.300" />}
/>
<Input
placeholder="Search for group"
isDisabled
_disabled={{
bg: "white",
color: "gray.500",
cursor: "not-allowed",
}}
/>
</InputGroup>
</Flex>
</Box>

<VStack spacing={4} flex="1" align="stretch" width="full">
Expand Down

0 comments on commit 646cfc6

Please sign in to comment.