Skip to content

Commit 7d2968f

Browse files
committed
whitepappers mobile view
1 parent e065414 commit 7d2968f

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

frontend/pages/whitepapers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { AWS_ASSETS_PATH } from "../src/core/constants";
66

77
const Papers = () => {
88
return (
9-
<Flex direction="column" px="7%" width="100%" alignItems="center">
10-
<Heading pb="60px" pt="142px">
9+
<Flex direction="column" px="7%" width="100%" alignItems="center" pb="40px">
10+
<Heading pb={["40px", "40px", "60px"]} pt={["122px", "122px", "142px"]}>
1111
Whitepapers
1212
</Heading>
1313
<WhitepaperCard

frontend/src/components/molecules/WhitepaperCard.js

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,28 @@ import { Flex, Image, Text } from "@chakra-ui/react";
33

44
const WhitepaperCard = ({ img, title, date = "", text, href, ...props }) => {
55
return (
6-
<Flex p="20px" bg="#353535" borderRadius="20px" {...props}>
6+
<Flex
7+
direction={["column", "column", "row"]}
8+
alignItems={["center", "center", "start"]}
9+
p="20px"
10+
bg="#353535"
11+
borderRadius="20px"
12+
{...props}
13+
>
714
<Image
815
src={img}
9-
w="200px"
10-
h="200px"
11-
borderRadius="20px"
16+
w={["150px", "150px", "200px"]}
17+
h={["150px", "150px", "200px"]}
18+
borderRadius={["10px", "10px", "20px"]}
1219
cursor="pointer"
20+
pb={["10px", "10px", "0px"]}
1321
onClick={() => {
1422
window.open(href);
1523
}}
1624
/>
1725
<Flex direction="column" ml="20px">
1826
<Text
19-
fontSize={["24px"]}
27+
fontSize={["18px", "18px", "24px"]}
2028
fontWeight="700"
2129
maxW="500px"
2230
lineHeight="120%"
@@ -25,19 +33,19 @@ const WhitepaperCard = ({ img, title, date = "", text, href, ...props }) => {
2533
{title}
2634
</Text>
2735
{date && (
28-
<Text fontSize={["16px"]} lineHeight="20px">
36+
<Text fontSize={["12px", "12px", "16px"]} lineHeight="20px">
2937
{date}
3038
</Text>
3139
)}
32-
<Text fontSize={["18px"]} my="5px" lineHeight="23px">
40+
<Text fontSize={["14px", "14px", "18px"]} my="5px" lineHeight="23px">
3341
{text}
3442
</Text>
3543
<Text
3644
href={href}
3745
maxW="fit-content"
3846
color="orange.1000"
3947
cursor="pointer"
40-
fontSize="18px"
48+
fontSize={["14px", "14px", "18px"]}
4149
fontWeight="700"
4250
_hover={{ color: "#F4532F" }}
4351
onClick={() => {

0 commit comments

Comments
 (0)