Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use prettier-plugin-tailwindcss #20

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

16 changes: 16 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// This source file is part of the Stanford Biodesign Digital Health Next.js Template open-source project
//
// SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//

const config = {
plugins: [require.resolve('prettier-plugin-tailwindcss')],
semi: false,
singleQuote: true,
experimentalTernaries: true,
}

module.exports = config
6 changes: 0 additions & 6 deletions .prettierrc.license

This file was deleted.

4 changes: 2 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ export default function Home() {
const greeting = generateGreeting()

return (
<div className="flex justify-center items-center min-h-screen">
<div className="flex min-h-screen items-center justify-center">
<div className="flex flex-col items-center">
<Image
src={`${process.env.basePath || ''}/stanfordbiodesign.png`}
alt="Stanford Biodesign Logo"
width={634}
height={235}
/>
<h1 className="text-3xl text-center mt-4">{`${greeting.message} to the ${greeting.project}`}</h1>
<h1 className="mt-4 text-center text-3xl">{`${greeting.message} to the ${greeting.project}`}</h1>
</div>
</div>
)
Expand Down
Loading
Loading