mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-17 01:59:08 +00:00
Refactor node packages to yarn workspaces & ditch next.js for CRA. (#161)
* chore: restructure project into yarn workspaces, remove next * fix tests, remove webapp from terraform * remove more ui deployment bits * remove pages, fix FUNDING.yml * remove isomorphism * remove next providers * fix linting issues * feat: start basis of new web ui system on CRA * chore: move types to @roleypoly/types package * chore: move src/common/utils to @roleypoly/misc-utils * chore: remove roleypoly/ path remappers * chore: renmove vercel config * chore: re-add worker-types to api package * chore: fix type linting scope for api * fix(web): craco should include all of packages dir * fix(ci): change api webpack path for wrangler * chore: remove GAR actions from CI * chore: update codeql job * chore: test better github dar matcher in lint-staged
This commit is contained in:
parent
49e308507e
commit
2ff6588030
328 changed files with 16624 additions and 3525 deletions
62
packages/design-system/atoms/fonts/fonts.stories.tsx
Normal file
62
packages/design-system/atoms/fonts/fonts.stories.tsx
Normal file
|
@ -0,0 +1,62 @@
|
|||
import {
|
||||
MediumTitle,
|
||||
Text as TextBlock,
|
||||
} from '@roleypoly/design-system/atoms/typography';
|
||||
import * as React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { UseFontStyled } from './fonts';
|
||||
|
||||
const resetFont = (storyFn: () => React.ReactNode) => <FontReset>{storyFn()}</FontReset>;
|
||||
|
||||
export default {
|
||||
title: 'Atoms/Fonts',
|
||||
decorators: [resetFont],
|
||||
};
|
||||
|
||||
const FontReset = styled.div`
|
||||
font-family: sans-serif;
|
||||
`;
|
||||
|
||||
const CorrectlyFontedH2 = (props: { children: React.ReactNode }) => (
|
||||
<UseFontStyled>
|
||||
<MediumTitle>{props.children}</MediumTitle>
|
||||
</UseFontStyled>
|
||||
);
|
||||
|
||||
const Text = () => (
|
||||
<>
|
||||
<p>
|
||||
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Et facilis alias
|
||||
placeat cumque sapiente ad delectus omnis quae. Reiciendis quibusdam deserunt
|
||||
repellat. Exercitationem modi incidunt autem nemo tempore eaque soluta.
|
||||
</p>
|
||||
<p>
|
||||
帯カノ需混モイ一録43旧百12共ドレ能生ホクユ禁度ヨ材図クほはそ護関ラト郵張エノヨ議件クめざ県読れみとぶ論税クょンど慎転リつぎみ松期ほへド.
|
||||
縦投記ふで覧速っだせあ過先課フ演無ぎぱべ習併相ーす気6元ゆる領気希ぎ投代ラ我関レ森郎由系堂ず.
|
||||
読ケリ夜指ーっトせ認平引ウシ間花ヱクム年6台ぐ山婦ラスエ子著コア掲中ロ像属戸メソユ職諏ルど詐児題たに書希ク幕値長ラそめド.
|
||||
</p>
|
||||
<p>
|
||||
🔸🐕🔺💱🎊👽🐛 👨📼🕦📞 👱👆🍗👚🌈 🔝🔟🍉🔰🍲🏁🕗 🎡🐉🍲📻🔢🔄 💟💲🍻💜💩🔼
|
||||
🎱🌸📛👫🌻 🗽🕜🐥👕🍈. 🐒🍚🔓📱🏦 🎦🌑🔛💙👣🔚 🔆🗻🌿🎳📲🍯 🌞💟🎌🍌 🔪📯🐎💮
|
||||
👌👭🎋🏉🏰 📓🕃🎂💉🔩 🐟🌇👺🌊🌒 📪👅🍂🍁 🌖🐮🔽🌒📊. 🔤🍍🌸📷🎴 💏🍌📎👥👉👒
|
||||
👝💜🔶🍣 💨🗼👈💉💉💰 🍐🕖🌰👝🕓🏊🐕 🏀📅📼📒 🐕🌈👋
|
||||
</p>
|
||||
</>
|
||||
);
|
||||
|
||||
export const Fonts = () => (
|
||||
<TextBlock>
|
||||
<section>
|
||||
<CorrectlyFontedH2>Unstyled Default</CorrectlyFontedH2>
|
||||
<Text />
|
||||
</section>
|
||||
<section>
|
||||
<CorrectlyFontedH2>
|
||||
Main (Source Han Sans Japanese, Source Sans)
|
||||
</CorrectlyFontedH2>
|
||||
<UseFontStyled>
|
||||
<Text />
|
||||
</UseFontStyled>
|
||||
</section>
|
||||
</TextBlock>
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue