0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

style(ui): fix logto signature hit area (#3472)

This commit is contained in:
simeng-li 2023-03-17 21:43:52 +08:00 committed by GitHub
parent 1c455b8256
commit 3fdac77210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,4 @@
import { Theme } from '@logto/schemas';
import classNames from 'classnames';
import { useContext } from 'react';
import LogtoLogtoDark from '@/assets/icons/logto-logo-dark.svg';
@ -24,17 +23,19 @@ const LogtoSignature = ({ className }: Props) => {
const LogtoLogo = theme === Theme.Light ? LogtoLogoLight : LogtoLogtoDark;
return (
<a
className={classNames(styles.signature, className)}
aria-label="Powered By Logto"
href={logtoUrl.toString()}
target="_blank"
rel="noopener"
>
<span className={styles.text}>Powered by</span>
<LogtoLogoShadow className={styles.staticIcon} />
<LogtoLogo className={styles.highlightIcon} />
</a>
<div className={className}>
<a
className={styles.signature}
aria-label="Powered By Logto"
href={logtoUrl.toString()}
target="_blank"
rel="noopener"
>
<span className={styles.text}>Powered by</span>
<LogtoLogoShadow className={styles.staticIcon} />
<LogtoLogo className={styles.highlightIcon} />
</a>
</div>
);
};