Skip to content

Commit 28b2df3

Browse files
author
Jeroen van Steijn
committed
Merge branch 'feature/new-home' into 'develop'
Feature/new home See merge request bytecode/bytecode-website!165
2 parents 3f1d72f + 570195c commit 28b2df3

35 files changed

+993
-1194
lines changed

content/posts/bytecast.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: 99
3-
title: 'Bytecast: de podcast van Bytecode'
3+
title: 'De podcast van Bytecode'
44
description: 'Elke eerste maandag van de maand brengt Bytecode een nieuwe podcastaflevering uit van de Bytecast. Luister het hier!'
55
keywords: 'podcast, bytecast, bytecode, bytecodeagency'
66
posted_on: '2 november 2020'

src/components/Button/Button.components.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import theme from '../../styles/theme';
44

55
const { size, height, spacing, font, weight, color } = theme.typography.button;
66

7-
const buttonStyle = css<{ disabled?: boolean }>`
7+
const buttonStyle = css<{ disabled?: boolean; wide?: boolean }>`
88
display: inline-block;
99
background: transparent;
1010
padding: 0.66em 2em;
@@ -20,6 +20,9 @@ const buttonStyle = css<{ disabled?: boolean }>`
2020
font-weight: ${weight};
2121
color: ${color};
2222
text-decoration: none;
23+
${(props) => props.wide && 'width: 450px;'};
24+
${(props) => props.wide && 'max-width: 80vw;'};
25+
${(props) => props.wide && 'margin: 100px 0;'};
2326
&:hover {
2427
color: ${(props) =>
2528
props.disabled ? theme.colors.tertiary : theme.colors.white};
@@ -37,6 +40,6 @@ export const StyledGatsbyButton = styled(Link)<{ disabled?: boolean }>`
3740
export const StyledButton = styled.button<{ disabled?: boolean }>`
3841
${buttonStyle}
3942
`;
40-
export const StyledAnchor = styled.a<{ disabled?: boolean }>`
43+
export const StyledAnchor = styled.a<{ disabled?: boolean; wide?: boolean }>`
4144
${buttonStyle}
4245
`;

src/components/Button/Button.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const Button: React.FC<ButtonProps> = ({
1414
target,
1515
onClick,
1616
disabled,
17+
wide,
1718
children,
1819
}) => {
1920
if (useGatsbyLink) {
@@ -38,7 +39,13 @@ const Button: React.FC<ButtonProps> = ({
3839
);
3940
}
4041
return (
41-
<StyledAnchor href={href} rel={rel} target={target} onClick={onClick}>
42+
<StyledAnchor
43+
wide={wide}
44+
href={href}
45+
rel={rel}
46+
target={target}
47+
onClick={onClick}
48+
>
4249
{children}
4350
</StyledAnchor>
4451
);

src/components/Button/Button.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export interface ButtonProps {
77
submit?: boolean;
88
target?: string;
99
onClick?: () => void;
10+
wide?: boolean;
1011
disabled?: boolean;
1112
children: React.ReactNode;
1213
}

0 commit comments

Comments
 (0)