diff --git a/src/EventHub.Web/Helpers/CoverImageHelper.cs b/src/EventHub.Web/Helpers/CoverImageHelper.cs deleted file mode 100644 index b600439..0000000 --- a/src/EventHub.Web/Helpers/CoverImageHelper.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Linq; -using System.Text; -using Volo.Abp; - -namespace EventHub.Web.Helpers -{ - public class CoverImageHelper - { - private static readonly string[] ImageColors = - { - "linear-gradient(135deg, #41003d 0%, #a10097 100%)", - "linear-gradient(135deg, #163e4b 0%, #297791 100%)", - "linear-gradient(135deg, #660040 0%, #aa006b 100%)", - "linear-gradient(135deg, #240d88 0%, #571fff 100%)", - }; - - public static string GetRandomColor(string articleTitle) - { - long total = articleTitle.Truncate(32).ToCharArray().Sum(c => c); - return ImageColors[total % ImageColors.Length]; - } - - public static string GetContentOfImage(string content) - { - content = Check.NotNullOrWhiteSpace(content, nameof(content)); - - return content.ToUpper(); - } - } -} \ No newline at end of file diff --git a/src/EventHub.Web/Pages/Events/Components/EventsArea/_eventListSection.cshtml b/src/EventHub.Web/Pages/Events/Components/EventsArea/_eventListSection.cshtml index f33630f..e5edbf3 100644 --- a/src/EventHub.Web/Pages/Events/Components/EventsArea/_eventListSection.cshtml +++ b/src/EventHub.Web/Pages/Events/Components/EventsArea/_eventListSection.cshtml @@ -9,13 +9,11 @@
}
else
{
-
}
else
{
diff --git a/src/EventHub.Web/Pages/Index.cshtml b/src/EventHub.Web/Pages/Index.cshtml
index 95935ee..94ef206 100644
--- a/src/EventHub.Web/Pages/Index.cshtml
+++ b/src/EventHub.Web/Pages/Index.cshtml
@@ -121,9 +121,7 @@
}
else
{
@@ -151,9 +149,7 @@
}
else
{
diff --git a/src/EventHub.Web/Pages/Organizations/Components/OrganizationsArea/_organizationListSection.cshtml b/src/EventHub.Web/Pages/Organizations/Components/OrganizationsArea/_organizationListSection.cshtml
index 6766bfd..7b94b4a 100644
--- a/src/EventHub.Web/Pages/Organizations/Components/OrganizationsArea/_organizationListSection.cshtml
+++ b/src/EventHub.Web/Pages/Organizations/Components/OrganizationsArea/_organizationListSection.cshtml
@@ -1,4 +1,3 @@
-@using EventHub.Web.Helpers
@model List
}
else
{
-
}
else
{
diff --git a/src/EventHub.Web/wwwroot/assets/eh-event.png b/src/EventHub.Web/wwwroot/assets/eh-event.png
new file mode 100644
index 0000000..b49547e
Binary files /dev/null and b/src/EventHub.Web/wwwroot/assets/eh-event.png differ
diff --git a/src/EventHub.Web/wwwroot/assets/eh-organization.png b/src/EventHub.Web/wwwroot/assets/eh-organization.png
new file mode 100644
index 0000000..f5a2707
Binary files /dev/null and b/src/EventHub.Web/wwwroot/assets/eh-organization.png differ