From 94762636fc444e52f22f7ab071bc1e1f2b2275fe Mon Sep 17 00:00:00 2001 From: gvjacob Date: Wed, 18 Jan 2023 17:20:41 -0500 Subject: [PATCH 1/2] chore: install tailwind prettier plugin --- package.json | 1 + yarn.lock | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index 81c1ff7..2aff6f0 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "lint-staged": "^13.1.0", "postcss": "^8.4.21", "prettier": "^2.8.2", + "prettier-plugin-tailwindcss": "^0.2.1", "pretty-quick": "^3.1.3", "tailwindcss": "^3.2.4" }, diff --git a/yarn.lock b/yarn.lock index 492bd50..e9e7674 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4305,6 +4305,11 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== +prettier-plugin-tailwindcss@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.2.1.tgz#989b35afd86c550cb671da69891aba4f4a051159" + integrity sha512-aIO8IguumORyRsmT+E7JfJ3A9FEoyhqZR7Au7TBOege3VZkgMvHJMkufeYp4zjnDK2iq4ktkvGMNOQR9T8lisQ== + prettier@^2.8.2: version "2.8.2" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.2.tgz#c4ea1b5b454d7c4b59966db2e06ed7eec5dfd160" From 08a2e4530973b8ac41a23dd9fe55d178a6007a90 Mon Sep 17 00:00:00 2001 From: gvjacob Date: Wed, 18 Jan 2023 17:25:26 -0500 Subject: [PATCH 2/2] chore: reformat all files --- src/components/ChampPlayer.tsx | 3 ++- src/components/Header.tsx | 16 ++++++++-------- src/components/Tile.tsx | 16 ++++++++-------- src/pages/_app.tsx | 2 +- src/pages/_document.tsx | 4 +--- src/pages/index.tsx | 12 ++++++------ 6 files changed, 26 insertions(+), 27 deletions(-) diff --git a/src/components/ChampPlayer.tsx b/src/components/ChampPlayer.tsx index 612ed74..92f86a4 100644 --- a/src/components/ChampPlayer.tsx +++ b/src/components/ChampPlayer.tsx @@ -72,6 +72,7 @@ export default function ChampPlayer({ }); const xCoordinatePercentage = getPositionOffsetPercent(x, widthPercent); + const yCoordinatePercentage = getPositionOffsetPercent(y, heightPercent); return ( @@ -92,7 +93,7 @@ export default function ChampPlayer({

diff --git a/src/components/Header.tsx b/src/components/Header.tsx index bb9965d..ca031a5 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -7,35 +7,35 @@ import GoNoodleLogoLightSVG from "@src/svgs/gonoodle-logo-light.svg"; export default function Header() { return ( -
+
GoNoodle
    -
  • -

    GoNoodle

    +
  • +

    GoNoodle

  • -
  • +
  • SuperNoodle

-
-

+

+

Mrs. Miller's 1st Graders

-
+
Current profile champ is McPufferson diff --git a/src/components/Tile.tsx b/src/components/Tile.tsx index 4f1c9a6..e7d7016 100644 --- a/src/components/Tile.tsx +++ b/src/components/Tile.tsx @@ -16,7 +16,7 @@ function OutlineTile({ return (
@@ -31,8 +31,8 @@ function OutlineTile({ */ function JunctionTile() { return ( - -
+ +
); } @@ -43,12 +43,12 @@ function JunctionTile() { */ function StartTile() { return ( -
+
-

+

Start

@@ -66,7 +66,7 @@ function Path({ className, direction }: PathProps) { return (
{paths.map((direction, i) => ( ))} -
{children}
+
{children}
); } diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index dae191b..afd839c 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -7,7 +7,7 @@ import "@src/styles/globals.css"; export default function App({ Component, pageProps }: AppProps) { return ( <> -
+
diff --git a/src/pages/_document.tsx b/src/pages/_document.tsx index 555ce18..6a45226 100644 --- a/src/pages/_document.tsx +++ b/src/pages/_document.tsx @@ -1,6 +1,4 @@ -import { - Html, Head, Main, NextScript, -} from "next/document"; +import { Html, Head, Main, NextScript } from "next/document"; export default function Document() { return ( diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 56cfa50..b4627a4 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -15,7 +15,7 @@ export interface HomeProps { export default function Home({ world }: HomeProps) { return ( -
+
SuperNoodle @@ -24,22 +24,22 @@ export default function Home({ world }: HomeProps) { -
-

+
+

{world.title}