Add tailwind css support

This commit is contained in:
DefectingCat
2023-03-20 16:25:33 +08:00
parent b9f7d0da4a
commit b6fbc66a65
3 changed files with 3 additions and 4 deletions

View File

@ -16,7 +16,7 @@ export const metadata = {
export default function Page() {
return (
<main className="h-[calc(100vh-142px)] flex justify-center items-center text-xl">
<div className="z-0 flex flex-col w-full h-full max-w-4xl px-4 py-32 text-2xl">
<div className="max-w-4xl flex flex-col w-full h-full px-4 py-32 text-2xl">
<h1 className="flex pb-4 text-5xl">
<span className={clsx('font-Aleo font-semibold', styles.gradient)}>
Hi there

View File

@ -2,12 +2,10 @@
import { DocSearch } from '@docsearch/react';
import clsx from 'clsx';
import dynamic from 'next/dynamic';
import Link from 'next/link';
import { memo, useEffect, useState } from 'react';
import { FiMenu } from 'react-icons/fi';
const DarkModeBtn = dynamic(() => import('components/dark-mode-btn'));
import DarkModeBtn from 'components/dark-mode-btn';
const txtMenu = [
{

View File

@ -1,6 +1,7 @@
module.exports = {
darkMode: 'class',
content: [
'./app/**/*.{js,ts,jsx,tsx,md,mdx}',
'./pages/**/*.{js,ts,jsx,tsx,md,mdx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./layouts/**/*.{js,ts,jsx,tsx}',