parent
b71f20ccab
commit
4789ddf364
@ -1,7 +1,7 @@
|
||||
export default function Loading() {
|
||||
return (
|
||||
<div className="w-[100vw] h-[100vh] flex justify-center items-center">
|
||||
<div>loading...</div>
|
||||
<div>正在加载……</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -0,0 +1,25 @@
|
||||
/** 歌词 */
|
||||
interface Props {
|
||||
lrc: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
import styles from './index.module.css';
|
||||
|
||||
export default function Lrc({ lrc, className }: Props) {
|
||||
const lrcList = lrc.split('\n');
|
||||
const normalClassName = 'text-[14px] leading-[36.4px] text-[rgba(0,0,0,0.7)]';
|
||||
const currentClassName = 'text-[17px] leading-[44.2px] text-[rgba(0,0,0,0.95)]';
|
||||
|
||||
return (
|
||||
<div className={`overflow-y-auto ${styles.lrc} ${className}`}>
|
||||
<div className="h-auto">
|
||||
{lrcList.map((item, index) => (
|
||||
<p key={index} className={true ? normalClassName : currentClassName}>
|
||||
{item}
|
||||
</p>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
Loading…
Reference in new issue