Alert Messages: I am refreshing the page, and the alert message looks like the backend message website is not showing and the close('x') button icon is not showing
Browse files- index.html +5 -34
- style.css +1 -30
index.html
CHANGED
|
@@ -11,35 +11,8 @@
|
|
| 11 |
|
| 12 |
<main id="main" class="w-full">
|
| 13 |
<!-- Alert Messages -->
|
| 14 |
-
<
|
| 15 |
-
|
| 16 |
-
<div class="flex items-center">
|
| 17 |
-
<i data-feather="alert-triangle" class="w-5 h-5 text-red-600 mr-2"></i>
|
| 18 |
-
<span class="font-medium text-red-800">Error</span>
|
| 19 |
-
</div>
|
| 20 |
-
<button onclick="removeQuery()" class="ml-auto text-red-500 hover:text-red-700 focus:outline-none">
|
| 21 |
-
<i data-feather="x" class="w-4 h-4"></i>
|
| 22 |
-
</button>
|
| 23 |
-
</div>
|
| 24 |
-
<div class="p-4 text-red-700">
|
| 25 |
-
<p>Could not send an email! Please try again later.</p>
|
| 26 |
-
</div>
|
| 27 |
-
</div>
|
| 28 |
-
|
| 29 |
-
<div id="success_email" class="hidden fixed top-6 right-6 max-w-md w-full bg-white border border-green-200 rounded-lg shadow-xl z-50 overflow-hidden">
|
| 30 |
-
<div class="flex bg-green-50 px-4 py-2">
|
| 31 |
-
<div class="flex items-center">
|
| 32 |
-
<i data-feather="check-circle" class="w-5 h-5 text-green-600 mr-2"></i>
|
| 33 |
-
<span class="font-medium text-green-800">Success</span>
|
| 34 |
-
</div>
|
| 35 |
-
<button onclick="removeQuery()" class="ml-auto text-green-500 hover:text-green-700 focus:outline-none">
|
| 36 |
-
<i data-feather="x" class="w-4 h-4"></i>
|
| 37 |
-
</button>
|
| 38 |
-
</div>
|
| 39 |
-
<div class="p-4 text-green-700">
|
| 40 |
-
<p>We have sent you an email. Please check your inbox. If you can't find it in your primary inbox, please check your Spam or Junk folder.</p>
|
| 41 |
-
</div>
|
| 42 |
-
</div>
|
| 43 |
<!---Twitter Card data -->
|
| 44 |
<meta name="twitter:card" content="summary_large_image">
|
| 45 |
<meta name="twitter:title" content="Magento Connector with Dynamics 365 Business Central">
|
|
@@ -349,11 +322,9 @@
|
|
| 349 |
/* Make icon + text align nicely */
|
| 350 |
.li-check i{ flex:0 0 auto; margin-top:.15rem; }
|
| 351 |
</style>
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
<script type="application/javascript">
|
| 357 |
|
| 358 |
|
| 359 |
$(document).ready(function(){
|
|
|
|
| 11 |
|
| 12 |
<main id="main" class="w-full">
|
| 13 |
<!-- Alert Messages -->
|
| 14 |
+
<notification-component id="fail_email" class="error"></notification-component>
|
| 15 |
+
<notification-component id="success_email" class="success"></notification-component>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
<!---Twitter Card data -->
|
| 17 |
<meta name="twitter:card" content="summary_large_image">
|
| 18 |
<meta name="twitter:title" content="Magento Connector with Dynamics 365 Business Central">
|
|
|
|
| 322 |
/* Make icon + text align nicely */
|
| 323 |
.li-check i{ flex:0 0 auto; margin-top:.15rem; }
|
| 324 |
</style>
|
| 325 |
+
<script src="./js/google_js_api/jquery.min.js"></script>
|
| 326 |
+
<script src="components/notification.js"></script>
|
| 327 |
+
<script type="application/javascript">
|
|
|
|
|
|
|
| 328 |
|
| 329 |
|
| 330 |
$(document).ready(function(){
|
style.css
CHANGED
|
@@ -35,36 +35,7 @@ body {
|
|
| 35 |
color: var(--vlc-ink);
|
| 36 |
line-height: 1.6;
|
| 37 |
}
|
| 38 |
-
/*
|
| 39 |
-
#fail_email,
|
| 40 |
-
#success_email {
|
| 41 |
-
transition: all 0.3s ease;
|
| 42 |
-
box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
|
| 43 |
-
}
|
| 44 |
-
|
| 45 |
-
#fail_email {
|
| 46 |
-
border: 1px solid #fecaca;
|
| 47 |
-
}
|
| 48 |
-
|
| 49 |
-
#success_email {
|
| 50 |
-
border: 1px solid #bbf7d0;
|
| 51 |
-
}
|
| 52 |
-
|
| 53 |
-
#fail_email .bg-red-50 {
|
| 54 |
-
background-color: #fef2f2;
|
| 55 |
-
}
|
| 56 |
-
|
| 57 |
-
#success_email .bg-green-50 {
|
| 58 |
-
background-color: #f0fdf4;
|
| 59 |
-
}
|
| 60 |
-
|
| 61 |
-
#fail_email button:hover {
|
| 62 |
-
color: #dc2626;
|
| 63 |
-
}
|
| 64 |
-
|
| 65 |
-
#success_email button:hover {
|
| 66 |
-
color: #16a34a;
|
| 67 |
-
}
|
| 68 |
h1, h2, h3, h4 {
|
| 69 |
color: var(--vlc-navy);
|
| 70 |
font-weight: 700;
|
|
|
|
| 35 |
color: var(--vlc-ink);
|
| 36 |
line-height: 1.6;
|
| 37 |
}
|
| 38 |
+
/* Notification component styles are now in the component itself */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
h1, h2, h3, h4 {
|
| 40 |
color: var(--vlc-navy);
|
| 41 |
font-weight: 700;
|