Skip to content

Commit 94874e5

Browse files
committed
feat: add host domain name info
1 parent a72c9d8 commit 94874e5

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

src/constants/github.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export const REPOSITORY = 'https://github.com/uniquemo/react-netease-music'
2+
export const USER_PROFILE = 'https://github.com/uniquemo'

src/pages/Discovery/Recommendation/index.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import Songlist from './Songlist'
44
import LatestMusic from './LatestMusic'
55
import MV from './MV'
66

7+
import { USER_PROFILE } from 'constants/github'
8+
79
import styles from './style.module.css'
810

911
const Recommendation = () => {
@@ -22,6 +24,17 @@ const Recommendation = () => {
2224
<div className={styles.block}>
2325
<MV />
2426
</div>
27+
28+
<div className={styles.footer}>
29+
{new Date().getFullYear()}{' '}
30+
<a href={USER_PROFILE} target='_blank' rel='noreferrer'>
31+
@uniquemo
32+
</a>{' '}
33+
备案号{' '}
34+
<a href='https://beian.miit.gov.cn/' target='_blank' rel='noreferrer'>
35+
粤ICP备2021121971号-1
36+
</a>
37+
</div>
2538
</div>
2639
)
2740
}

src/pages/Discovery/Recommendation/style.module.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@
55
.block {
66
margin-bottom: 50px;
77
}
8+
9+
.footer {
10+
font-size: 12px;
11+
text-align: center;
12+
}

0 commit comments

Comments
 (0)