mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
feat: updates
This commit is contained in:
parent
ebebf2a733
commit
a1b0bcf4d3
68 changed files with 4776 additions and 5559 deletions
12
packages/web/components/Icon/Icon.tsx
Normal file
12
packages/web/components/Icon/Icon.tsx
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { IconNames } from './iconNamesType'
|
||||
|
||||
const Icon = ({ name, className }: { name: IconNames; className?: string }) => {
|
||||
const symbolId = `#icon-${name}`
|
||||
return (
|
||||
<svg aria-hidden='true' className={className}>
|
||||
<use href={symbolId} fill='currentColor' />
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export default Icon
|
||||
1
packages/web/components/Icon/iconNamesType.ts
Normal file
1
packages/web/components/Icon/iconNamesType.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export type IconNames = 'back' | 'discovery' | 'dislike' | 'dj' | 'email' | 'explicit' | 'explore' | 'eye-off' | 'eye' | 'fm' | 'forward' | 'heart-outline' | 'heart' | 'hide-list' | 'lock' | 'lyrics' | 'more' | 'music-note' | 'my' | 'next' | 'pause' | 'phone' | 'play-fill' | 'play' | 'player-handler' | 'playlist' | 'plus' | 'previous' | 'qrcode' | 'repeat-1' | 'repeat' | 'search' | 'settings' | 'shuffle' | 'user' | 'volume-half' | 'volume-mute' | 'volume' | 'windows-close' | 'windows-maximize' | 'windows-minimize' | 'windows-un-maximize' | 'x'
|
||||
2
packages/web/components/Icon/index.ts
Normal file
2
packages/web/components/Icon/index.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
import Icon from './Icon'
|
||||
export default Icon
|
||||
Loading…
Add table
Add a link
Reference in a new issue