This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { describe, expect, it } from 'vitest' | |
const canReconfigure = (from, to) => { | |
if (typeof from !== 'string') throw new Error('from is not a string') | |
if (typeof to !== 'string') throw new Error('from is not a string') | |
const hasSameLength = from.length === to.length | |
if (!hasSameLength) return false | |
const fromLetters = new Set(from) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import styled from 'styled-components'; | |
import { media } from 'utils/mediaQuery'; | |
const Title = styled.h1` | |
font-size: 24px; | |
${media.medium` | |
font-size: 30px; | |
`} | |
${media.large` | |
font-size: 36px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0-modified | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |