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

Commit 44753fb

Browse files
style(about-page): updates to responsive for screen sizes
1 parent fcabebb commit 44753fb

File tree

3 files changed

+119
-12
lines changed

3 files changed

+119
-12
lines changed

src/assets/i18n/en.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ export const translations = {
5656

5757
about: {
5858
header: {
59-
title: 'We Are Passionate About Technology & Design',
59+
title: 'We Are Passionate About Technology and Design',
60+
titleSmall: 'We Are Passionate About Technology & Design',
6061
text: "We believe that your success is our success. We're here to challenge your assumptions and help you discover your web or mobile applications full potential.",
6162
action: 'LEARN MORE',
6263
},
6364
mission: {
65+
title: 'Our Mission',
6466
statement: 'Our mission is to forge a bond between people and technology through digital experiences.',
6567
},
6668
values: {

src/pages/app-about/app-about.scss

Lines changed: 110 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,50 @@
11
.about {
22
font-family: 'Muli', sans-serif;
3+
height: 100%;
34
overflow-x: hidden;
4-
5+
.container {
6+
@include media-breakpoint-down(sm) {
7+
padding: 0 2rem;
8+
}
9+
padding: 0;
10+
}
511
.hero {
6-
@include media-breakpoint-down(md) {
12+
@include media-breakpoint-down(lg) {
713
background-position: right bottom;
814
}
15+
@include media-breakpoint-down(md) {
16+
background-size: 80% 80%;
17+
width: calc(100% + 4rem);
18+
}
19+
@include media-breakpoint-down(sm) {
20+
background-size: auto;
21+
width: calc(100% + 2rem);
22+
}
923
background: url('/assets/svg/about-graphic-header.svg') right top no-repeat;
24+
background-size: auto;
25+
height: 100%;
1026

1127
.row {
1228
@include media-breakpoint-down(md) {
13-
height: 780px;
29+
padding: 0 0 50px;
30+
}
31+
@include media-breakpoint-down(sm) {
32+
padding: 0 0 150px;
1433
}
1534
height: 700px;
1635

1736
p {
37+
@include media-breakpoint-down(md) {
38+
width: 320px;
39+
}
40+
@include media-breakpoint-down(sm) {
41+
letter-spacing: 0.5px;
42+
line-height: 32px;
43+
margin: 0 0 1rem;
44+
text-align: left;
45+
width: 263px;
46+
}
47+
1848
color: $gray-brown;
1949
font-size: 1rem;
2050
font-weight: 400;
@@ -25,24 +55,58 @@
2555
}
2656

2757
h1 {
58+
@include media-breakpoint-down(md) {
59+
font-size: 2.625rem;
60+
letter-spacing: 2.1px;
61+
line-height: 47px;
62+
width: 421px;
63+
}
64+
@include media-breakpoint-down(sm) {
65+
font-size: 1.75rem;
66+
letter-spacing: 1.05px;
67+
line-height: 34px;
68+
margin: 0 0 1rem;
69+
width: 278px;
70+
}
71+
2872
font-size: 3rem;
2973
font-weight: 600;
3074
letter-spacing: 1.6px;
3175
line-height: 58px;
3276
margin: 0 0 2rem;
33-
width: 632px;
77+
max-width: 632px;
3478
}
3579

36-
.text-container {
80+
button {
3781
@include media-breakpoint-down(md) {
38-
margin-bottom: 10rem;
82+
display: none;
83+
}
84+
}
85+
86+
.text-container {
87+
@include media-breakpoint-down(sm) {
88+
margin-bottom: 2rem;
89+
}
90+
}
91+
92+
.title {
93+
@include media-breakpoint-down(sm) {
94+
display: none;
3995
}
4096
}
97+
98+
.title-small {
99+
@include media-breakpoint-down(sm) {
100+
display: block;
101+
}
102+
display: none;
103+
}
41104
}
42105
}
43106

44107
.team-photo {
45108
@include media-breakpoint-down(sm) {
109+
margin: 0;
46110
min-height: 240px;
47111
}
48112
background-image: url('/assets/about-photo-team.jpg');
@@ -69,17 +133,30 @@
69133
}
70134
background: linear-gradient(-160deg, #f99a2a 0%, #f9902a 100%);
71135
display: none;
72-
height: 100px;
136+
height: 100%;
137+
138+
h1 {
139+
font-size: 1rem;
140+
font-weight: 700;
141+
letter-spacing: 1.02px;
142+
line-height: 19px;
143+
margin: 1rem 0;
144+
}
73145

74146
p {
75-
line-height: 24px;
76-
margin: 0;
147+
font-size: 0.8125rem;
148+
font-weight: 400;
149+
line-height: 22px;
150+
margin: 0 0 2rem;
77151
}
78152
}
79153

80154
.values,
81155
.members {
82156
padding: 3rem 0;
157+
.container {
158+
padding: 0 0.5rem;
159+
}
83160

84161
h2 {
85162
font-size: 2.625rem;
@@ -91,6 +168,12 @@
91168
}
92169

93170
p {
171+
@include media-breakpoint-down(sm) {
172+
font-size: 1rem;
173+
margin: 0 auto;
174+
text-align: center;
175+
width: 85%;
176+
}
94177
color: $gray-dark;
95178
font-size: 1.125rem;
96179
font-weight: 400;
@@ -122,6 +205,24 @@
122205
}
123206
}
124207

208+
.values {
209+
h2 {
210+
@include media-breakpoint-down(sm) {
211+
font-size: 1.5rem;
212+
margin: 0 0 1rem;
213+
}
214+
}
215+
}
216+
217+
.members {
218+
h2 {
219+
@include media-breakpoint-down(sm) {
220+
font-size: 2rem;
221+
margin: 0;
222+
}
223+
}
224+
}
225+
125226
.value-text {
126227
color: $gray-dark;
127228
font-size: 1.5rem;

src/pages/app-about/app-about.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@ export class AppAbout {
214214
<div class="row align-items-center">
215215
<div class="col-md-8 col-sm-10 text-container">
216216
<h1>
217-
<app-translate keyword="about.header.title" />
217+
<app-translate class="title" keyword="about.header.title" />
218+
<app-translate class="title-small" keyword="about.header.titleSmall" />
218219
</h1>
219220
<p>
220221
<app-translate keyword="about.header.text" />
@@ -240,7 +241,10 @@ export class AppAbout {
240241

241242
{/* section - mission statement */}
242243
<section id="mission-statement" class="mission-statement">
243-
<div class="mission-statement d-flex text-center">
244+
<div class="mission-statement d-flex flex-column text-center">
245+
<h1 class="text-white">
246+
<app-translate keyword="about.mission.title" />
247+
</h1>
244248
<p class="text-white align-self-center">
245249
<app-translate keyword="about.mission.statement" />
246250
</p>

0 commit comments

Comments
 (0)