Features.tsx 1.6 KB

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