This repository was archived by the owner on May 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 21 files changed +353
-328
lines changed Expand file tree Collapse file tree 21 files changed +353
-328
lines changed Original file line number Diff line number Diff line change 20
20
gap : rem (1 );
21
21
.FooterContent {
22
22
font-family : ' Ubuntu' , sans-serif ;
23
+ font-size : rem (3.2 );
23
24
color : var (--ifm-color-white );
24
25
@media screen and (max-width : 992px ) {
25
26
font-size : rem (2 );
26
27
}
27
28
}
28
29
.FooterBodyContent {
29
- color : var (--ifm-color-secondary-darkest );
30
+ color : var (--ifm-color-white );
30
31
font-weight : 400 ;
31
32
@media screen and (max-width : 992px ) {
32
33
font-size : rem (1.5 );
43
44
border : 2px solid var (--ifm-color-secondary-darkest );
44
45
padding : rem (0.5 );
45
46
border-radius : rem (1 );
47
+ font-size : rem (1.4 );
46
48
font-weight : bold ;
47
49
}
48
50
}
Original file line number Diff line number Diff line change @@ -4,35 +4,35 @@ import styles from './Footer.module.scss';
4
4
5
5
const Footer = ( ) => {
6
6
return (
7
- < div className = { styles . FooterContainer } data-testid = 'footer-text' >
8
- < div className = { styles . FooterBody } >
9
- < Text type = 'subtitle-1' as = { 'h1' } bold className = { styles . FooterContent } >
10
- Get Connected
7
+ < footer className = { styles . FooterContainer } data-testid = 'footer-text' >
8
+ < section className = { styles . FooterBody } >
9
+ < Text type = 'subtitle-1' as = 'h2' align = 'center' className = { styles . FooterContent } >
10
+ Get connected
11
11
</ Text >
12
- < Text type = 'paragraph-1' align = 'center' as = { 'h2' } className = { styles . FooterBodyContent } >
12
+ < p className = { styles . FooterBodyContent } >
13
13
Discuss ideas and share solutions with developers worldwide.
14
- </ Text >
14
+ </ p >
15
15
< a
16
16
data-testid = 'community-link'
17
17
style = { { textDecoration : 'none' } }
18
18
href = 'https://binary.vanillacommunity.com/'
19
19
>
20
20
< button className = { styles . communityButton } > Join Our Community</ button >
21
21
</ a >
22
- </ div >
23
- < div className = { styles . FooterBody } >
24
- < Text type = 'subtitle-1' bold className = { styles . FooterContent } >
25
- { "We' re here to help" }
22
+ </ section >
23
+ < section className = { styles . FooterBody } >
24
+ < Text type = 'subtitle-1' as = 'h2' align = 'center' className = { styles . FooterContent } >
25
+ We' re here to help
26
26
</ Text >
27
27
< Text type = 'paragraph-1' align = 'center' className = { styles . FooterBodyContent } >
28
28
Email us at{ ' ' }
29
29
< a className = { styles . Email } href = { 'mailto:[email protected] ' } >
30
30
31
- </ a > { ' ' }
32
- if you have any questions.
31
+ </ a >
32
+ < p > if you have any questions.</ p >
33
33
</ Text >
34
- </ div >
35
- </ div >
34
+ </ section >
35
+ </ footer >
36
36
) ;
37
37
} ;
38
38
export default Footer ;
Original file line number Diff line number Diff line change 1
1
@use ' src/styles/utility' as * ;
2
2
.FeaturesContainer {
3
3
display : flex ;
4
- flex-direction : column ;
5
4
width : 100% ;
6
5
align-items : center ;
7
6
justify-content : center ;
7
+ flex-wrap : wrap ;
8
+ gap : rem (2 );
8
9
9
- .FeaturesDescription {
10
- display : flex ;
11
- flex-wrap : wrap ;
12
- justify-content : space-evenly ;
13
- width : 90% ;
14
- align-items : center ;
10
+ > img {
11
+ padding : 0 rem (2 );
12
+ }
15
13
16
- .ApiFeaturesImage {
17
- aspect-ratio : 4 / 2.5 ;
18
- background-image : url (/ img/api-featutes.png );
19
- background-repeat : no-repeat ;
20
- background-size : contain ;
21
- display : inline-block ;
22
- width : rem (60 );
23
- margin-top : rem (5 );
24
- }
14
+ .ApiFeaturesImage {
15
+ display : inline-block ;
16
+ width : rem (60 );
17
+ }
18
+
19
+ .FeatureText {
20
+ width : rem (48.6 );
21
+ padding : 0 rem (1 );
22
+ box-sizing : border-box ;
23
+ display : flex ;
24
+ flex-direction : column ;
25
+ gap : rem (2 );
25
26
26
- .FeatureText {
27
- width : rem (48.6 );
28
- padding : 0 rem (1 );
29
- box-sizing : border-box ;
27
+ header {
30
28
display : flex ;
31
29
flex-direction : column ;
32
30
gap : rem (2 );
33
- @media (min-width : 425px ) {
34
- margin-left : rem (4 );
35
- }
36
- .FeatureParagraph {
37
- font-weight : 500 ;
38
- line-height : rem (3 );
39
- }
40
- .FeatureList {
41
- margin-left : rem (-2 );
42
- font-weight : 500 ;
31
+ }
32
+
33
+ @media (min-width : 425px ) {
34
+ margin-left : rem (4 );
35
+ }
36
+ .FeatureParagraph {
37
+ font-weight : 500 ;
38
+ line-height : rem (3 );
39
+ }
40
+ .FeatureList {
41
+ margin-left : rem (-2 );
42
+ font-weight : 500 ;
43
43
44
- .FeatureOptions {
45
- align-items : center ;
46
- list-style-type : none ;
47
- display : flex ;
48
- flex-direction : row ;
49
- gap : rem (0.4 );
50
- margin : rem (1.6 ) 0 ;
44
+ .FeatureOptions {
45
+ align-items : center ;
46
+ list-style-type : none ;
47
+ display : flex ;
48
+ flex-direction : row ;
49
+ gap : rem (0.4 );
50
+ margin : rem (1.6 ) 0 ;
51
51
52
- .FeatureContent {
53
- margin-bottom : 0 ;
54
- margin-left : rem (1 );
55
- }
52
+ .FeatureContent {
53
+ margin-bottom : 0 ;
54
+ margin-left : rem (1 );
56
55
}
57
56
}
58
57
}
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import { Text } from '@deriv/ui';
3
3
import styles from './ApiFeatures.module.scss' ;
4
4
export const ApiFeatures = ( ) => {
5
5
return (
6
- < div className = { styles . FeaturesContainer } data-testid = 'api-features' >
7
- < div className = { styles . FeaturesDescription } >
8
- < div className = { styles . FeatureText } >
6
+ < article className = { styles . FeaturesContainer } data-testid = 'api-features' >
7
+ < section className = { styles . FeatureText } >
8
+ < header >
9
9
< Text type = 'heading-2' as = { 'h2' } bold aria-level = { 1 } >
10
10
Deriv API features
11
11
</ Text >
@@ -16,6 +16,8 @@ export const ApiFeatures = () => {
16
16
< Text type = 'paragraph-1' className = { styles . FeatureParagraph } role = { 'note' } >
17
17
{ "With our API, you'll be able to:" }
18
18
</ Text >
19
+ </ header >
20
+ < section >
19
21
< ul className = { styles . FeatureList } >
20
22
< li className = { styles . FeatureOptions } >
21
23
< img src = '/img/checklist-icon-grey.svg' > </ img >
@@ -42,9 +44,13 @@ export const ApiFeatures = () => {
42
44
< div className = { styles . FeatureContent } > { "View user's historical transactions" } </ div >
43
45
</ li >
44
46
</ ul >
45
- </ div >
46
- < div className = { styles . ApiFeaturesImage } data-testid = 'api-features-img' />
47
- </ div >
48
- </ div >
47
+ </ section >
48
+ </ section >
49
+ < img
50
+ src = '/img/api-featutes.png'
51
+ className = { styles . ApiFeaturesImage }
52
+ data-testid = 'api-features-img'
53
+ />
54
+ </ article >
49
55
) ;
50
56
} ;
Original file line number Diff line number Diff line change 12
12
width : 100% ;
13
13
flex-wrap : nowrap ;
14
14
margin-bottom : rem (6.4 );
15
+ gap : rem (3 );
15
16
display : flex ;
16
17
justify-content : space-evenly ;
18
+ padding : 0 rem (1 );
17
19
18
20
@media screen and (max-width : 992px ) {
19
21
margin-top : rem (3 );
22
+ }
23
+
24
+ @media screen and (max-width : 425px ) {
20
25
flex-direction : column ;
21
26
}
22
27
}
57
62
.InformationContainer {
58
63
display : flex ;
59
64
width : 100% ;
60
- justify-content : space-evenly ;
65
+ justify-content : center ;
61
66
align-items : center ;
62
- gap : rem (4 );
67
+ gap : rem (6 );
68
+ @media screen and (max-width : 992px ) {
69
+ > img {
70
+ width : 100% ;
71
+ }
72
+ }
63
73
& :first-child {
64
74
flex-direction : row-reverse ;
65
75
}
66
- div {
76
+ .InformationContent {
67
77
width : rem (46.8 );
78
+ > h1 {
79
+ margin-bottom : rem (0.8 );
80
+ }
81
+ > p {
82
+ line-height : rem (3.6 );
83
+ font-size : rem (2.4 );
84
+ }
68
85
}
69
86
@media screen and (max-width : 992px ) {
70
87
flex-direction : column ;
71
88
& :first-child {
72
89
flex-direction : column-reverse ;
73
90
}
74
- div {
91
+ .InformationContent {
75
92
width : 100% ;
76
93
}
77
94
}
You can’t perform that action at this time.
0 commit comments