Skip to content

Commit 44bc431

Browse files
author
Luciano Nooijen
committed
Merge branch 'release/v2.6.2'
2 parents 58e1f07 + fe75091 commit 44bc431

File tree

5 files changed

+30
-12
lines changed

5 files changed

+30
-12
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 2.6.2 (2021-01-27)
9+
10+
### Changed:
11+
12+
* Colors for newsletter popup
13+
814
## 2.6.1 (2021-01-12)
915

1016
### Fixed:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "bytecode-website",
33
"private": false,
44
"description": "The Bytecode Digital Agency website, released as free software",
5-
"version": "v2.6.1",
5+
"version": "v2.6.2",
66
"author": "Luciano Nooijen <[email protected]>",
77
"keywords": [
88
"bytecode"

src/containers/NewsletterSubscribe/NewsletterSubscribe.components.ts

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const NewsletterSubscribeContainer = styled.div`
1313

1414
export const NewsLetterSubscribePopupContainer = styled.div`
1515
margin-top: 2vh;
16-
background: #1c1e1f;
16+
background: ${theme.colors.offWhite};
1717
padding: 10vw;
1818
max-width: 800px;
1919
@media (min-width: ${theme.breakpoint.md}) {
@@ -22,17 +22,24 @@ export const NewsLetterSubscribePopupContainer = styled.div`
2222
position: fixed;
2323
right: 3%;
2424
bottom: 5%;
25-
border-radius: 10px;
2625
box-shadow: 5px 10px rgba(0, 0, 0, 0.3);
2726
z-index: 101010;
27+
h4,
28+
p {
29+
color: ${theme.colors.black};
30+
}
2831
`;
2932

3033
export const NewsletterSubscribeForm = styled.form`
31-
@media (min-width: ${theme.breakpoint.md}) {
32-
display: flex;
33-
> input {
34-
flex: 1;
35-
}
34+
display: grid;
35+
grid-template-columns: 1fr 1fr;
36+
grid-gap: 10px;
37+
@media (max-width: ${theme.breakpoint.xs}) {
38+
grid-template-columns: 1fr;
39+
}
40+
> input {
41+
background: ${theme.colors.white};
42+
color: ${theme.colors.black};
3643
}
3744
`;
3845

@@ -42,12 +49,14 @@ export const SubscribeButton = styled.button`
4249
height: 56.5px;
4350
padding: 12px 24px;
4451
margin-left: 5px;
45-
border-radius: 2px;
52+
border-radius: 10rem;
4653
border: none;
4754
text-align: center;
4855
font-size: 1.35rem;
49-
:disabled {
50-
background: #888;
56+
max-width: 220px;
57+
58+
@media (max-width: ${theme.breakpoint.md}) {
59+
padding: 12px;
5160
}
5261
`;
5362

src/containers/NewsletterSubscribe/NewsletterSubscribe.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const NewsletterSubscribe: React.FC<NewsletterSubscribeProps> = ({
8383
name="subscribe"
8484
id="mc-embedded-subscribe"
8585
>
86-
Schrijf in
86+
Schrijf je in
8787
</SubscribeButton>
8888
</NewsletterSubscribeForm>
8989
</Container>

src/styles/theme.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const lightgray2 = '#E7E7E7';
1111
const mediumgray = '#262626';
1212
const red = '#df5252';
1313
const white = '#ffffff';
14+
const offWhite = '#f5f5f5';
1415
const lightgreen = '#70C197';
1516

1617
// Fonts
@@ -42,6 +43,7 @@ type Colors = {
4243
lightgray: string;
4344
lightgray2: string;
4445
white: string;
46+
offWhite: string;
4547
};
4648
type Fonts = {
4749
heading: string;
@@ -165,6 +167,7 @@ const bytecode: Bytecode = {
165167
lightgray,
166168
lightgray2,
167169
white,
170+
offWhite,
168171
},
169172
fonts: {
170173
heading,

0 commit comments

Comments
 (0)