Skip to content

Commit f33eb08

Browse files
authored
Add files via upload
1 parent 6c1d75b commit f33eb08

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

script.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,10 @@ document.addEventListener('DOMContentLoaded', function() {
753753
// Success message (localized)
754754
const successMsg = t['contact.successMessage'] || 'Message sent successfully! I\'ll get back to you soon.';
755755
formStatus.innerHTML = `<p class="success-message">${successMsg}</p>`;
756+
757+
// Scroll to success message on mobile
758+
formStatus.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
759+
756760
contactForm.reset();
757761
// Clear any error states
758762
document.querySelectorAll('.form-group').forEach(group => {

styles.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,6 +1454,11 @@ body.dark-mode .form-group textarea:focus {
14541454
cursor: not-allowed;
14551455
}
14561456

1457+
#form-status {
1458+
width: 100%;
1459+
display: block;
1460+
}
1461+
14571462
.success-message {
14581463
color: #10b981;
14591464
background-color: rgba(16, 185, 129, 0.1);
@@ -1462,6 +1467,9 @@ body.dark-mode .form-group textarea:focus {
14621467
border-left: 4px solid #10b981;
14631468
margin-top: 1rem;
14641469
font-weight: 500;
1470+
width: 100%;
1471+
box-sizing: border-box;
1472+
text-align: center;
14651473
}
14661474

14671475
.error-message {
@@ -1472,6 +1480,9 @@ body.dark-mode .form-group textarea:focus {
14721480
border-left: 4px solid #ef4444;
14731481
margin-top: 1rem;
14741482
font-weight: 500;
1483+
width: 100%;
1484+
box-sizing: border-box;
1485+
text-align: center;
14751486
}
14761487

14771488
#contact-form-btn {

0 commit comments

Comments
 (0)