refactor(login): page styling
All checks were successful
container-scan / Container Scan (pull_request) Successful in 1m52s
docker-build / docker (pull_request) Successful in 5m26s

This commit is contained in:
Dominik 2025-04-19 23:11:11 +02:00 committed by Dominik
parent d9705b8dfb
commit ec359f1eff
8 changed files with 66 additions and 43 deletions

View file

@ -8,17 +8,22 @@ export default function Button({
children,
mode = 'primary',
icon,
width,
}: {
type?: 'button' | 'submit' | 'reset';
children?: React.ReactNode;
mode?: 'primary' | 'warning' | 'success' | 'danger';
icon?: IconProp;
width?: number;
}) {
if (!icon) {
return (
<button
className={style.button + ' ' + style['style_' + mode]}
type={type}
style={{
width: width ? `${width}px` : '100%',
}}
>
<span>{children}</span>
</button>
@ -30,6 +35,9 @@ export default function Button({
style.button + ' ' + style['style_' + mode] + ' ' + style['icon']
}
type={type}
style={{
width: width ? `${width}px` : '100%',
}}
>
<FontAwesomeIcon icon={icon} height={25} />
<span>{children}</span>