Chapter 2 - add css module
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
import styles from '@/app/ui/home.module.css';
|
||||||
import AcmeLogo from '@/app/ui/acme-logo';
|
import AcmeLogo from '@/app/ui/acme-logo';
|
||||||
import { ArrowRightIcon } from '@heroicons/react/24/outline';
|
import { ArrowRightIcon } from '@heroicons/react/24/outline';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
@@ -11,6 +12,7 @@ export default function Page() {
|
|||||||
<div className="mt-4 flex grow flex-col gap-4 md:flex-row">
|
<div className="mt-4 flex grow flex-col gap-4 md:flex-row">
|
||||||
<div className="flex flex-col justify-center gap-6 rounded-lg bg-gray-50 px-6 py-10 md:w-2/5 md:px-20">
|
<div className="flex flex-col justify-center gap-6 rounded-lg bg-gray-50 px-6 py-10 md:w-2/5 md:px-20">
|
||||||
<div className="h-0 w-0 border-b-[30px] border-l-[20px] border-r-[20px] border-b-black border-l-transparent border-r-transparent"/>
|
<div className="h-0 w-0 border-b-[30px] border-l-[20px] border-r-[20px] border-b-black border-l-transparent border-r-transparent"/>
|
||||||
|
<div className={styles.shape}></div>
|
||||||
<p className={`text-xl text-gray-800 md:text-3xl md:leading-normal`}>
|
<p className={`text-xl text-gray-800 md:text-3xl md:leading-normal`}>
|
||||||
<strong>Welcome to Acme.</strong> This is the example for the{' '}
|
<strong>Welcome to Acme.</strong> This is the example for the{' '}
|
||||||
<a href="https://nextjs.org/learn/" className="text-blue-500">
|
<a href="https://nextjs.org/learn/" className="text-blue-500">
|
||||||
|
|||||||
7
app/ui/home.module.css
Normal file
7
app/ui/home.module.css
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
.shape {
|
||||||
|
height: 0;
|
||||||
|
width: 0;
|
||||||
|
border-bottom: 30px solid black;
|
||||||
|
border-left: 20px solid transparent;
|
||||||
|
border-right: 20px solid transparent;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user