chore: restructure project into yarn workspaces, remove next

This commit is contained in:
41666 2021-03-09 23:25:16 -05:00
parent 49e308507e
commit 8d06327c03
266 changed files with 16466 additions and 3350 deletions

View file

@ -0,0 +1,13 @@
import * as React from 'react';
import { HalfsiesContainer, HalfsiesItem } from './Halfsies';
export default {
title: 'Atoms/Halfsies',
};
export const Container = () => (
<HalfsiesContainer>
<HalfsiesItem>Lefty doo</HalfsiesItem>
<HalfsiesItem>Righty doo</HalfsiesItem>
</HalfsiesContainer>
);

View file

@ -0,0 +1,17 @@
import { onTablet } from '@roleypoly/design-system/atoms/breakpoints';
import styled, { css } from 'styled-components';
export const HalfsiesContainer = styled.div`
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
`;
export const HalfsiesItem = styled.div`
box-sizing: border-box;
flex: 1 1 100%;
${onTablet(css`
flex: 1 2 50%;
`)}
`;

View file

@ -0,0 +1 @@
export * from './Halfsies';