mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 18:09:09 +00:00
chore: restructure project into yarn workspaces, remove next
This commit is contained in:
parent
49e308507e
commit
8d06327c03
266 changed files with 16466 additions and 3350 deletions
13
packages/design-system/atoms/halfsies/Halfsies.stories.tsx
Normal file
13
packages/design-system/atoms/halfsies/Halfsies.stories.tsx
Normal 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>
|
||||
);
|
17
packages/design-system/atoms/halfsies/Halfsies.tsx
Normal file
17
packages/design-system/atoms/halfsies/Halfsies.tsx
Normal 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%;
|
||||
`)}
|
||||
`;
|
1
packages/design-system/atoms/halfsies/index.ts
Normal file
1
packages/design-system/atoms/halfsies/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export * from './Halfsies';
|
Loading…
Add table
Add a link
Reference in a new issue