1
1
import React from "react"
2
- import styled from "@emotion/styled"
3
2
import Link from "./Link"
4
3
import ButtonLink from "./ButtonLink"
5
4
6
5
import Translation from "./Translation"
7
6
import { Flex , Heading , Icon , Text } from "@chakra-ui/react"
8
7
import { FaGithub } from "react-icons/fa"
9
8
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
-
27
9
export interface IProps {
28
10
editPath : string
29
11
}
@@ -39,7 +21,16 @@ const CallToContribute: React.FC<IProps> = ({ editPath }) => (
39
21
borderRadius = "base"
40
22
boxShadow = "inset 0 -2px 0 0 var(--eth-colors-primary400)"
41
23
>
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
+ >
43
34
░░░░░░░░░▄░░░░░░░░░░░░░░▄░░░░ ░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌░░░
44
35
░░░░░░░░▌▒▒█░░░░░░░░▄▀▒▒▒▐░░░ ░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐░░░
45
36
░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐░░░ ░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌░░░
@@ -50,7 +41,7 @@ const CallToContribute: React.FC<IProps> = ({ editPath }) => (
50
41
░▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒░▒░▒▒▄▒▒▐░░ ░░▀▄▒▒▒▒▒▒▒▒▒▒▒░▒░▒░▒▄▒▒▒▒▌░░
51
42
░░░░▀▄▒▒▒▒▒▒▒▒▒▒▄▄▄▀▒▒▒▒▄▀░░░ ░░░░░░▀▄▄▄▄▄▄▀▀▀▒▒▒▒▒▄▄▀░░░░░
52
43
░░░░░░░░░▒▒▒▒▒▒▒▒▒▒▀▀░░░░░░░░
53
- </ ImageColumn >
44
+ </ Flex >
54
45
< Flex
55
46
direction = "column"
56
47
flexGrow = { 1 }
0 commit comments