Features.js 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import React from 'react';
  2. import styled from 'styled-components';
  3. import FeaturesItem from './FeaturesItem';
  4. const Section = styled.div`
  5. position: relative;
  6. width: 100%;
  7. flex: 0 0 auto;
  8. display: flex;
  9. flex-direction: column;
  10. align-items: center;
  11. margin: 0;
  12. padding: 102px 0;
  13. background-color: #eaeaea;
  14. @media only screen and (max-width: 768px) {
  15. margin: 0;
  16. padding: 64px 0 16px;
  17. flex-wrap: wrap;
  18. }
  19. `;
  20. const Wrapper = styled.div`
  21. width: 1200px;
  22. max-width: 100%;
  23. flex: 1 1 auto;
  24. display: flex;
  25. justify-content: center;
  26. @media only screen and (max-width: 1200px) {
  27. flex-wrap: wrap;
  28. }
  29. `;
  30. const Title = styled.h3`
  31. font-size: 28px;
  32. font-weight: 300;
  33. margin: 0 0 72px;
  34. @media only screen and (max-width: 768px) {
  35. font-size: 24px;
  36. margin-bottom: 56px;
  37. }
  38. @media only screen and (max-width: 448px) {
  39. font-size: 20px;
  40. margin-bottom: 40px;
  41. }
  42. `;
  43. const Features = () => (
  44. <Section>
  45. <Title>Kutting edge features.</Title>
  46. <Wrapper>
  47. <FeaturesItem title="Managing links" icon="edit">
  48. Create, protect and delete your links and monitor them with detailed statistics.
  49. </FeaturesItem>
  50. <FeaturesItem title="Custom domain" icon="navigation">
  51. Use custom domains for your links. Add or remove them for free.
  52. </FeaturesItem>
  53. <FeaturesItem title="API" icon="zap">
  54. Use the provided API to create, delete and get URLs from anywhere.
  55. </FeaturesItem>
  56. <FeaturesItem title="Free &amp; open source" icon="heart">
  57. Completely open source and free. You can host it on your own server.
  58. </FeaturesItem>
  59. </Wrapper>
  60. </Section>
  61. );
  62. export default Features;