kleros/kleros-v2

View on GitHub
web/src/pages/GetPnk/index.tsx

Summary

Maintainability
A
1 hr
Test Coverage
import React from "react";
import styled from "styled-components";

import { isProductionDeployment } from "consts/index";

import { responsiveSize } from "styles/responsiveSize";

import ClaimPnkButton from "components/ClaimPnkButton";
import HeroImage from "components/HeroImage";

import { Widget } from "./Widget";

const Wrapper = styled.div`
  width: 100%;
`;

const Container = styled.div`
  width: 100%;
  background-color: ${({ theme }) => theme.lightBackground};
  padding: ${responsiveSize(32, 72)} ${responsiveSize(24, 132)} ${responsiveSize(76, 96)};
  max-width: 1780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
`;

const GetPnk: React.FC = () => {
  return (
    <Wrapper>
      <HeroImage />
      <Container>
        {!isProductionDeployment() && <ClaimPnkButton />}
        <Widget />
      </Container>
    </Wrapper>
  );
};

export default GetPnk;