NeedToLogin.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. import React from 'react';
  2. import Link from 'next/link';
  3. import styled from 'styled-components';
  4. import Button from '../Button';
  5. import { fadeIn } from '../../helpers/animations';
  6. const Wrapper = styled.div`
  7. position: relative;
  8. width: 1200px;
  9. max-width: 98%;
  10. display: flex;
  11. align-items: center;
  12. margin: 16px 0 0;
  13. animation: ${fadeIn} 0.8s ease-out;
  14. box-sizing: border-box;
  15. a {
  16. text-decoration: none;
  17. }
  18. @media only screen and (max-width: 768px) {
  19. flex-direction: column;
  20. align-items: center;
  21. }
  22. `;
  23. const TitleWrapper = styled.div`
  24. display: flex;
  25. flex-direction: column;
  26. align-items: flex-start;
  27. margin-top: -32px;
  28. @media only screen and (max-width: 768px) {
  29. flex-direction: column;
  30. align-items: center;
  31. margin-bottom: 32px;
  32. }
  33. `;
  34. const Title = styled.h2`
  35. font-size: 28px;
  36. font-weight: 300;
  37. padding-right: 32px;
  38. margin-bottom: 48px;
  39. @media only screen and (max-width: 768px) {
  40. font-size: 22px;
  41. text-align: center;
  42. padding-right: 0;
  43. margin-bottom: 32px;
  44. padding: 0 40px;
  45. }
  46. @media only screen and (max-width: 448px) {
  47. font-size: 18px;
  48. text-align: center;
  49. margin-bottom: 24px;
  50. }
  51. `;
  52. const Image = styled.img`
  53. flex: 0 0 60%;
  54. width: 60%;
  55. max-width: 100%;
  56. height: auto;
  57. @media only screen and (max-width: 768px) {
  58. flex-basis: 100%;
  59. width: 100%;
  60. }
  61. `;
  62. const NeedToLogin = () => (
  63. <Wrapper>
  64. <TitleWrapper>
  65. <Title>
  66. Manage links, set custom <b>domains</b> and view <b>stats</b>.
  67. </Title>
  68. <Link href="/login" prefetch>
  69. <a href="/login" title="login / signup">
  70. <Button>Login / sign up</Button>
  71. </a>
  72. </Link>
  73. </TitleWrapper>
  74. <Image src="/images/callout.png" />
  75. </Wrapper>
  76. );
  77. export default NeedToLogin;