Skip to content

Commit

Permalink
Fixing mail button + some mobile layout adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
krajeswaran committed Aug 1, 2019
1 parent 2d44f8d commit 8ec7dec
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 13 deletions.
22 changes: 14 additions & 8 deletions src/components/landing/Intro/index.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Button, Container } from 'Common'
import { contact, defaultDescription, photo, photoWebp, summary } from 'Data'
import React from 'react'
import dev from 'Static/illustrations/dev.svg'
import { Header } from 'Theme'
import Image from 'react-image-webp'
import { Details, IntroWrapper, Thumbnail, Wrapper } from './styles'
import { Button, Container } from 'Common';
import { contact, defaultDescription, photo, photoWebp, summary } from 'Data';
import React from 'react';
import Image from 'react-image-webp';
import dev from 'Static/illustrations/dev.svg';
import { Header } from 'Theme';
import { Details, IntroWrapper, Thumbnail, Wrapper } from './styles';

export const Intro = () => (
<Wrapper>
Expand All @@ -16,7 +16,13 @@ export const Intro = () => (
{summary.map(line => (
<p key={line}>{line}</p>
))}
<Button href={`mailto:${contact.email}`}>Contact me</Button>
<Button
onClick={() => {
window.location.href = `mailto:${contact.email}`
}}
>
Contact me
</Button>
</Details>
<Thumbnail>
<img src={dev} alt={defaultDescription} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/landing/Intro/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const Details = styled.div`
margin-bottom: 3rem;
@media (max-width: 680px) {
margin-left: 5rem;
margin-left: 6rem;
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/components/landing/Projects/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export const Item = styled.div`
overflow: hidden;
padding: 1rem;
@media (max-width: 960px) {
padding: 0.2rem 0.1rem ;
}
h4 {
color: #212121;
padding-left: 1rem;
Expand Down
4 changes: 4 additions & 0 deletions src/components/landing/Skills/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export const Column = styled.div`
overflow: hidden;
padding: 1rem;
@media (max-width: 960px) {
padding: 0.2rem 0.1rem;
}
h4 {
color: #fff;
background-color: ${props => (props.color ? props.color : `#f1f1f1`)};
Expand Down
8 changes: 4 additions & 4 deletions src/components/theme/Header/NavbarLinks/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { social } from 'Data'
import React from 'react'
import AnchorLink from 'react-anchor-link-smooth-scroll'
import { Wrapper } from './styles'
import { social } from 'Data';
import React from 'react';
import AnchorLink from 'react-anchor-link-smooth-scroll';
import { Wrapper } from './styles';

const NavbarLinks = ({ desktop }) => (
<Wrapper desktop={desktop}>
Expand Down

0 comments on commit 8ec7dec

Please sign in to comment.