From 982169d4b0f180615a2ca8f9ac47c5e4fbf7b08d Mon Sep 17 00:00:00 2001 From: Jakub Knetl Date: Wed, 27 Dec 2023 12:52:00 +0100 Subject: [PATCH] Chapter 2 - add css module --- app/page.tsx | 2 ++ app/ui/home.module.css | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 app/ui/home.module.css diff --git a/app/page.tsx b/app/page.tsx index e0fc546..8239440 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,3 +1,4 @@ +import styles from '@/app/ui/home.module.css'; import AcmeLogo from '@/app/ui/acme-logo'; import { ArrowRightIcon } from '@heroicons/react/24/outline'; import Link from 'next/link'; @@ -11,6 +12,7 @@ export default function Page() {
+

Welcome to Acme. This is the example for the{' '} diff --git a/app/ui/home.module.css b/app/ui/home.module.css new file mode 100644 index 0000000..41d83ec --- /dev/null +++ b/app/ui/home.module.css @@ -0,0 +1,7 @@ +.shape { + height: 0; + width: 0; + border-bottom: 30px solid black; + border-left: 20px solid transparent; + border-right: 20px solid transparent; +} \ No newline at end of file