Skip to content

Commit 4e12eee

Browse files
committed
Add css for banner text
1 parent 47a7de1 commit 4e12eee

File tree

3 files changed

+56
-14
lines changed

3 files changed

+56
-14
lines changed

src/assets/stylesheets/pages/_home.scss

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,10 +674,45 @@
674674
}
675675
@include media-breakpoint-down(sm) {
676676
min-height: 150px;
677-
max-height: 150px
677+
max-height: 150px;
678+
}
679+
}
680+
681+
#page-wrap {
682+
@include media-breakpoint-down(sm) {
683+
padding-top: 54px;
684+
}
685+
@include media-breakpoint-up(sm) {
686+
padding-top: 76px;
678687
}
679688
}
680689

681690
.bg-light-gray {
682691
background-color: $gray-96;
683692
}
693+
694+
.banner-wrapper-mb {
695+
height: 384px;
696+
display: flex;
697+
align-items: center;
698+
justify-content: flex-end;
699+
background: transparent url('../images/home/banner_mb.png') no-repeat top center;
700+
background-size: cover;
701+
flex-direction: column;
702+
padding-bottom: 48px;
703+
}
704+
705+
.banner-wrapper {
706+
height: 384px;
707+
display: flex;
708+
align-items: center;
709+
justify-content: flex-end;
710+
background: transparent url('../images/home/banner.png') no-repeat top center;
711+
background-size: cover;
712+
flex-direction: column;
713+
padding-bottom: 48px;
714+
}
715+
716+
.btn-banner-contact-us {
717+
718+
}

src/components/home/HomePageBanner.js

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import React from 'react';
22
import { Row, Col } from 'reactstrap';
3-
import Banner from '../../assets/images/home/banner.png';
4-
import BannerMob from '../../assets/images/home/banner_mb.png';
53
import Santa from '../../assets/images/home/santa.png';
64
import Media from 'react-media';
75

@@ -11,12 +9,23 @@ const HomePageBanner = () => {
119
{matches =>
1210
matches ? (
1311
<section className="bg-light-gray justify-content-center">
14-
<img src={BannerMob} alt="banner-mobile" />
15-
16-
<div className="text-center">
12+
<div className="banner-wrapper-mb">
13+
<h2 className="font-weight-bold text-white">
14+
INNOVATION & DISRUPTION
15+
</h2>
16+
<h5 className="font-weight-bold text-white">
17+
is the way We change the Game
18+
</h5>
19+
<a href="/contact_us" className="btn btn-xs btn-danger rounded-pill mb-1 btn-banner-contact-us">
20+
Contact us
21+
</a>
22+
<h6 className="text-white">
23+
to change yours
24+
</h6>
25+
</div>
26+
<div className="text-center banner-text" style={{ marginTop: '-4px' }}>
1727
<img src={Santa} alt="santa-mobile" />
1828
</div>
19-
2029
<Row className="justify-content-center m-auto p-md-3">
2130
<Col>
2231
<p className="text-center disruption-margin">
@@ -29,23 +38,22 @@ const HomePageBanner = () => {
2938
</section>
3039
) : (
3140
<section className="bg-light-gray justify-content-center">
32-
<img src={Banner} alt="banner" />
33-
<div className="text-center">
41+
<div className="banner-wrapper">
3442
<h2 className="font-weight-bold text-white">
3543
INNOVATION & DISRUPTION
3644
</h2>
37-
<h5 className="text-white">
45+
<h5 className="font-weight-bold text-white">
3846
is the way We change the Game
3947
</h5>
40-
<a href="/contact_us" className="btn btn-danger rounded-pill btn-xs">
48+
<a href="/contact_us" className="btn btn-danger rounded-pill mb-1 btn-banner-contact-us">
4149
Contact us
4250
</a>
4351
<h6 className="text-white">
4452
to change yours
4553
</h6>
4654
</div>
47-
<div className="text-center">
48-
<img src={Santa} alt="santa-mobile" />
55+
<div className="text-center" style={{ marginTop: '-4px' }}>
56+
<img src={Santa} alt="santa" />
4957
</div>
5058
<Row className="justify-content-center m-auto p-md-3">
5159
<Col>

src/components/home/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const Home = () => {
1414

1515
return (
1616
<>
17-
<div className="main-container" />
1817
<main id="page-wrap">
1918
<HomePageBanner />
2019
<DomainExpertise />

0 commit comments

Comments
 (0)