Skip to content

Commit 16c1b39

Browse files
committed
Update of Veterans community - Step #2
Home page, mobile - done
1 parent d4beed3 commit 16c1b39

File tree

4 files changed

+97
-11
lines changed

4 files changed

+97
-11
lines changed

src/shared/components/tc-communities/communities/veterans/Home/index.jsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,13 @@ export default function Home({ baseUrl }) {
9090
</div>
9191

9292
<div styleName="style.quoteBlock">
93-
<img
94-
alt="Qoute avatar"
95-
src={qouteAvatar}
96-
styleName="style.qouteAvatar"
97-
/>
93+
<div styleName="style.qouteAvatar">
94+
<img alt="Qoute avatar" src={qouteAvatar} />
95+
<div styleName="style.qouteNote">
96+
<strong>Jarah Meador</strong> Innovation Crowdsourcing Lead at the
97+
VA
98+
</div>
99+
</div>
98100
<div>
99101
<div styleName="style.qouteText">
100102
<span styleName="style.qouteCommas style.left">&ldquo;</span>
@@ -117,7 +119,8 @@ export default function Home({ baseUrl }) {
117119
<div>
118120
<h1>Learn & Explore</h1>
119121
<p>
120-
Grow your skills and get Topcoder-certified &mdash; all for free
122+
Grow your skills and get Topcoder-certified&nbsp;&mdash; all for
123+
free
121124
</p>
122125
<Button to={`${baseUrl}/learn`}>Learn More</Button>
123126
</div>

src/shared/components/tc-communities/communities/veterans/Home/style.scss

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
justify-content: center;
88
margin: 0 2px;
99
min-height: 281px;
10+
padding: 40px;
1011
text-align: center;
1112

1213
h1 {
@@ -21,6 +22,12 @@
2122
color: $white;
2223
margin-bottom: 40px;
2324
}
25+
26+
@include xxs-to-xs {
27+
flex: none;
28+
margin: 5px 0;
29+
width: 100%;
30+
}
2431
}
2532

2633
.card-01 {
@@ -33,8 +40,10 @@
3340

3441
.cardsBlock {
3542
display: flex;
43+
flex-wrap: wrap;
3644
margin: 0 auto;
3745
max-width: $screen-lg;
46+
padding: 0 15px;
3847
}
3948

4049
.header {
@@ -44,6 +53,7 @@
4453
flex-direction: column;
4554
height: 500px;
4655
justify-content: center;
56+
padding: 40px 24px 16px;
4757
text-align: center;
4858
width: 100%;
4959

@@ -60,11 +70,16 @@
6070
margin: 0 auto;
6171
max-width: 720px;
6272
}
73+
74+
@include xxs-to-xs {
75+
height: auto;
76+
}
6377
}
6478

6579
.imageTextBlock {
6680
margin: 0 auto;
6781
max-width: $screen-lg;
82+
padding: 0 15px;
6883
}
6984

7085
.joinButtonInHeader {
@@ -77,20 +92,53 @@
7792
color: $black;
7893
margin: 100px auto;
7994
max-width: 890px;
80-
padding: 0 24px;
95+
padding: 0 40px;
8196
text-align: center;
97+
98+
@include xxs-to-xs {
99+
margin: 50px auto;
100+
}
82101
}
83102

84103
.qouteAvatar {
85-
height: 150px;
86-
margin-right: 40px;
87-
width: 150px;
104+
display: flex;
105+
106+
img {
107+
height: 150px;
108+
margin-right: 40px;
109+
width: 150px;
110+
111+
@include xxs-to-xs {
112+
height: 50px;
113+
margin-right: 15px;
114+
width: 50px;
115+
}
116+
}
117+
118+
.qouteNote {
119+
display: none;
120+
121+
strong {
122+
display: block;
123+
}
124+
125+
@include xxs-to-xs {
126+
display: block;
127+
}
128+
}
88129
}
89130

90131
.quoteBlock {
91132
display: flex;
92133
margin: 200px auto;
93134
max-width: $screen-lg;
135+
padding: 0 40px;
136+
137+
@include xxs-to-xs {
138+
flex-direction: column-reverse;
139+
margin: 50px auto;
140+
padding: 0 25px;
141+
}
94142
}
95143

96144
.qouteCommas {
@@ -117,6 +165,10 @@
117165
strong {
118166
font-weight: bold;
119167
}
168+
169+
@include xxs-to-xs {
170+
display: none;
171+
}
120172
}
121173

122174
.qouteText {

src/shared/components/tc-communities/communities/veterans/themes/image-text.scss

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@
3131
h1 {
3232
@include h2;
3333

34-
color: white;
34+
color: $white;
35+
36+
@include xxs-to-xs {
37+
@include h3;
38+
39+
color: $white;
40+
}
3541
}
3642

3743
p {
@@ -45,8 +51,17 @@
4551
margin-bottom: 0;
4652
}
4753
}
54+
55+
@include xxs-to-xs {
56+
padding: 25px 30px;
57+
width: 100%;
58+
}
4859
}
4960

5061
.image {
5162
width: 49.1%;
63+
64+
@include xxs-to-xs {
65+
width: 100%;
66+
}
5267
}

src/shared/components/tc-communities/communities/veterans/themes/mixins.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,38 @@ $white: white;
1515
font: 300 42px/1.19 Roboto;
1616
margin-bottom: 10px;
1717
text-transform: uppercase;
18+
19+
@include xxs-to-xs {
20+
font: 300 36px/1.25 Roboto;
21+
}
1822
}
1923

2024
@mixin h2 {
2125
color: $black;
2226
font: 300 36px/1.25 Roboto;
2327
margin-bottom: 10px;
28+
29+
@include xxs-to-xs {
30+
font: 300 28px/1.25 Roboto;
31+
}
2432
}
2533

2634
@mixin h3 {
2735
color: $black;
2836
font: 300 28px/1.25 Roboto;
37+
38+
@include xxs-to-xs {
39+
font: 300 20px/1.5 Roboto;
40+
}
2941
}
3042

3143
@mixin large-text {
3244
color: $black;
3345
font: 20px/1.25 Roboto;
46+
47+
@include xxs-to-xs {
48+
font: 15px/1.67 Roboto;
49+
}
3450
}
3551

3652
@mixin regular-text {

0 commit comments

Comments
 (0)