modernizing frontend
This commit is contained in:
+221
-6
@@ -30,12 +30,13 @@
|
||||
.auth-logo-icon {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
background-color: #ff5e3a;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-right: 10px;
|
||||
box-shadow: 0 4px 12px rgba(255, 94, 58, 0.3);
|
||||
}
|
||||
|
||||
.auth-logo-icon svg {
|
||||
@@ -97,19 +98,27 @@
|
||||
.auth-button {
|
||||
width: 100%;
|
||||
padding: 12px 15px;
|
||||
border-radius: 8px;
|
||||
background-color: #ff5e3a;
|
||||
border-radius: 10px;
|
||||
background: linear-gradient(135deg, #ff5e3a 0%, #ff2d55 100%);
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
transition: background-color 0.2s;
|
||||
transition: all 0.3s ease;
|
||||
margin-top: 10px;
|
||||
box-shadow: 0 4px 12px rgba(255, 94, 58, 0.3);
|
||||
}
|
||||
|
||||
.auth-button:hover {
|
||||
background-color: #e64a2e;
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 6px 20px rgba(255, 94, 58, 0.4);
|
||||
filter: brightness(1.05);
|
||||
}
|
||||
|
||||
.auth-button:active {
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 2px 8px rgba(255, 94, 58, 0.3);
|
||||
}
|
||||
|
||||
.auth-button:disabled {
|
||||
@@ -205,6 +214,26 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Auto-detected language banner */
|
||||
.lang-autodetected {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
|
||||
border: 1px solid #bbf7d0;
|
||||
border-radius: 8px;
|
||||
padding: 10px 16px;
|
||||
margin-bottom: 16px;
|
||||
color: #16a34a;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.lang-autodetected i {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.language-subtitle {
|
||||
color: #64748b;
|
||||
font-size: 16px;
|
||||
@@ -290,6 +319,183 @@
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
/* "More languages" button */
|
||||
.lang-more-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
margin-bottom: 20px;
|
||||
border: 1px dashed #cbd5e1;
|
||||
border-radius: 10px;
|
||||
background: transparent;
|
||||
color: #64748b;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.lang-more-btn:hover {
|
||||
border-color: #ff5e3a;
|
||||
color: #ff5e3a;
|
||||
background: #fff5f3;
|
||||
}
|
||||
|
||||
.lang-more-btn i {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* ====== Language Modal ====== */
|
||||
.lang-modal-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 9999;
|
||||
padding: 20px;
|
||||
animation: fadeIn 0.2s ease;
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
|
||||
.lang-modal {
|
||||
background: #fff;
|
||||
border-radius: 16px;
|
||||
width: 100%;
|
||||
max-width: 480px;
|
||||
max-height: 70vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
|
||||
animation: slideUp 0.25s ease;
|
||||
}
|
||||
|
||||
@keyframes slideUp {
|
||||
from { transform: translateY(20px); opacity: 0; }
|
||||
to { transform: translateY(0); opacity: 1; }
|
||||
}
|
||||
|
||||
.lang-modal-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 20px 24px 12px;
|
||||
}
|
||||
|
||||
.lang-modal-header h3 {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
}
|
||||
|
||||
.lang-modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 24px;
|
||||
color: #94a3b8;
|
||||
cursor: pointer;
|
||||
padding: 4px 8px;
|
||||
border-radius: 6px;
|
||||
line-height: 1;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
|
||||
.lang-modal-close:hover {
|
||||
background: #f1f5f9;
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.lang-modal-search {
|
||||
position: relative;
|
||||
padding: 0 24px 12px;
|
||||
}
|
||||
|
||||
.lang-modal-search i {
|
||||
position: absolute;
|
||||
left: 38px;
|
||||
top: 12px;
|
||||
color: #94a3b8;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.lang-modal-search input {
|
||||
width: 100%;
|
||||
padding: 10px 14px 10px 36px;
|
||||
border: 2px solid #e2e8f0;
|
||||
border-radius: 10px;
|
||||
font-size: 14px;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.lang-modal-search input:focus {
|
||||
border-color: #ff5e3a;
|
||||
}
|
||||
|
||||
.lang-modal-list {
|
||||
overflow-y: auto;
|
||||
padding: 0 12px 16px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.lang-modal-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px 14px;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
|
||||
.lang-modal-item:hover {
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.lang-modal-item.selected {
|
||||
background: #fff5f3;
|
||||
}
|
||||
|
||||
.lang-modal-flag {
|
||||
font-size: 24px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.lang-modal-native {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #1e293b;
|
||||
}
|
||||
|
||||
.lang-modal-english {
|
||||
font-size: 13px;
|
||||
color: #94a3b8;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.lang-modal-check {
|
||||
color: #ff5e3a;
|
||||
font-size: 14px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.lang-modal-empty {
|
||||
text-align: center;
|
||||
color: #94a3b8;
|
||||
padding: 30px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.auth-panel {
|
||||
width: 90%;
|
||||
@@ -303,4 +509,13 @@
|
||||
.language-flag {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.lang-modal {
|
||||
max-height: 80vh;
|
||||
}
|
||||
|
||||
.lang-autodetected {
|
||||
font-size: 13px;
|
||||
padding: 8px 12px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user