Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit 2e286b2

Browse files
refactor(app-team-landing): remove unused code, add breakpoints and styles for mobile
1 parent 38aaa2d commit 2e286b2

File tree

2 files changed

+69
-93
lines changed

2 files changed

+69
-93
lines changed
Lines changed: 48 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
// section - team-landing
22
section.team-landing {
33
font-family: 'Muli', sans-serif;
4-
// hero
4+
55
.hero {
66
background-position: top center;
77
background-size: cover;
88
height: 100vh;
99

10-
@include media-breakpoint-down(sm) {
11-
background-position: left top;
12-
}
13-
1410
.overlay {
1511
background-color: rgba(0, 0, 0, 0.5);
1612
position: absolute;
@@ -28,108 +24,90 @@ section.team-landing {
2824
font-size: 4rem;
2925
margin-bottom: 1rem;
3026
text-align: right;
27+
3128
@include media-breakpoint-down(lg) {
3229
font-size: 3rem;
3330
}
31+
3432
@include media-breakpoint-down(sm) {
3533
font-size: 2.2rem;
34+
text-align: center;
3635
}
3736
}
37+
3838
h4 {
3939
color: $orange;
4040
margin-bottom: 3rem;
4141
text-align: right;
42+
43+
@include media-breakpoint-down(sm) {
44+
text-align: center;
45+
}
4246
}
47+
4348
p {
4449
color: $white;
4550
font-size: 1.2rem;
4651
font-weight: 300;
4752
margin-bottom: 3rem;
4853
text-align: right;
54+
4955
@include media-breakpoint-down(lg) {
5056
font-size: 1rem;
5157
}
52-
}
53-
}
5458

55-
.text-img-container {
56-
margin-top: 6rem;
57-
margin-bottom: 6rem;
58-
h2 {
59-
text-align: center;
59+
@include media-breakpoint-down(sm) {
60+
text-align: center;
61+
}
6062
}
61-
p {
62-
padding: 2rem;
63+
64+
@include media-breakpoint-down(sm) {
65+
background-position: left top;
6366
}
6467
}
6568

66-
.text-img-container {
69+
70+
.bio {
6771
display: grid;
72+
grid-template-columns: 0.5fr 1fr;
73+
padding: 4rem;
74+
75+
.text {
76+
margin-left: 35px;
6877

69-
app-img {
70-
align-self: center;
71-
img {
72-
object-fit: cover;
78+
h2, h4 {
79+
color: $orange;
80+
text-align: left;
7381
}
74-
}
7582

76-
&.right-side {
77-
grid-template-columns: 0.5fr 1fr;
83+
p {
84+
text-align: left;
85+
padding: 0;
86+
margin-bottom: 1rem;
7887

79-
.text-img-container-text {
80-
margin-left: 35px;
81-
h2,
82-
h4 {
88+
&.check-link {
89+
font-size: 26px;
8390
color: $orange;
84-
text-align: left;
85-
}
86-
p {
87-
text-align: left;
88-
padding: 0;
89-
margin-bottom: 1rem;
90-
&.check-link {
91-
font-size: 26px;
92-
color: $orange;
93-
margin-bottom: 0;
94-
}
95-
}
96-
97-
@include media-breakpoint-down(sm) {
98-
text-align: center;
99-
100-
h2,
101-
h4,
102-
p {
103-
text-align: center;
104-
}
91+
margin-bottom: 0;
10592
}
10693
}
10794

10895
@include media-breakpoint-down(sm) {
109-
grid-template-columns: none;
110-
}
111-
}
112-
&.left-side {
113-
grid-template-columns: 1fr 0.5fr;
96+
margin-left: 0;
97+
text-align: center;
11498

115-
.text-img-container-text {
116-
margin-right: 10px;
117-
h2 {
118-
color: $orange;
119-
text-align: right;
120-
}
99+
h2,
100+
h4,
121101
p {
122-
text-align: right;
123-
padding: 0;
124-
margin-bottom: 1rem;
125-
&.check-link {
126-
font-size: 26px;
127-
color: $orange;
128-
margin-bottom: 0;
129-
}
102+
text-align: center;
130103
}
131104
}
132105
}
106+
107+
@include media-breakpoint-down(sm) {
108+
grid-template-columns: none;
109+
padding: 2rem;
110+
}
133111
}
134112

135113
.skill-chip {
@@ -148,10 +126,6 @@ section.team-landing {
148126
background: linear-gradient(-160deg, #f99a2a 0%, #f9902a 100%);
149127
height: 114px;
150128

151-
@include media-breakpoint-down(sm) {
152-
height: 140px;
153-
}
154-
155129
.cta-container {
156130
height: inherit;
157131
line-height: 2.5rem;
@@ -165,5 +139,9 @@ section.team-landing {
165139
margin-right: 2rem;
166140
}
167141
}
142+
143+
@include media-breakpoint-down(sm) {
144+
height: 140px;
145+
}
168146
}
169147
}

src/pages/app-team-landing/app-team-landing.tsx

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -461,29 +461,27 @@ export class AppTeamLanding {
461461
</div>
462462
</div>
463463
</header>,
464-
<div class="container">
465-
<section class="text-img-container right-side">
466-
<app-img
467-
class="img-fluid d-none d-md-inline"
468-
src={`/assets/team-landing-graphic-${
469-
this.data[this.match.params.member].team
470-
}-badge.png`}
471-
alt="Job Title Badge - Design, Development, Management"
472-
/>
473-
<div class="text-img-container-text">
474-
<h2>
475-
<app-translate key="about.landing.container.title1" />
476-
&nbsp;{this.data[this.match.params.member].firstname}&nbsp;
477-
<app-translate key="about.landing.container.title2" />
478-
</h2>
479-
<p>{this.data[this.match.params.member].bodyText}</p>
480-
<h4>
481-
<app-translate key="about.landing.container.skills" />
482-
</h4>
483-
{this.chips}
484-
</div>
485-
</section>
486-
</div>,
464+
<section class="bio">
465+
<app-img
466+
class="img-fluid d-none d-md-inline"
467+
src={`/assets/team-landing-graphic-${
468+
this.data[this.match.params.member].team
469+
}-badge.png`}
470+
alt="Job Title Badge - Design, Development, Management"
471+
/>
472+
<div class="text">
473+
<h2>
474+
<app-translate key="about.landing.container.title1" />
475+
&nbsp;{this.data[this.match.params.member].firstname}&nbsp;
476+
<app-translate key="about.landing.container.title2" />
477+
</h2>
478+
<p>{this.data[this.match.params.member].bodyText}</p>
479+
<h4>
480+
<app-translate key="about.landing.container.skills" />
481+
</h4>
482+
{this.chips}
483+
</div>
484+
</section>,
487485

488486
<aside class="cta text-white">
489487
<div class="cta-container d-flex flex-row justify-content-center">

0 commit comments

Comments
 (0)