diff --git a/README.md b/README.md index e00cf82..7feceab 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This is a component from the [Inviqa](https://inviqa.com) website that I recreat After attending the [Pro Tailwind theming workshop](), I moved it into a Next.js application and refactored it to use CSS custom properties, and moved the button and corner styles into a custom plugin. -The `flex-basis` styles have also been moved into a separate plugin. +The `flex-basis` styles have also been moved into a separate plugin, and I've added dark mode support which wasn't in the original version. ## Themes diff --git a/components/ImageAndText.js b/components/ImageAndText.js index 24390c9..1542190 100644 --- a/components/ImageAndText.js +++ b/components/ImageAndText.js @@ -40,8 +40,8 @@ export default function ImageAndText({ -
-
+
+

{title}

{children}

diff --git a/pages/index.js b/pages/index.js index 577bdd5..3e916af 100644 --- a/pages/index.js +++ b/pages/index.js @@ -3,7 +3,7 @@ import ImageAndText from "../components/ImageAndText"; export default function Home() { return (

-
+