Skip to content

Commit 2aed8c7

Browse files
committed
feat(web): add-highlights-in-home-page
1 parent 2110d6d commit 2aed8c7

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

web/src/components/ListCard/StatusBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const getStatusColor = (status: Status, theme: Theme): [string, string] => {
5252
case Status.Disputed:
5353
return [theme.secondaryPurple, theme.mediumPurple];
5454
case Status.Included:
55-
return [theme.successLight, theme.success];
55+
return [theme.success, theme.successLight];
5656
default:
5757
return [theme.primaryBlue, theme.mediumBlue];
5858
}

web/src/pages/Home/Highlights/index.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,39 @@
11
import React from "react";
22
import styled from "styled-components";
33
import Header from "./Header";
4+
import { lists } from "consts/index";
5+
import ListCard from "components/ListCard";
6+
import { Button } from "@kleros/ui-components-library";
7+
48
const Container = styled.div`
59
width: 100%;
610
display: flex;
711
flex-direction: column;
12+
justify-content: center;
13+
gap: 32px;
14+
`;
15+
16+
const ListsContainer = styled.div`
17+
display: flex;
18+
flex-wrap: wrap;
19+
align-items: center;
20+
gap: 24px;
21+
`;
22+
23+
const StyledButton = styled(Button)`
24+
margin: 0 auto;
825
`;
926

1027
const HighlightedLists: React.FC = () => {
1128
return (
1229
<Container>
1330
<Header />
31+
<ListsContainer>
32+
{lists.map((list, i) => (
33+
<ListCard {...list} />
34+
))}
35+
</ListsContainer>
36+
<StyledButton text="Show All" variant="secondary" />
1437
</Container>
1538
);
1639
};

0 commit comments

Comments
 (0)