From 100af7636668a64ca7d3ddcd249197639e3b0216 Mon Sep 17 00:00:00 2001 From: Andrew Qiu Date: Mon, 16 Sep 2024 18:13:45 +1200 Subject: [PATCH] additional styles + responsiveness --- src/pages/contact.astro | 9 +++--- src/styles/contacts.css | 70 +++++++++++++++++++++++++++++++++++++++-- 2 files changed, 72 insertions(+), 7 deletions(-) diff --git a/src/pages/contact.astro b/src/pages/contact.astro index e8cd919..dc08b9a 100644 --- a/src/pages/contact.astro +++ b/src/pages/contact.astro @@ -125,14 +125,14 @@ const form_token = import.meta.env.WEBFORMS_TOKEN || 'fallback-string';
Contact us
-
+
-
+

-
+

@@ -143,17 +143,16 @@ const form_token = import.meta.env.WEBFORMS_TOKEN || 'fallback-string';
+
-
contact us stock image - pattern
diff --git a/src/styles/contacts.css b/src/styles/contacts.css index 71e0e97..1d7b242 100644 --- a/src/styles/contacts.css +++ b/src/styles/contacts.css @@ -28,5 +28,71 @@ .contacts-card{ padding: 36px; border-radius: 16px; - background: rgba(241, 255, 246, 0.65); -} \ No newline at end of file + + background: rgba(241, 255, 246, 0.6); + backdrop-filter: blur(12px); +} + +.form-wrapper{ + display: flex; + flex-direction: column; + gap: 24px; +} + +.form-group{ + width: 100%; +} + +.form-group label{ + color: #2F2F2F; + font-weight: bold; +} + +.form-group input{ + width: 100%; + height: 45px; + border-radius: 8px; + border: 1px solid #C8C8C8; +} + +.form-group textarea{ + width: 100%; + min-height: 150px; + + border-radius: 8px; + border: 1px solid #C8C8C8; +} + +.form-group button{ + display: flex; + width: 100%; + padding: 18px 0 13px; + justify-content: center; + align-items: center; + + border-radius: 8px; + background: var(--YOO-Blue-Darkest); + box-shadow: 4px 4px 6px 0px rgba(110, 172, 109, 0.15); + + color: white; + font-size: 20px; + font-weight: 700; + line-height: 1; + + transition: all 400ms; +} + +.form-group button:hover{ + opacity: 0.9; + box-shadow: 4px 4px 8px -2px hsl(188deg 100% 16% / 0.1), 12px 12px 18px -3px hsl(188deg 100% 16% / 0.1); + transform: translate(-3px, -3px); + + transition: all 200ms; + will-change: transform, box-shadow; +} + +@media(max-width: 1024px){ + .contacts-content{ + flex-direction: column; + } +}