Skip to content

Commit da1237c

Browse files
fix: Resolved styling issues with the password reset feature
1 parent 82ae755 commit da1237c

2 files changed

Lines changed: 59 additions & 2 deletions

File tree

frontend/src/pages/ProfilePage.css

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,63 @@
209209
opacity: 0.8;
210210
}
211211

212+
/* Security Actions */
213+
.security-actions {
214+
display: flex;
215+
flex-direction: column;
216+
gap: var(--space-3);
217+
}
218+
219+
.security-action-button {
220+
display: flex;
221+
align-items: center;
222+
gap: var(--space-4);
223+
padding: var(--space-4);
224+
background: var(--color-surface);
225+
border: 1px solid var(--color-border-light);
226+
border-radius: var(--radius-lg);
227+
text-decoration: none;
228+
color: var(--color-text-primary);
229+
transition: all var(--duration-fast) var(--ease-out);
230+
}
231+
232+
.security-action-button:hover {
233+
background: var(--color-surface-hover);
234+
border-color: var(--color-border);
235+
transform: translateY(-1px);
236+
box-shadow: var(--shadow-sm);
237+
}
238+
239+
.security-icon {
240+
font-size: var(--text-xl);
241+
flex-shrink: 0;
242+
}
243+
244+
.security-action-content {
245+
display: flex;
246+
flex-direction: column;
247+
gap: var(--space-1);
248+
flex: 1;
249+
}
250+
251+
.security-action-title {
252+
font-size: var(--text-base);
253+
font-weight: var(--font-semibold);
254+
color: var(--color-text-primary);
255+
}
256+
257+
.security-action-description {
258+
font-size: var(--text-sm);
259+
color: var(--color-text-muted);
260+
line-height: 1.4;
261+
}
262+
263+
.security-arrow {
264+
font-size: var(--text-lg);
265+
color: var(--color-text-muted);
266+
flex-shrink: 0;
267+
}
268+
212269
/* Responsive */
213270
@media (max-width: 640px) {
214271
.profile-header {

frontend/src/pages/ProfilePage.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { LoadingSpinner, ErrorMessage } from '../components/shared';
77
import './ProfilePage.css';
88

99
const ProfilePage = () => {
10-
const { t, i18n } = useTranslation(['users', 'common']);
10+
const { t, i18n } = useTranslation(['users', 'common', 'auth']);
1111
const { user, loading } = useAuth();
1212
const [error, setError] = useState(null);
1313

@@ -122,7 +122,7 @@ const ProfilePage = () => {
122122
<span className="security-icon">🔒</span>
123123
<div className="security-action-content">
124124
<span className="security-action-title">{t('auth:changePassword.title')}</span>
125-
<span className="security-action-description">{t('auth:changePassword.submit')}</span>
125+
<span className="security-action-description">{t('auth:changePassword.subtitle')}</span>
126126
</div>
127127
<span className="security-arrow"></span>
128128
</Link>

0 commit comments

Comments
 (0)