diff --git a/src/FrontOffice.Main/Shared/Footer.razor b/src/FrontOffice.Main/Shared/Footer.razor index 27e2d5a..f6cdbe3 100644 --- a/src/FrontOffice.Main/Shared/Footer.razor +++ b/src/FrontOffice.Main/Shared/Footer.razor @@ -106,32 +106,6 @@ - - - - - - - - diff --git a/src/FrontOffice.Main/Shared/Footer.razor.cs b/src/FrontOffice.Main/Shared/Footer.razor.cs index 5616b57..14c8fd8 100644 --- a/src/FrontOffice.Main/Shared/Footer.razor.cs +++ b/src/FrontOffice.Main/Shared/Footer.razor.cs @@ -5,37 +5,4 @@ namespace FrontOffice.Main.Shared; public partial class Footer { - private string? _newsletterEmail; - - private void SubscribeNewsletter() - { - if (string.IsNullOrWhiteSpace(_newsletterEmail)) - { - Snackbar.Add("لطفاً آدرس ایمیل معتبر وارد کنید.", Severity.Warning); - return; - } - - if (!IsValidEmail(_newsletterEmail)) - { - Snackbar.Add("فرمت ایمیل صحیح نیست.", Severity.Warning); - return; - } - - // TODO: Implement newsletter subscription logic - Snackbar.Add("با موفقیت در خبرنامه عضو شدید.", Severity.Success); - _newsletterEmail = string.Empty; - } - - private static bool IsValidEmail(string email) - { - try - { - var addr = new System.Net.Mail.MailAddress(email); - return addr.Address == email; - } - catch - { - return false; - } - } } \ No newline at end of file diff --git a/src/FrontOffice.Main/wwwroot/css/site.css b/src/FrontOffice.Main/wwwroot/css/site.css index 172c75a..a515237 100644 --- a/src/FrontOffice.Main/wwwroot/css/site.css +++ b/src/FrontOffice.Main/wwwroot/css/site.css @@ -110,18 +110,6 @@ html, body { color: var(--mud-palette-primary); } -.newsletter-section { - background: var(--mud-palette-background-grey); -} - -.newsletter-form { - align-items: center; -} - -.newsletter-btn { - white-space: nowrap; -} - .footer-legal { flex-wrap: wrap; } @@ -131,15 +119,6 @@ html, body { justify-content: flex-start !important; margin-top: 1rem; } - - .newsletter-form { - flex-direction: column; - align-items: stretch; - } - - .newsletter-btn { - margin-top: 0.5rem; - } } /* Dark mode adjustments */ @@ -147,8 +126,4 @@ html, body { background: var(--mud-palette-dark-background); border-top-color: var(--mud-palette-dark-divider); } - -.mud-theme-dark .newsletter-section { - background: var(--mud-palette-dark-surface); -} /*#endregion*/