From c75e660e20e840a35e8836b8567eae774cc2c7bd Mon Sep 17 00:00:00 2001 From: hiep200311 Date: Thu, 4 Jun 2026 09:29:35 +0700 Subject: [PATCH] Fix: Resolve responsive layout issues on contact page --- views/contactPages/contactMain.css | 48 +++++--- views/contactPages/contactMain.html | 183 ++++++++++++++-------------- 2 files changed, 122 insertions(+), 109 deletions(-) diff --git a/views/contactPages/contactMain.css b/views/contactPages/contactMain.css index 81bae96..23fa254 100644 --- a/views/contactPages/contactMain.css +++ b/views/contactPages/contactMain.css @@ -35,10 +35,7 @@ a:active { /* Contact Section */ .contact-section { - padding: 60px 5%; background-color: #f9f9f9; - max-width: 1400px; - margin: 0 auto; } .page-intro { @@ -60,19 +57,18 @@ a:active { } .contact-container { - display: flex; - gap: 40px; margin-top: 30px; } /* Enhanced Form Container */ .contact-form { - flex: 1; background-color: white; padding: 35px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); - transition: transform 0.3s ease, box-shadow 0.3s ease; + transition: + transform 0.3s ease, + box-shadow 0.3s ease; position: relative; overflow: hidden; } @@ -303,7 +299,9 @@ a:active { border-radius: 50%; transform: scale(0); opacity: 0; - transition: transform 0.6s, opacity 0.6s; + transition: + transform 0.6s, + opacity 0.6s; } .submit-button:hover::after { @@ -313,14 +311,17 @@ a:active { /* Contact Details Section */ .contact-details { - flex: 1; background-color: white; padding: 35px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); - transition: transform 0.3s ease, box-shadow 0.3s ease; + transition: + transform 0.3s ease, + box-shadow 0.3s ease; position: relative; overflow: hidden; + display: flex; + flex-direction: column; } .contact-details::before { @@ -380,7 +381,9 @@ a:active { color: #30875f; margin-right: 15px; margin-top: 3px; - transition: color 0.3s, transform 0.3s; + transition: + color 0.3s, + transform 0.3s; } .contact-item:hover i { @@ -428,8 +431,18 @@ a:active { border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); - transition: transform 0.3s ease, box-shadow 0.3s ease; + transition: + transform 0.3s ease, + box-shadow 0.3s ease; position: relative; + flex-grow: 1; + display: flex; + flex-direction: column; +} +.map-container iframe { + flex-grow: 1; + height: 100% !important; + min-height: 250px; } .map-container:hover { @@ -488,7 +501,8 @@ a:active { /* Responsive Design */ @media (max-width: 1200px) { .contact-section { - padding: 50px 4%; + padding-top: 50px; + padding-bottom: 50px; } .contact-form, @@ -514,13 +528,8 @@ a:active { } @media (max-width: 768px) { - .contact-container { - flex-direction: column; - } - .contact-form, .contact-details { - width: 100%; padding: 25px; } @@ -557,7 +566,8 @@ a:active { @media (max-width: 576px) { .contact-section { - padding: 40px 15px; + padding-top: 40px; + padding-bottom: 40px; } .page-intro { diff --git a/views/contactPages/contactMain.html b/views/contactPages/contactMain.html index 3b8322a..ec04b08 100644 --- a/views/contactPages/contactMain.html +++ b/views/contactPages/contactMain.html @@ -89,104 +89,107 @@ -
+

LIÊN HỆ VỚI KỲ LONG

-
-
-

Gửi tin nhắn cho chúng tôi

+
+
+
+

Gửi tin nhắn cho chúng tôi

- -
-
+ +
+
+
+ +
+
+ + +
Vui lòng nhập họ và tên của bạn
+
+ +
+ + +
+ Vui lòng nhập một địa chỉ email hợp lệ +
+
+ +
+ + +
+ Vui lòng nhập số điện thoại của bạn +
+
+ +
+ + +
Vui lòng nhập nội dung tin nhắn
+
+ + +
+ +
- -
-
- - -
Vui lòng nhập họ và tên của bạn
-
- -
- - -
- Vui lòng nhập một địa chỉ email hợp lệ -
-
- -
- - -
- Vui lòng nhập số điện thoại của bạn -
-
- -
- - -
Vui lòng nhập nội dung tin nhắn
-
- - -
- - -
-
-

Thông tin liên hệ

-
-
- -

Lầu 12, số 27 Đinh Bộ Lĩnh, P. Bình Thạnh, TP.Hồ Chí Minh

+
+
+

Thông tin liên hệ

+
+
+ +

Lầu 12, số 27 Đinh Bộ Lĩnh, P. Bình Thạnh, TP.Hồ Chí Minh

+
+
+ +

+84 96 227 7912

+
+
+ +

info@kylongtech.com

+
-
- -

+84 96 227 7912

-
-
- -

info@kylongtech.com

-
-
-
- +
+ +