Skip to content

Commit

Permalink
editing icons
Browse files Browse the repository at this point in the history
  • Loading branch information
TalBenAvi committed May 2, 2024
1 parent 3b51503 commit 95b23ed
Show file tree
Hide file tree
Showing 7 changed files with 466 additions and 153 deletions.
47 changes: 0 additions & 47 deletions public/assets/internal_evaluation.svg

This file was deleted.

40 changes: 14 additions & 26 deletions workspaces/website/src/components/Card/DisplayCard.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import {
Box,
Stack,
BoxProps,
Text,
Circle,
Img,
useColorMode,
} from "@chakra-ui/react";
import { Box, Stack, BoxProps, Text, Circle } from "@chakra-ui/react";
import { Application } from "@ui/Icons/DisplayCardIcons/Application";
import { GrantDeliverables } from "@ui/Icons/DisplayCardIcons/GrantDeliverables";
import { InternalEvaluation } from "@ui/Icons/DisplayCardIcons/InternalEvaluation";
import { Onboarding } from "@ui/Icons/DisplayCardIcons/Onboarding";
import { Results } from "@ui/Icons/DisplayCardIcons/Results";
import { Heading } from "@ui/Typography/Heading";

type Props = {
Expand All @@ -21,16 +18,14 @@ type Props = {
} & BoxProps;

const images = {
Application: "/assets/application.svg",
"Internal Evaluation": "/assets/internal_evaluation.svg",
Results: "/assets/results.svg",
Onboarding: "/assets/onboarding.svg",
"Grant Deliverables": "/assets/grant_deliverables.svg",
Application: <Application />,
"Internal Evaluation": <InternalEvaluation />,
Results: <Results />,
Onboarding: <Onboarding />,
"Grant Deliverables": <GrantDeliverables />,
};

export const DisplayCard = (props: Props) => {
const { colorMode } = useColorMode();

return (
<Box as="li" maxW="5xl">
<Box
Expand All @@ -56,18 +51,11 @@ export const DisplayCard = (props: Props) => {
height="80px"
borderRadius="8px"
overflow="hidden"
color="#0C0C4F"
_dark={{ color: "white" }}
marginBottom={{ base: "16px", md: "0" }}
>
<Img
width="full"
height="full"
src={images[props?.title]}
title={props.title}
objectFit="contain"
style={{
filter: `invert(color:${colorMode === "light" ? 0 : 1})`,
}}
/>
{images[props?.title]}
</Box>
</Stack>
<Box flex="1">
Expand Down
Loading

0 comments on commit 95b23ed

Please sign in to comment.