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

Commit 27355c9

Browse files
authored
Merge pull request #397 from openforge/fix/cta-size
Fix/cta size
2 parents 7ed2625 + 8fdc4c0 commit 27355c9

File tree

3 files changed

+29
-23
lines changed

3 files changed

+29
-23
lines changed

src/components/app-cta/app-cta.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
.cta {
22
height: 344px;
3+
background: $blue-green;
34

45
@include media-breakpoint-down(sm) {
56
height: 780px;
67
}
78

9+
.container {
10+
height: 100%;
11+
}
12+
813
.row {
914
height: 100%;
10-
background: #008092;
1115
}
1216

1317
.cta-image {

src/components/app-cta/app-cta.tsx

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,33 @@ import { Component, h } from '@stencil/core';
44
tag: 'app-cta',
55
styleUrl: 'app-cta.scss',
66
})
7+
78
export class AppCta {
89
render() {
910
return (
10-
<section id="cta" class="cta">
11-
<div class="row">
12-
<div class="col-md-6 col-sm-12 text-center cta-image" />
13-
14-
<div class="col-md-6 col-sm-12 align-self-center text-center cta-text">
15-
<h2>
16-
<app-translate keyword="cta.title" />
17-
</h2>
18-
<h3>
19-
<app-translate keyword="cta.subTitle" />
20-
</h3>
21-
{/* <h2>
22-
<app-translate keyword="cta.text" />
23-
</h2> */}
24-
25-
<stencil-route-link url="/contact">
26-
<button class="btn btn-primary">
27-
<app-translate keyword="cta.link" />
28-
</button>
29-
</stencil-route-link>
11+
<div id="cta" class="cta">
12+
<div class="container">
13+
<div class="row">
14+
<div class="col-md-6 col-sm-12 text-center cta-image" />
15+
<div class="col-md-6 col-sm-12 align-self-center text-center cta-text">
16+
<h2>
17+
<app-translate keyword="cta.title" />
18+
</h2>
19+
<p>
20+
<app-translate keyword="cta.subTitle" />
21+
</p>
22+
<h2>
23+
<app-translate keyword="cta.text" />
24+
</h2>
25+
<stencil-route-link url="/contact">
26+
<button class="button">
27+
<app-translate keyword="cta.link" />
28+
</button>
29+
</stencil-route-link>
30+
</div>
3031
</div>
3132
</div>
32-
</section>
33+
</div>
3334
);
3435
}
35-
}
36+
}

src/styles/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ $gray-brown: #5d534e !default;
1313
$gray-dark: #292a2d !default;
1414
$black: #171719 !default;
1515
$blue: #638593 !default;
16+
$blue-green: #008092 !default;
1617
$cyan: #0095aa !default;
1718
$indigo: #323c47 !default;
1819
$red: #dc3545 !default; // TODO

0 commit comments

Comments
 (0)