Skip to content

Commit acc0911

Browse files
committed
Large card theme for contentBlocks
1 parent bb7c629 commit acc0911

File tree

2 files changed

+97
-0
lines changed

2 files changed

+97
-0
lines changed

src/shared/components/Contentful/ContentBlock/index.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import zurichTheme from './themes/zurich.scss';
1717
import generalTheme from './themes/general.scss';
1818
import blobCard from './themes/blobCard.scss';
1919
import TCO20Theme from './themes/TCO20.scss';
20+
import largeCard from './themes/largeCard.scss';
2021

2122
const THEMES = {
2223
Default: defaultTheme,
@@ -28,6 +29,7 @@ const THEMES = {
2829
General: generalTheme,
2930
'Blob Card': blobCard,
3031
TCO20: TCO20Theme,
32+
'Large Card': largeCard,
3133
};
3234

3335
/* Loads content block background asset. */
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
@import "~styles/mixins";
2+
@import "./TCO19_thypo";
3+
4+
.contentWrapper {
5+
background-color: #555;
6+
border-radius: 10px;
7+
width: 100%;
8+
padding: 0;
9+
}
10+
11+
.container {
12+
display: flex;
13+
flex: 1;
14+
justify-content: flex-end;
15+
margin: 5px;
16+
padding: 0;
17+
18+
@include xs-to-sm {
19+
margin: 0 15px;
20+
}
21+
}
22+
23+
.content {
24+
padding: 30px 40px 30px 40px;
25+
color: $tc-white;
26+
27+
@include xs-to-sm {
28+
padding: 20px;
29+
}
30+
31+
h1,
32+
h2,
33+
h3,
34+
h4,
35+
h5,
36+
h6 {
37+
font-family: "Barlow", Helvetica, Arial, sans-serif;
38+
color: $tc-white;
39+
text-transform: uppercase;
40+
margin-bottom: 20px;
41+
}
42+
43+
@include TCO19-default-headers;
44+
45+
p {
46+
font-family: "Roboto", Helvetica, Arial, sans-serif;
47+
color: $tc-white;
48+
font-size: 16px;
49+
font-weight: 400;
50+
line-height: 26px;
51+
52+
@include xs-to-sm {
53+
font-size: 20px;
54+
font-weight: 400;
55+
line-height: 30px;
56+
}
57+
58+
strong {
59+
font-weight: bold;
60+
}
61+
}
62+
63+
ul {
64+
color: white;
65+
66+
li p {
67+
margin: 0;
68+
}
69+
}
70+
71+
button {
72+
margin: 40px 5px 0 0 !important;
73+
74+
@include xs-to-sm {
75+
margin-top: 30px !important;
76+
}
77+
}
78+
}
79+
80+
.image {
81+
flex: 1;
82+
margin: 0;
83+
84+
img {
85+
height: 100%;
86+
width: 100%;
87+
border-top-right-radius: 10px;
88+
border-bottom-right-radius: 10px;
89+
90+
@include xs-to-sm {
91+
border-top-left-radius: 10px;
92+
border-bottom-right-radius: 0;
93+
}
94+
}
95+
}

0 commit comments

Comments
 (0)