From f2be89fc737a09f1b6a3778c5dd0026cf5438fa3 Mon Sep 17 00:00:00 2001 From: Lennon Puldagrealy Date: Sun, 18 Dec 2022 11:30:23 -0800 Subject: [PATCH] Add Prettier configuration. Run Prettier --- website/next.config.js | 4 +- website/postcss.config.js | 2 +- .../images/logos/CHAT-THOUGHT-CONVO.svg | 2 +- .../public/images/logos/CHAT-THOUGHT-LOGO.svg | 2 +- website/src/.prettierignore | 1 - website/src/.prettierrc.json | 13 +- website/src/components/AuthLayout.tsx | 16 +-- website/src/components/CallToAction.tsx | 27 +--- website/src/components/CircleBackground.tsx | 31 +--- website/src/components/Container.tsx | 7 +- website/src/components/Faq.tsx | 15 +- website/src/components/Fields.tsx | 5 +- website/src/components/Header.tsx | 26 +--- website/src/components/Hero.tsx | 43 ++---- website/src/pages/_app.tsx | 5 +- website/src/pages/_document.tsx | 6 +- website/src/pages/grading/grade-output.tsx | 43 ++---- website/src/pages/login.jsx | 9 +- website/src/pages/new_task.js | 18 +-- website/src/styles/globals.css | 26 ++-- website/tailwind.config.js | 132 +++++++++--------- website/tsconfig.json | 16 +-- 22 files changed, 150 insertions(+), 299 deletions(-) diff --git a/website/next.config.js b/website/next.config.js index d04423f6..c1c1519d 100644 --- a/website/next.config.js +++ b/website/next.config.js @@ -4,6 +4,6 @@ const nextConfig = { experimental: { scrollRestoration: true, }, -} +}; -module.exports = nextConfig +module.exports = nextConfig; diff --git a/website/postcss.config.js b/website/postcss.config.js index 33ad091d..12a703d9 100644 --- a/website/postcss.config.js +++ b/website/postcss.config.js @@ -3,4 +3,4 @@ module.exports = { tailwindcss: {}, autoprefixer: {}, }, -} +}; diff --git a/website/public/images/logos/CHAT-THOUGHT-CONVO.svg b/website/public/images/logos/CHAT-THOUGHT-CONVO.svg index 758899d8..3c14ab57 100644 --- a/website/public/images/logos/CHAT-THOUGHT-CONVO.svg +++ b/website/public/images/logos/CHAT-THOUGHT-CONVO.svg @@ -45,4 +45,4 @@ - \ No newline at end of file + diff --git a/website/public/images/logos/CHAT-THOUGHT-LOGO.svg b/website/public/images/logos/CHAT-THOUGHT-LOGO.svg index dc0b32df..7657e0a4 100644 --- a/website/public/images/logos/CHAT-THOUGHT-LOGO.svg +++ b/website/public/images/logos/CHAT-THOUGHT-LOGO.svg @@ -10,4 +10,4 @@ - \ No newline at end of file + diff --git a/website/src/.prettierignore b/website/src/.prettierignore index 8b137891..e69de29b 100644 --- a/website/src/.prettierignore +++ b/website/src/.prettierignore @@ -1 +0,0 @@ - diff --git a/website/src/.prettierrc.json b/website/src/.prettierrc.json index 0967ef42..3665c446 100644 --- a/website/src/.prettierrc.json +++ b/website/src/.prettierrc.json @@ -1 +1,12 @@ -{} +{ + "tabWidth": 2, + "printWidth": 120, + "overrides": [ + { + "files": "*.css", + "options": { + "tabWidth": 4 + } + } + ] +} diff --git a/website/src/components/AuthLayout.tsx b/website/src/components/AuthLayout.tsx index 7b4e2e4d..428ce6ea 100644 --- a/website/src/components/AuthLayout.tsx +++ b/website/src/components/AuthLayout.tsx @@ -2,13 +2,7 @@ import Link from "next/link"; function BackgroundIllustration(props) { return ( -

- {title} -

- {subtitle && ( -

{subtitle}

- )} +

{title}

+ {subtitle &&

{subtitle}

}
{children} diff --git a/website/src/components/CallToAction.tsx b/website/src/components/CallToAction.tsx index e0867bd2..61f11540 100644 --- a/website/src/components/CallToAction.tsx +++ b/website/src/components/CallToAction.tsx @@ -3,23 +3,17 @@ import { Container } from "./Container"; export function CallToAction() { return ( -
+
-

- Join Us -

+

Join Us

- All open source projects begin with people like you. Open source is - the belief that if we collaborate we can together gift our - knoweledge and technology to the world for the benefit of humanity. - Are you in? Find us here: + All open source projects begin with people like you. Open source is the belief that if we collaborate we can + together gift our knoweledge and technology to the world for the benefit of humanity. Are you in? Find us + here:

@@ -27,11 +21,7 @@ export function CallToAction() { type="button" className="mb-2 ml-6 flex items-center rounded-md border border-transparent bg-blue-600 px-6 py-3 text-base font-medium text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2" > - + - +