Skip to content

Commit 8ad564b

Browse files
committed
Convert ImageColumn
1 parent 043fe94 commit 8ad564b

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

src/components/CallToContribute.tsx

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,11 @@
11
import React from "react"
2-
import styled from "@emotion/styled"
32
import Link from "./Link"
43
import ButtonLink from "./ButtonLink"
54

65
import Translation from "./Translation"
76
import { Flex, Heading, Icon, Text } from "@chakra-ui/react"
87
import { FaGithub } from "react-icons/fa"
98

10-
const Column = styled.div`
11-
flex: 1 1 50%;
12-
padding: 1rem;
13-
display: flex;
14-
flex-direction: column;
15-
color: ${(props) => props.theme.colors.text};
16-
@media (max-width: ${(props) => props.theme.breakpoints.l}) {
17-
text-align: center;
18-
}
19-
`
20-
21-
const ImageColumn = styled(Column)`
22-
@media (max-width: ${(props) => props.theme.breakpoints.l}) {
23-
display: none;
24-
}
25-
`
26-
279
export interface IProps {
2810
editPath: string
2911
}
@@ -39,7 +21,16 @@ const CallToContribute: React.FC<IProps> = ({ editPath }) => (
3921
borderRadius="base"
4022
boxShadow="inset 0 -2px 0 0 var(--eth-colors-primary400)"
4123
>
42-
<ImageColumn>
24+
<Flex
25+
direction="column"
26+
flexGrow={1}
27+
flexShrink={1}
28+
flexBasis="50%"
29+
p={4}
30+
color="text"
31+
textAlign={{ base: "center", lg: "left" }}
32+
display={{ base: "none", lg: "flex" }}
33+
>
4334
░░░░░░░░░▄░░░░░░░░░░░░░░▄░░░░ ░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌░░░
4435
░░░░░░░░▌▒▒█░░░░░░░░▄▀▒▒▒▐░░░ ░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐░░░
4536
░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐░░░ ░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌░░░
@@ -50,7 +41,7 @@ const CallToContribute: React.FC<IProps> = ({ editPath }) => (
5041
░▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒░▒░▒▒▄▒▒▐░░ ░░▀▄▒▒▒▒▒▒▒▒▒▒▒░▒░▒░▒▄▒▒▒▒▌░░
5142
░░░░▀▄▒▒▒▒▒▒▒▒▒▒▄▄▄▀▒▒▒▒▄▀░░░ ░░░░░░▀▄▄▄▄▄▄▀▀▀▒▒▒▒▒▄▄▀░░░░░
5243
░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▀▀░░░░░░░░
53-
</ImageColumn>
44+
</Flex>
5445
<Flex
5546
direction="column"
5647
flexGrow={1}

0 commit comments

Comments
 (0)