Skip to content

Commit 4a567cf

Browse files
authored
Merge pull request #271 from BitcoinDesign/feature/home-banner-background-image
Add home page banner full-width background images option
2 parents 3fe0bfe + ff21908 commit 4a567cf

File tree

7 files changed

+265
-84
lines changed

7 files changed

+265
-84
lines changed

_compress_images_cache.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,10 @@ assets/images/guide/payments/transactions/transactions-mobile.jpg: transactions-
547547
assets/images/guide/payments/transactions/transactions-mobile@2x.jpg: transactions-mobile@2x.jpg
548548
assets/images/guide/onboarding/getting-to-know-your-users-mobile@2x.jpg: getting-to-know-your-users-mobile@2x.jpg
549549
assets/images/guide/onboarding/getting-to-know-your-users-mobile.jpg: getting-to-know-your-users-mobile.jpg
550+
assets/images/home/banner/the-meta-future-mobile.jpg: the-meta-future-mobile.jpg
551+
assets/images/home/banner/the-meta-future-mobile@2x.jpg: the-meta-future-mobile@2x.jpg
552+
assets/images/home/banner/the-meta-future.jpg: the-meta-future.jpg
553+
assets/images/home/banner/the-meta-future@2x.jpg: the-meta-future@2x.jpg
550554
assets/images/guide/getting-started/common-user-flows/muun-onboarding-1.png: muun-onboarding-1.png
551555
assets/images/guide/getting-started/common-user-flows/muun-onboarding-10.png: muun-onboarding-10.png
552556
assets/images/guide/getting-started/common-user-flows/muun-onboarding-10@2x.png: muun-onboarding-10@2x.png

_sass/minima/_home-banner.scss

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66
max-width: 1680px;
77
margin-left: auto;
88
margin-right: auto;
9+
background-color: var(--banner-background-color);
10+
background-image: var(--banner-background-path-mobile);
11+
background-size: cover;
12+
background-repeat: no-repeat;
13+
background-position: center top;
14+
transition: background-color 150ms $ease;
15+
16+
@include retina() {
17+
background-image: var(--banner-background-path-mobile-retina);
18+
}
919

1020
.home-banner-copy-wrapper {
1121
background-color: var(--copy-background-color);
@@ -78,15 +88,15 @@
7888
.home-banner-image {
7989
width: 100%;
8090
padding-bottom: 100%;
81-
background-color: var(--background-image-color);
82-
background-image: var(--background-image-path-mobile);
91+
background-color: var(--banner-image-color);
92+
background-image: var(--banner-image-path-mobile);
8393
background-size: cover;
8494
background-repeat: no-repeat;
8595
background-position: center center;
8696
transition: background-color 150ms $ease;
8797

8898
@include retina() {
89-
background-image: var(--background-image-path-mobile-retina);
99+
background-image: var(--banner-image-path-mobile-retina);
90100
}
91101
}
92102

@@ -112,12 +122,18 @@
112122
display: flex;
113123
flex-direction: row;
114124
align-items: stretch;
125+
background-image: var(--banner-background-path);
126+
background-position: center center;
127+
128+
@include retina() {
129+
background-image: var(--banner-background-path-retina);
130+
}
115131

116132
.home-banner-image {
117-
background-image: var(--background-image-path);
133+
background-image: var(--banner-image-path);
118134

119135
@include retina() {
120-
background-image: var(--background-image-path-retina);
136+
background-image: var(--banner-image-path-retina);
121137
}
122138
}
123139

55.7 KB
Loading
174 KB
Loading
163 KB
Loading
506 KB
Loading

0 commit comments

Comments
 (0)