Skip to content

Commit af67c96

Browse files
committed
refactor: update logo and favicon references, and modify page title
1 parent 05cebb9 commit af67c96

File tree

11 files changed

+21
-18
lines changed

11 files changed

+21
-18
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
5+
<link rel="icon" type="image/svg+xml" href="/public/logo.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>React-Template</title>
7+
<title>Lemon-Template-React</title>
88
</head>
99
<body>
1010
<div id="root"></div>

public/logo.png

8.03 KB
Loading

public/logo.svg

Lines changed: 4 additions & 0 deletions
Loading

public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/assets/icons/logo.svg

Lines changed: 4 additions & 0 deletions
Loading

src/assets/icons/react.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/assets/images/logo.png

8.03 KB
Loading

src/views/Home/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useEffect, useRef, useState } from 'react';
22
import { CSSTransition, TransitionGroup } from 'react-transition-group';
33
import IconifyIcon from '@/components/Icon/IconifyIcon';
4+
import SvgIcon from '@/components/Icon/SvgIcon';
45
import './index.less';
56

67
const Home = () => {
@@ -50,7 +51,9 @@ const Home = () => {
5051
return (
5152
<div className="box-border wh-full flex-center px-12">
5253
<div className="wh-full">
53-
<div className="mx-auto mb-40 mt-100 h-100 w-100">logo</div>
54+
<div className="mx-auto mb-40 mt-100 h-100 w-100">
55+
<SvgIcon icon="logo" className="wh-full" />
56+
</div>
5457
<div className="my-10 box-border w-full rounded-12 bg-[var(--color-block-background)] px-20 py-12 text-18">
5558
<a
5659
className="flex-center leading-35"

src/views/Login/forgotPassword.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { Button, Form, Image, Input } from 'react-vant';
33
import { validPhone } from '@/utils/validate';
44
import PasswordInput from './components/PasswordInput';
55

6+
const src = '/src/assets/images/logo.png';
7+
68
const ForgotPassword = () => {
79
// 表单数据
810
const [form] = Form.useForm();
@@ -13,12 +15,7 @@ const ForgotPassword = () => {
1315
return (
1416
<div className="box-border wh-full flex-y-center flex-col p-20">
1517
<div className="mb-30 mt-20">
16-
<Image
17-
className="h-100 w-100"
18-
round
19-
fit="cover"
20-
src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"
21-
/>
18+
<Image className="h-100 w-100" round fit="cover" src={src} />
2219
</div>
2320

2421
<Form

src/views/Login/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useUserStore } from '@/store/user';
66
import type { loginDataType } from '@/api/System/user';
77
import PasswordInput from './components/PasswordInput';
88

9-
const src = 'https://img.yzcdn.cn/vant/cat.jpeg';
9+
const src = '/src/assets/images/logo.png';
1010

1111
const Login = () => {
1212
// 表单数据

src/views/Login/register.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { useState } from 'react';
22
import { Button, Checkbox, Form, Image, Input } from 'react-vant';
33
import PasswordInput from './components/PasswordInput';
44

5+
const src = '/src/assets/images/logo.png';
6+
57
const Register = () => {
68
// 表单数据
79
const [form] = Form.useForm();
@@ -14,12 +16,7 @@ const Register = () => {
1416
return (
1517
<div className="box-border wh-full flex-y-center flex-col p-20">
1618
<div className="mb-30 mt-20">
17-
<Image
18-
className="h-100 w-100"
19-
round
20-
fit="cover"
21-
src="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg"
22-
/>
19+
<Image className="h-100 w-100" round fit="cover" src={src} />
2320
</div>
2421
<Form
2522
form={form}

0 commit comments

Comments
 (0)