2023-05-22 17:38:31 -07:00
|
|
|
import { ComponentPropsWithoutRef } from 'react';
|
|
|
|
|
import { TextTitle } from '/@/renderer/components/text-title';
|
2023-05-28 14:31:49 -07:00
|
|
|
import styled from 'styled-components';
|
2023-05-22 17:38:31 -07:00
|
|
|
|
|
|
|
|
interface LyricLineProps extends ComponentPropsWithoutRef<'div'> {
|
2023-05-28 14:31:49 -07:00
|
|
|
text: string;
|
2023-05-22 17:38:31 -07:00
|
|
|
}
|
|
|
|
|
|
2023-05-28 14:31:49 -07:00
|
|
|
const StyledText = styled(TextTitle)`
|
|
|
|
|
font-size: 2rem;
|
|
|
|
|
font-weight: 100;
|
|
|
|
|
line-height: 3.5rem;
|
|
|
|
|
|
|
|
|
|
&.active,
|
|
|
|
|
&.credit {
|
|
|
|
|
font-size: 2.5rem;
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
line-height: 4rem;
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const LyricLine = ({ text, ...props }: LyricLineProps) => {
|
|
|
|
|
return <StyledText {...props}>{text}</StyledText>;
|
2023-05-22 17:38:31 -07:00
|
|
|
};
|