From 2eaac5ae315d98fb43f779fe4daedaeef6eef220 Mon Sep 17 00:00:00 2001 From: Timothy Lin Date: Mon, 31 Jan 2022 23:58:10 +0800 Subject: [PATCH] prettier tailwind --- components/Card.js | 10 +++++----- components/Footer.js | 6 +++--- components/LayoutWrapper.js | 4 ++-- components/MobileNav.js | 8 ++++---- components/NewsletterForm.js | 12 ++++++------ components/Pagination.js | 2 +- components/Pre.js | 4 ++-- components/ScrollTopAndComment.js | 10 +++++----- components/SectionContainer.js | 2 +- components/TOCInline.js | 2 +- components/ThemeSwitch.js | 2 +- components/comments/Utterances.js | 2 +- components/social-icons/index.js | 2 +- css/prism.css | 8 ++++---- layouts/AuthorLayout.js | 10 +++++----- layouts/ListLayout.js | 10 +++++----- layouts/PostLayout.js | 22 +++++++++++----------- layouts/PostSimple.js | 8 ++++---- lib/utils/files.js | 5 ++++- package-lock.json | 12 +++++++++--- package.json | 3 ++- pages/404.js | 8 ++++---- pages/_document.js | 2 +- pages/index.js | 6 +++--- pages/projects.js | 4 ++-- pages/tags.js | 10 +++++----- 26 files changed, 92 insertions(+), 82 deletions(-) diff --git a/components/Card.js b/components/Card.js index 61e296a..143681e 100644 --- a/components/Card.js +++ b/components/Card.js @@ -2,11 +2,11 @@ import Image from './Image' import Link from './Link' const Card = ({ title, description, imgSrc, href }) => ( -
+
{imgSrc && (href ? ( @@ -14,7 +14,7 @@ const Card = ({ title, description, imgSrc, href }) => ( {title} @@ -23,7 +23,7 @@ const Card = ({ title, description, imgSrc, href }) => ( {title} @@ -38,7 +38,7 @@ const Card = ({ title, description, imgSrc, href }) => ( title )} -

{description}

+

{description}

{href && ( -
-
+
+
@@ -14,7 +14,7 @@ export default function Footer() {
-
+
{siteMetadata.author}
{` • `}
{`© ${new Date().getFullYear()}`}
diff --git a/components/LayoutWrapper.js b/components/LayoutWrapper.js index eea70fc..2cdc21f 100644 --- a/components/LayoutWrapper.js +++ b/components/LayoutWrapper.js @@ -10,7 +10,7 @@ import ThemeSwitch from './ThemeSwitch' const LayoutWrapper = ({ children }) => { return ( -
+
@@ -34,7 +34,7 @@ const LayoutWrapper = ({ children }) => { {link.title} diff --git a/components/MobileNav.js b/components/MobileNav.js index 4ddd784..e1c3863 100644 --- a/components/MobileNav.js +++ b/components/MobileNav.js @@ -21,7 +21,7 @@ const MobileNav = () => {
-
-
+
Authors
-
    +
      {authorDetails.map((author) => (
    • {author.avatar && ( @@ -62,10 +62,10 @@ export default function PostLayout({ frontMatter, authorDetails, next, prev, chi width="38px" height="38px" alt="avatar" - className="w-10 h-10 rounded-full" + className="h-10 w-10 rounded-full" /> )} -
      +
      Name
      {author.name}
      Twitter
      @@ -85,8 +85,8 @@ export default function PostLayout({ frontMatter, authorDetails, next, prev, chi
-
-
{children}
+
+
{children}
{'Discuss on Twitter'} @@ -97,10 +97,10 @@ export default function PostLayout({ frontMatter, authorDetails, next, prev, chi