chore: initialize tuhui repository
This commit is contained in:
275
frontend/src/components/AuthModal.css
Normal file
275
frontend/src/components/AuthModal.css
Normal file
@@ -0,0 +1,275 @@
|
||||
.auth-modal .ant-modal-content {
|
||||
border-radius: 16px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.auth-modal .ant-modal-body {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.auth-modal .ant-modal-close {
|
||||
top: 16px;
|
||||
right: 16px;
|
||||
}
|
||||
|
||||
.close-icon {
|
||||
font-size: 24px;
|
||||
color: #999;
|
||||
line-height: 1;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.close-icon:hover {
|
||||
color: #ff5a5a;
|
||||
}
|
||||
|
||||
.auth-modal-content {
|
||||
padding: 40px 40px;
|
||||
}
|
||||
|
||||
.auth-header {
|
||||
text-align: center;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
|
||||
.auth-title {
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
margin: 0 0 8px;
|
||||
}
|
||||
|
||||
.auth-subtitle {
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.auth-form {
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.auth-input {
|
||||
border-radius: 8px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.auth-input .ant-input {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.auth-input:hover,
|
||||
.auth-input:focus,
|
||||
.auth-input.ant-input-affix-wrapper-focused {
|
||||
border-color: #ff5a5a;
|
||||
box-shadow: 0 0 0 2px rgba(255, 90, 90, 0.1);
|
||||
}
|
||||
|
||||
.input-icon {
|
||||
color: #bbb;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.form-options {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.form-options .ant-checkbox-wrapper {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.form-options .ant-checkbox-checked .ant-checkbox-inner {
|
||||
background-color: #ff5a5a;
|
||||
border-color: #ff5a5a;
|
||||
}
|
||||
|
||||
.forgot-link {
|
||||
color: #ff5a5a;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.forgot-link:hover {
|
||||
color: #ff7070;
|
||||
}
|
||||
|
||||
.auth-submit-btn {
|
||||
height: 48px;
|
||||
border-radius: 24px;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
background: linear-gradient(135deg, #ff5a5a 0%, #ff8080 100%);
|
||||
border: none;
|
||||
box-shadow: 0 4px 12px rgba(255, 90, 90, 0.3);
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.auth-submit-btn:hover {
|
||||
background: linear-gradient(135deg, #ff7070 0%, #ff9090 100%) !important;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 16px rgba(255, 90, 90, 0.4);
|
||||
}
|
||||
|
||||
.auth-divider {
|
||||
margin: 24px 0;
|
||||
}
|
||||
|
||||
.auth-divider .ant-divider-inner-text {
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.social-login {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 24px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.social-btn {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 1px solid #e8e8e8;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.social-btn .anticon {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.social-btn.wechat {
|
||||
color: #07c160;
|
||||
}
|
||||
|
||||
.social-btn.wechat:hover {
|
||||
background: #07c160;
|
||||
border-color: #07c160;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.social-btn.qq {
|
||||
color: #12b7f5;
|
||||
}
|
||||
|
||||
.social-btn.qq:hover {
|
||||
background: #12b7f5;
|
||||
border-color: #12b7f5;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.social-btn.weibo {
|
||||
color: #e6162d;
|
||||
}
|
||||
|
||||
.social-btn.weibo:hover {
|
||||
background: #e6162d;
|
||||
border-color: #e6162d;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.auth-footer {
|
||||
text-align: center;
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.switch-link {
|
||||
color: #ff5a5a;
|
||||
font-weight: 500;
|
||||
margin-left: 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.switch-link:hover {
|
||||
color: #ff7070;
|
||||
}
|
||||
|
||||
/* Verify Code */
|
||||
.verify-code-wrapper {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.verify-input {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.verify-btn {
|
||||
height: 48px;
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
white-space: nowrap;
|
||||
padding: 0 16px;
|
||||
border-color: #ff5a5a;
|
||||
color: #ff5a5a;
|
||||
}
|
||||
|
||||
.verify-btn:hover:not(:disabled) {
|
||||
border-color: #ff7070 !important;
|
||||
color: #ff7070 !important;
|
||||
}
|
||||
|
||||
.verify-btn:disabled {
|
||||
color: #999;
|
||||
border-color: #d9d9d9;
|
||||
}
|
||||
|
||||
/* Agreement */
|
||||
.agreement-checkbox {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.agreement-checkbox a {
|
||||
color: #ff5a5a;
|
||||
}
|
||||
|
||||
.agreement-checkbox a:hover {
|
||||
color: #ff7070;
|
||||
}
|
||||
|
||||
.agreement-checkbox .ant-checkbox-checked .ant-checkbox-inner {
|
||||
background-color: #ff5a5a;
|
||||
border-color: #ff5a5a;
|
||||
}
|
||||
|
||||
/* Animation */
|
||||
.auth-modal .ant-modal {
|
||||
animation: modalFadeIn 0.3s ease;
|
||||
}
|
||||
|
||||
@keyframes modalFadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale(0.9);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 480px) {
|
||||
.auth-modal-content {
|
||||
padding: 32px 24px;
|
||||
}
|
||||
|
||||
.auth-title {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.social-login {
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.social-btn {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user