From 991aeb88316b0f1e3f00af298a473f9211b8cdcd Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Thu, 23 Aug 2018 16:01:22 +0200 Subject: [PATCH] Refactorize "BrowserNotSupported" --- .../components/BrowserNotSupported/index.js | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 src/js/views/Landing/components/BrowserNotSupported/index.js diff --git a/src/js/views/Landing/components/BrowserNotSupported/index.js b/src/js/views/Landing/components/BrowserNotSupported/index.js new file mode 100644 index 00000000..e6a3d41d --- /dev/null +++ b/src/js/views/Landing/components/BrowserNotSupported/index.js @@ -0,0 +1,64 @@ +import React from 'react'; +import styled, { css } from 'styled-components'; +import Link from 'components/Link'; +import P from 'components/Paragraph'; +import { H2 } from 'components/Heading'; + +const Wrapper = styled.div``; + +const ChooseBrowserWrapper = styled.div` + display: flex; + justify-content: space-between; +`; + +const BrowserLogo = styled.div` + margin-bottom: 10px; + width: 43px; + height: 43px; + ${props => props.isChrome && css` + background-image: url('../images/browser-chrome.png'); + `} + ${props => props.isFirefox && css` + background-image: url('../images/browser-firefox.png'); + `} +`; + +const Browser = styled.div` + margin: 30px; + display: flex; + flex-direction: column; + align-items: center; +`; + +const BrowserNotSupported = () => ( + +

Your browser is not supported

+

Please choose one of the supported browsers

+ + + +

Google Chrome

+ +
+ + +

Mozzila Firefox

+ +
+
+
+); + +export default BrowserNotSupported;