Skip to content

Commit be58dc7

Browse files
author
Luciano Nooijen
committed
Merge branch 'material' into 'develop'
Improve development with better looks See merge request bytecode/bytecode-website!34
2 parents 397f591 + d820244 commit be58dc7

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

components/ContactForm.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const ContactFormContainer = styled.div`
99

1010
const InputField = styled.input`
1111
background: none;
12+
outline: none;
1213
border: none;
1314
border-bottom: 2px solid ${theme.colors.lightgray};
1415
margin-bottom: 1.5rem;
@@ -34,6 +35,7 @@ const SendButton = styled.button`
3435

3536
const InputTextArea = styled.textarea`
3637
background: none;
38+
outline: none;
3739
border: none;
3840
border-bottom: 2px solid ${theme.colors.white};
3941
color: white;

components/Navbar.jsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-disable jsx-a11y/anchor-is-valid, no-confusing-arrow */
22

33
import React from 'react';
4+
import Link from 'next/link';
45
import NavbarComponents from './NavbarComponents';
56

67
const {
@@ -39,7 +40,11 @@ class Navbar extends React.Component {
3940
return (
4041
<NavbarContainer>
4142
<InnerNavbarContainer>
42-
<MobileNavLogo src="/static/img/logo-min.svg" />
43+
<Link prefetch href="/">
44+
<a>
45+
<MobileNavLogo src="/static/img/logo-min.svg" />
46+
</a>
47+
</Link>
4348
<BlackOverlay
4449
menuIsOpen={menuIsOpen}
4550
onClick={this.closeMenu}
@@ -52,8 +57,14 @@ class Navbar extends React.Component {
5257
/>
5358
</MenuButton>
5459
<NavbarContent menuIsOpen={menuIsOpen}>
55-
{/* TODO: Link Logo to homepage */}
56-
<Logo src="/static/img/logo.svg" alt="Bytecode logo" />
60+
<Link prefetch href="/">
61+
<a>
62+
<Logo
63+
src="/static/img/logo.svg"
64+
alt="Bytecode logo"
65+
/>
66+
</a>
67+
</Link>
5768
<NavbarItems>
5869
<CloseMenuButton href="#" onClick={this.closeMenu}>
5970
<img

components/NavbarComponents.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ const NavbarContainer = styled.nav`
2323
right: 0;
2424
background: ${transparentize(0.3, theme.colors.black)};
2525
}
26-
@media (min-width: ${theme.breakpointMobileMenu}) {
27-
margin: 0px 13.5rem;
26+
@media (min-width: ${theme.breakpoints[2]}px) {
27+
margin: 0 2rem;
28+
}
29+
@media (min-width: ${theme.breakpoints[3]}px) {
30+
margin: 0 8.5rem;
2831
}
2932
`;
3033

@@ -110,10 +113,7 @@ const NavbarItem = styled(NavbarItemBase)`
110113
`;
111114

112115
const Logo = styled.img`
113-
height: 55%;
114-
margin-left: -4rem;
115-
max-height: 6rem;
116-
width: auto;
116+
width: 60%;
117117
@media (max-width: ${theme.breakpointMobileMenu}) {
118118
display: none;
119119
}

pages/contact.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const HeaderImage = styled.img`
4545
right: -10rem;
4646
top: -75rem;
4747
overflow: hidden;
48-
width: 100%
48+
width: 100%;
4949
height: 100%;
5050
`;
5151

0 commit comments

Comments
 (0)