text: import React from 'react';
  import styled from 'styled-components';
  import Layout from '../../components/page-layout';
  import Todo from '../../components/todolist';
  import { media } from '../../utils';
  import { Container } from '../../components/layoutComponents';
  
  const ProjectsPage = () => (
    <Layout>
      <Wrapper>
        <Text>
          <Title>ToDo List</Title>
          <Paragraph>
            Landing page for my Todo List Project - an app created with JavaScript
            and Ruby/SQL.
          </Paragraph>
          <nav>
            <a
              href="https://project1-todo-list.herokuapp.com/login"
              target="_blank"
              rel="noopener noreferrer"
            >
              Live Demo
            </a>
            <a
              href="https://github.com/CaleShanley/Project1"
              target="_blank"
              rel="noopener noreferrer"
            >
              Source Code
            </a>
          </nav>
        </Text>
        <Preview>
          <Todo />
        </Preview>
      </Wrapper>
    </Layout>
  );
  
  const Wrapper = styled(Container)`
    display: flex;
    flex-direction: column;
    max-width: 1125px;
  
    a {
      margin-right: 1rem;
  
      &:hover {
        text-decoration: underline;
      }
    }
  
    ${media.desktop`
      margin: 6rem auto;
      flex-direction: row;
    `}
  `;
  
  const Preview = styled.div`
    transition: all 0.3s ease-in;
    margin: 2rem 0 0;
    box-shadow: 2px 2px 50px 0 rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 900px;
  `;
  
  const Title = styled.h1`
    margin: 1rem 0;
  `;
  
  const Text = styled.div`
    margin: 3rem 0;
    max-width: 800px;
    padding-right: 2rem;
  `;
  
  const Paragraph = styled.p`
    font-size: 1.25rem;
    line-height: 1.25;
  `;
  
  export default ProjectsPage;
  