Skip to content

Commit

Permalink
style(login): 登录页添加版权信息,样式调整
Browse files Browse the repository at this point in the history
  • Loading branch information
baiwumm committed Jan 15, 2025
1 parent 6da9d92 commit f9322e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/app/login/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import { useMount, useUnmount } from 'ahooks';

import GlobalFooter from '@/components/GlobalFooter'; // 底部版权
import LangSwitch from '@/components/LangSwitch';
import ThemeModeButton from '@/components/ThemeModeButton';
import { useLayoutStore } from '@/store/layoutStore';
Expand All @@ -22,6 +23,9 @@ export default function LoginLayout({ children }: { children: React.ReactNode })
<ThemeModeButton />
<LangSwitch />
</div>
<div className="absolute bottom-0 w-full">
<GlobalFooter />
</div>
</div>
);
}
7 changes: 2 additions & 5 deletions src/app/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: 白雾茫茫丶<baiwumm.com>
* @Date: 2025-01-03 15:45:52
* @LastEditors: 白雾茫茫丶<baiwumm.com>
* @LastEditTime: 2025-01-07 11:08:01
* @LastEditTime: 2025-01-15 16:28:44
* @Description: 登录页
*/
import { Button, Card, CardBody, CardHeader, Divider, User } from '@nextui-org/react';
Expand All @@ -24,7 +24,7 @@ export default async function Login() {
/>
</CardHeader>
<Divider />
<CardBody>
<CardBody className="py-6">
<div className="grid grid-cols-3 gap-4">
<form
action={async () => {
Expand All @@ -38,7 +38,6 @@ export default async function Login() {
variant="ghost"
startContent={<RiGithubFill />}
className="border w-full"
size="sm"
>
Github
</Button>
Expand All @@ -55,7 +54,6 @@ export default async function Login() {
variant="ghost"
startContent={<GiteeFill />}
className="border w-full"
size="sm"
>
Gitee
</Button>
Expand All @@ -72,7 +70,6 @@ export default async function Login() {
variant="ghost"
startContent={<RiGoogleFill />}
className="border w-full"
size="sm"
>
Google
</Button>
Expand Down

0 comments on commit f9322e1

Please sign in to comment.