run prettier

This commit is contained in:
DrMint 2022-03-13 15:39:19 +01:00
parent 08fe5000a7
commit f1a1b83b45
3 changed files with 8 additions and 2 deletions

2
run_accords_prettier.sh Executable file
View File

@ -0,0 +1,2 @@
npx prettier --end-of-line auto --write "**/*.tsx"
npx prettier --end-of-line auto --write "**/*.ts"

View File

@ -11,7 +11,9 @@ export default function Popup(props: PopupProps): JSX.Element {
return (
<div
className={`fixed inset-0 z-50 grid place-content-center transition-[backdrop-filter] duration-500 ${
props.state ? "[backdrop-filter:blur(2px)]" : "pointer-events-none touch-none"
props.state
? "[backdrop-filter:blur(2px)]"
: "pointer-events-none touch-none"
}`}
>
<div

View File

@ -18,7 +18,9 @@ export default function Home(props: HomeProps): JSX.Element {
<div className="grid place-items-center place-content-center w-full gap-5 text-center">
<div className="[mask:url('/icons/accords.svg')] [mask-size:contain] [mask-repeat:no-repeat] [mask-position:center] w-32 aspect-square mobile:w-[50vw] bg-black" />
<h1 className="text-5xl mb-0">Accord&rsquo;s Library</h1>
<h2 className="text-xl -mt-5">Discover Analyse Translate Archive</h2>
<h2 className="text-xl -mt-5">
Discover Analyse Translate Archive
</h2>
</div>
{post.translations.length > 0 && (
<Markdawn text={post.translations[0].body} />