| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- import React from 'react';
- import styled from 'styled-components';
- import SVG from 'react-inlinesvg';
- const Section = styled.div`
- position: relative;
- width: 100%;
- flex: 0 0 auto;
- display: flex;
- flex-direction: column;
- align-items: center;
- margin: 0;
- padding: 90px 0 100px;
- background-color: #282828;
- @media only screen and (max-width: 768px) {
- margin: 0;
- padding: 48px 0 16px;
- flex-wrap: wrap;
- }
- `;
- const Wrapper = styled.div`
- width: 1200px;
- max-width: 100%;
- flex: 1 1 auto;
- display: flex;
- justify-content: center;
- @media only screen and (max-width: 1200px) {
- flex-wrap: wrap;
- }
- `;
- const Title = styled.h3`
- font-size: 28px;
- font-weight: 300;
- margin: 0 0 60px;
- color: #f5f5f5;
- @media only screen and (max-width: 768px) {
- font-size: 24px;
- margin-bottom: 56px;
- }
- @media only screen and (max-width: 448px) {
- font-size: 20px;
- margin-bottom: 40px;
- }
- `;
- const Button = styled.button`
- display: flex;
- align-items: center;
- justify-content: center;
- margin: 0 16px;
- padding: 12px 28px;
- font-family: 'Nunito', sans-serif;
- background-color: #eee;
- border: 1px solid #aaa;
- font-size: 14px;
- font-weight: bold;
- text-decoration: none;
- border-radius: 4px;
- outline: none;
- box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
- transition: transform 0.3s ease-out;
- cursor: pointer;
- @media only screen and (max-width: 768px) {
- margin-bottom: 16px;
- padding: 8px 16px;
- font-size: 12px;
- }
- > * {
- text-decoration: none;
- }
- :hover {
- transform: translateY(-2px);
- }
- `;
- const FirefoxButton = styled(Button)`
- color: #e0890f;
- `;
- const ChromeButton = styled(Button)`
- color: #4285f4;
- `;
- const Link = styled.a`
- text-decoration: none;
- :visited,
- :hover,
- :active,
- :focus {
- text-decoration: none;
- }
- `;
- const Icon = styled(SVG)`
- svg {
- width: 18px;
- height: 18px;
- margin-right: 16px;
- fill: ${props => props.color || '#333'};
- @media only screen and (max-width: 768px) {
- width: 13px;
- height: 13px;
- margin-right: 10px;
- }
- }
- `;
- const Extensions = () => (
- <Section>
- <Title>Browser extensions.</Title>
- <Wrapper>
- <Link
- href="https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd"
- target="_blank"
- rel="noopener noreferrer"
- >
- <ChromeButton>
- <Icon src="/images/googlechrome.svg" color="#4285f4" />
- <span>Download for Chrome</span>
- </ChromeButton>
- </Link>
- <Link
- href="https://addons.mozilla.org/en-US/firefox/addon/kutt/"
- target="_blank"
- rel="noopener noreferrer"
- >
- <FirefoxButton>
- <Icon src="/images/mozillafirefox.svg" color="#e0890f" />
- <span>Download for Firefox</span>
- </FirefoxButton>
- </Link>
- </Wrapper>
- </Section>
- );
- export default Extensions;
|