|
|
@@ -303,7 +303,7 @@ export const LoginVerificationCodePage = () => {
|
|
|
className="relative overflow-visible"
|
|
|
style={{
|
|
|
height: px2vmin(56),
|
|
|
- background: 'linear-gradient(180deg, #26232F 0%, #18151F 100%)',
|
|
|
+ background: 'rgba(0,0,0,0.1)',
|
|
|
borderTopRightRadius: '12PX',
|
|
|
borderBottomRightRadius: '2PX',
|
|
|
borderTopLeftRadius: '12PX',
|
|
|
@@ -327,17 +327,17 @@ export const LoginVerificationCodePage = () => {
|
|
|
onFocus={() => setIsPhoneFocused(true)}
|
|
|
onBlur={() => setIsPhoneFocused(false)}
|
|
|
/>
|
|
|
- {phoneNumber && (
|
|
|
- <button
|
|
|
- className="absolute top-1/2 -translate-y-1/2 flex items-center justify-center transition-opacity hover:opacity-70 touch-manipulation"
|
|
|
- style={{
|
|
|
- right: px2vmin(12),
|
|
|
- width: px2vmin(20),
|
|
|
- height: px2vmin(20),
|
|
|
- }}
|
|
|
- onClick={() => setPhoneNumber('')}
|
|
|
- aria-label="清除"
|
|
|
- >
|
|
|
+ <button
|
|
|
+ className="absolute top-1/2 -translate-y-1/2 flex items-center justify-center transition-opacity touch-manipulation"
|
|
|
+ style={{
|
|
|
+ right: px2vmin(12),
|
|
|
+ width: px2vmin(20),
|
|
|
+ height: px2vmin(20),
|
|
|
+ opacity: isPhoneFocused && phoneNumber ? 1 : 0.6,
|
|
|
+ }}
|
|
|
+ onClick={() => setPhoneNumber('')}
|
|
|
+ aria-label="清除"
|
|
|
+ >
|
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none">
|
|
|
<circle cx="12" cy="12" r="11" stroke="rgba(191, 157, 248, 1)" strokeWidth="2.5" fill="none" />
|
|
|
<path
|
|
|
@@ -347,8 +347,7 @@ export const LoginVerificationCodePage = () => {
|
|
|
strokeLinecap="round"
|
|
|
/>
|
|
|
</svg>
|
|
|
- </button>
|
|
|
- )}
|
|
|
+ </button>
|
|
|
</div>
|
|
|
<div
|
|
|
className="w-full transition-opacity duration-300"
|
|
|
@@ -369,7 +368,7 @@ export const LoginVerificationCodePage = () => {
|
|
|
className="relative overflow-visible"
|
|
|
style={{
|
|
|
height: px2vmin(56),
|
|
|
- background: 'linear-gradient(180deg, #26232F 0%, #18151F 100%)',
|
|
|
+ background: 'rgba(0,0,0,0.1)',
|
|
|
borderTopLeftRadius: '12PX',
|
|
|
borderTopRightRadius: '12PX',
|
|
|
borderBottomLeftRadius: '2PX',
|
|
|
@@ -393,17 +392,17 @@ export const LoginVerificationCodePage = () => {
|
|
|
onFocus={() => setIsEmailFocused(true)}
|
|
|
onBlur={() => setIsEmailFocused(false)}
|
|
|
/>
|
|
|
- {email && (
|
|
|
- <button
|
|
|
- className="absolute top-1/2 -translate-y-1/2 flex items-center justify-center transition-opacity hover:opacity-70 touch-manipulation"
|
|
|
- style={{
|
|
|
- right: px2vw(12),
|
|
|
- width: px2vw(20),
|
|
|
- height: px2vh(20),
|
|
|
- }}
|
|
|
- onClick={() => setEmail('')}
|
|
|
- aria-label="清除"
|
|
|
- >
|
|
|
+ <button
|
|
|
+ className="absolute top-1/2 -translate-y-1/2 flex items-center justify-center transition-opacity touch-manipulation"
|
|
|
+ style={{
|
|
|
+ right: px2vw(12),
|
|
|
+ width: px2vw(20),
|
|
|
+ height: px2vh(20),
|
|
|
+ opacity: isEmailFocused && email ? 1 : 0.6,
|
|
|
+ }}
|
|
|
+ onClick={() => setEmail('')}
|
|
|
+ aria-label="清除"
|
|
|
+ >
|
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none">
|
|
|
<circle cx="12" cy="12" r="11" stroke="rgba(191, 157, 248, 1)" strokeWidth="2.5" fill="none" />
|
|
|
<path
|
|
|
@@ -413,8 +412,7 @@ export const LoginVerificationCodePage = () => {
|
|
|
strokeLinecap="round"
|
|
|
/>
|
|
|
</svg>
|
|
|
- </button>
|
|
|
- )}
|
|
|
+ </button>
|
|
|
</div>
|
|
|
<div
|
|
|
className="w-full transition-opacity duration-300"
|