File tree 2 files changed +142
-0
lines changed
src/shared/components/Contentful/ContentBlock
2 files changed +142
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import cardTheme from './themes/card.scss';
15
15
import TCO19Theme from './themes/TCO19.scss' ;
16
16
import zurichTheme from './themes/zurich.scss' ;
17
17
import generalTheme from './themes/general.scss' ;
18
+ import blobCard from './themes/blobCard.scss' ;
18
19
19
20
const THEMES = {
20
21
Default : defaultTheme ,
@@ -24,6 +25,7 @@ const THEMES = {
24
25
TCO19 : TCO19Theme ,
25
26
Zurich : zurichTheme ,
26
27
General : generalTheme ,
28
+ 'Blob Card' : blobCard ,
27
29
} ;
28
30
29
31
/* Loads content block background asset. */
Original file line number Diff line number Diff line change
1
+ @import " ~styles/mixins" ;
2
+
3
+ .contentWrapper {
4
+ background-color : #0ab88a ;
5
+ border-radius : 10px ;
6
+ box-shadow : 0 10px 22px 0 rgba (0 , 0 , 0 , 0.25 );
7
+ width : 413px ;
8
+ flex-direction : column ;
9
+ padding : 0 ;
10
+ }
11
+
12
+ .container {
13
+ display : flex ;
14
+ flex : 1 ;
15
+ justify-content : flex-end ;
16
+ margin : 5px ;
17
+ padding : 0 ;
18
+ }
19
+
20
+ .content {
21
+ padding : 17px 40px 30px 40px ;
22
+ color : $tc-white ;
23
+
24
+ h1 ,
25
+ h2 ,
26
+ h3 ,
27
+ h4 ,
28
+ h5 ,
29
+ h6 {
30
+ font-family : " Barlow" , Helvetica , Arial , sans-serif ;
31
+ color : $tc-white ;
32
+ }
33
+
34
+ h1 {
35
+ font-size : 80px ;
36
+ font-weight : 600 ;
37
+ line-height : 74px ;
38
+
39
+ @include xs-to-sm {
40
+ font-size : 42px ;
41
+ font-weight : 600 ;
42
+ line-height : 38px ;
43
+ }
44
+ }
45
+
46
+ h2 {
47
+ font-size : 60px ;
48
+ font-weight : 500 ;
49
+ line-height : 58px ;
50
+
51
+ @include xs-to-sm {
52
+ font-size : 36px ;
53
+ font-weight : 500 ;
54
+ }
55
+ }
56
+
57
+ h3 {
58
+ font-size : 48px ;
59
+ font-weight : 500 ;
60
+ line-height : 50px ;
61
+
62
+ @include xs-to-sm {
63
+ font-size : 31px ;
64
+ font-weight : 500 ;
65
+ line-height : 33px ;
66
+ }
67
+ }
68
+
69
+ h4 {
70
+ font-size : 34px ;
71
+ font-weight : 500 ;
72
+ line-height : 38px ;
73
+
74
+ @include xs-to-sm {
75
+ font-size : 25px ;
76
+ font-weight : 500 ;
77
+ line-height : 27px ;
78
+ }
79
+ }
80
+
81
+ h5 {
82
+ font-size : 24px ;
83
+ font-weight : 600 ;
84
+ line-height : 26px ;
85
+
86
+ @include xs-to-sm {
87
+ font-size : 21px ;
88
+ font-weight : 600 ;
89
+ line-height : 25px ;
90
+ }
91
+ }
92
+
93
+ h6 {
94
+ font-size : 20px ;
95
+ font-weight : 600 ;
96
+ line-height : 26px ;
97
+ letter-spacing : 0.3px ;
98
+
99
+ @include xs-to-sm {
100
+ font-size : 18px ;
101
+ font-weight : 600 ;
102
+ line-height : 22px ;
103
+ }
104
+ }
105
+
106
+ p {
107
+ font-family : " Roboto" , Helvetica , Arial , sans-serif ;
108
+ color : $tc-white ;
109
+ font-size : 16px ;
110
+ font-weight : 400 ;
111
+ line-height : 26px ;
112
+
113
+ @include xs-to-sm {
114
+ font-size : 20px ;
115
+ font-weight : 400 ;
116
+ line-height : 30px ;
117
+ }
118
+
119
+ strong {
120
+ font-weight : bold ;
121
+ }
122
+ }
123
+
124
+ button {
125
+ margin : 10px 5px 0 0 !important ;
126
+ }
127
+ }
128
+
129
+ .image {
130
+ flex : 1 ;
131
+ max-height : 225px ;
132
+ margin : 0 ;
133
+
134
+ img {
135
+ object-fit : cover ;
136
+ height : 100% ;
137
+ width : 100% ;
138
+ max-width : 413px ;
139
+ }
140
+ }
You can’t perform that action at this time.
0 commit comments