From 5d70fb63b79eee753481b0e54ae7bff9a0bcbf08 Mon Sep 17 00:00:00 2001 From: Sithum Bopitiya Date: Mon, 10 May 2021 13:32:42 +0530 Subject: [PATCH] Feature/contact us (#264) * Add jquery to lock file * Move Blog RSS API link to config * Add emailjs-com * Send email init * Rm count * Update phone number * :: -> : * Set env --- package.json | 1 + .../components/contact/contact.component.css | 40 ++++++------- .../components/contact/contact.component.html | 59 +++++++++++-------- .../components/contact/contact.component.ts | 20 ++++++- src/environments/environment.prod.ts | 5 +- yarn.lock | 5 ++ 6 files changed, 82 insertions(+), 48 deletions(-) diff --git a/package.json b/package.json index 933601e..4e39ac5 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "@fortawesome/free-regular-svg-icons": "^5.13.0", "@fortawesome/free-solid-svg-icons": "^5.15.2", "bootstrap": "^4.4.1", + "emailjs-com": "^2.6.4", "jquery": "^3.5.1", "ngx-owl-carousel-o": "^5.0.0", "ngx-pagination": "^5.0.0", diff --git a/src/app/components/contact/contact.component.css b/src/app/components/contact/contact.component.css index ee09698..3d69a59 100644 --- a/src/app/components/contact/contact.component.css +++ b/src/app/components/contact/contact.component.css @@ -43,18 +43,14 @@ p { } .headerText { - font-size: 4rem; + font-size: 5rem; font-weight: bold; - line-height: 4rem; + line-height: normal; } .lead { - font-size: 1.2rem; - line-height: 2rem; - color: #525151; - text-align: justify; + text-align: left; } - .contact .info-box { color: #444; text-align: center; @@ -86,21 +82,21 @@ p { margin-bottom: 0; } -.contact .php-email-form { +.contact .email-form { box-shadow: 0 0 30px rgba(214, 215, 216, 0.6); padding: 30px; margin-bottom: 30px; border-radius: 12px; } -.contact .php-email-form .validate { +.contact .email-form .validate { color: red; margin: 0 0 15px 0; font-weight: 400; font-size: 13px; } -.contact .php-email-form .error-message { +.contact .email-form .error-message { display: none; color: #fff; background: #ed3c0d; @@ -109,11 +105,11 @@ p { font-weight: 600; } -.contact .php-email-form .error-message br + br { +.contact .email-form .error-message br + br { margin-top: 25px; } -.contact .php-email-form .sent-message { +.contact .email-form .sent-message { display: none; color: #fff; background: #18d26e; @@ -122,14 +118,14 @@ p { font-weight: 600; } -.contact .php-email-form .loading { +.contact .email-form .loading { display: none; background: #fff; text-align: center; padding: 15px; } -.contact .php-email-form .loading:before { +.contact .email-form .loading:before { content: ''; display: inline-block; border-radius: 50%; @@ -142,29 +138,29 @@ p { animation: animate-loading 1s linear infinite; } -.contact .php-email-form input, -.contact .php-email-form textarea { +.contact .email-form input, +.contact .email-form textarea { border-radius: 0; box-shadow: none; font-size: 14px; } -.contact .php-email-form input::focus, -.contact .php-email-form textarea::focus { +.contact .email-form input:focus, +.contact .email-form textarea:focus { background-color: #68a4c4; } -.contact .php-email-form input { +.contact .email-form input { padding: 20px 15px; border-radius: 12px; } -.contact .php-email-form textarea { +.contact .email-form textarea { padding: 12px 15px; border-radius: 12px; } -.contact .php-email-form button[type='submit'] { +.contact .email-form button[type='submit'] { background: #5a5af3; border: 0; padding: 10px 24px; @@ -173,7 +169,7 @@ p { border-radius: 12px; } -.contact .php-email-form button[type='submit']:hover { +.contact .email-form button[type='submit']:hover { background: #8dbad2; } diff --git a/src/app/components/contact/contact.component.html b/src/app/components/contact/contact.component.html index 24833f5..de3ae12 100644 --- a/src/app/components/contact/contact.component.html +++ b/src/app/components/contact/contact.component.html @@ -1,26 +1,36 @@ -
-
-
-

Contact Us

-

- Fill up the form and our Team will get back to you within 24 hours. -

-
-
- image +
+
+
+
+

Contact Us

+

+ Fill up the form and our Team will get back to you within 24 hours. +

+
+
+ image +
-
-
-
+
+ +
+
-
+
+
+
+
+
+
+
+
@@ -40,7 +50,7 @@

Email Us

Call Us

-

121212121212

+

+94775633985

@@ -49,8 +59,8 @@

Call Us

@@ -83,6 +93,7 @@

Call Us

placeholder="Your Email" data-rule="email" data-msg="Please enter a valid email" + name="user_email" />