Browse Source

📝 docs(styles): import page-specific CSS files

- 为explore页面添加index.css样式文件引入
- 为login页面添加index.css样式文件引入
- 为profile页面添加index.css样式文件引入
- 为register页面添加index.css样式文件引入
yourname 4 months ago
parent
commit
2ec453f9b3

+ 1 - 0
mini/src/pages/explore/index.tsx

@@ -2,6 +2,7 @@ import React from 'react'
 import { View, Text } from '@tarojs/components'
 import { TabBarLayout } from '@/layouts/tab-bar-layout'
 import { Navbar } from '@/components/ui/navbar'
+import './index.css'
 
 const ExplorePage: React.FC = () => {
   return (

+ 1 - 0
mini/src/pages/login/index.tsx

@@ -6,6 +6,7 @@ import { cn } from '@/utils/cn'
 import { Button } from '@/components/ui/button'
 import { Input } from '@/components/ui/input'
 import Navbar from '@/components/ui/navbar'
+import './index.css'
 
 export default function Login() {
   const [username, setUsername] = useState('')

+ 1 - 0
mini/src/pages/profile/index.tsx

@@ -7,6 +7,7 @@ import { cn } from '@/utils/cn'
 import { Button } from '@/components/ui/button'
 import { Image } from '@/components/ui/image'
 import { Navbar } from '@/components/ui/navbar'
+import './index.css'
 
 const ProfilePage: React.FC = () => {
   const [userProfile, setUserProfile] = useState<UserProfile | null>(null)

+ 1 - 0
mini/src/pages/register/index.tsx

@@ -6,6 +6,7 @@ import { cn } from '@/utils/cn'
 import { Button } from '@/components/ui/button'
 import { Input } from '@/components/ui/input'
 import Navbar from '@/components/ui/navbar'
+import './index.css'
 
 export default function Register() {
   const [username, setUsername] = useState('')