Skip to content

Commit 3ca2cec

Browse files
committed
Whitepappers mobile
1 parent 4b2515c commit 3ca2cec

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

frontend/src/components/molecules/WhitepaperCard.js

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,51 +9,52 @@ const WhitepaperCard = ({ img, title, date = "", text, href, ...props }) => {
99
p="20px"
1010
bg="#353535"
1111
borderRadius="20px"
12+
gap="20px"
1213
{...props}
1314
>
1415
<Image
1516
src={img}
16-
w={["150px", "150px", "200px"]}
17-
h={["150px", "150px", "200px"]}
17+
w={["290px", "290px", "200px"]}
18+
h={["290px", "290px", "200px"]}
1819
borderRadius={["10px", "10px", "20px"]}
1920
cursor="pointer"
20-
pb={["10px", "10px", "0px"]}
2121
onClick={() => {
2222
window.open(href);
2323
}}
2424
/>
25-
<Flex direction="column" ml="20px">
25+
<Flex direction="column" gap="20px">
2626
<Text
27-
fontSize={["18px", "18px", "24px"]}
27+
fontSize={["24px", "24px", "24px"]}
2828
fontWeight="700"
2929
maxW="500px"
3030
lineHeight="120%"
31-
mb="10px"
3231
>
3332
{title}
3433
</Text>
35-
{date && (
36-
<Text fontSize={["12px", "12px", "16px"]} lineHeight="20px">
37-
{date}
34+
<Flex direction="column" gap={["5px", "5px", "10px"]}>
35+
{date && (
36+
<Text fontSize={["14px", "14px", "16px"]} lineHeight="20px">
37+
{date}
38+
</Text>
39+
)}
40+
<Text fontSize={["16px", "16px", "18px"]} lineHeight="23px">
41+
{text}
3842
</Text>
39-
)}
40-
<Text fontSize={["14px", "14px", "18px"]} my="5px" lineHeight="23px">
41-
{text}
42-
</Text>
43-
<Text
44-
href={href}
45-
maxW="fit-content"
46-
color="orange.1000"
47-
cursor="pointer"
48-
fontSize={["14px", "14px", "18px"]}
49-
fontWeight="700"
50-
_hover={{ color: "#F4532F" }}
51-
onClick={() => {
52-
window.open(href);
53-
}}
54-
>
55-
Read more
56-
</Text>
43+
<Text
44+
href={href}
45+
maxW="fit-content"
46+
color="orange.1000"
47+
cursor="pointer"
48+
fontSize={["16px", "16px", "18px"]}
49+
fontWeight="700"
50+
_hover={{ color: "#F4532F" }}
51+
onClick={() => {
52+
window.open(href);
53+
}}
54+
>
55+
Read more
56+
</Text>
57+
</Flex>
5758
</Flex>
5859
</Flex>
5960
);

0 commit comments

Comments
 (0)