@@ -174,7 +151,14 @@
-

+ @if (Model.OnlineEvents[i + 1].CoverImageContent is null)
+ {
+
![@Model.OnlineEvents[i + 1].Title](/assets/card-left-image.png)
+ }
+ else
+ {
+
![@Model.OnlineEvents[i + 1].Title](@($)
+ }
@@ -207,14 +191,17 @@
List who is organizing local events
with one click.
-
Join EventHub
+ @if (!CurrentUser.IsAuthenticated)
+ {
+
Join EventHub
+ }
Start an Event
Create your own Eventhub group and benefit from a community of millions.
-
Start
+
Start
diff --git a/src/EventHub.Web/Pages/Index.cshtml.cs b/src/EventHub.Web/Pages/Index.cshtml.cs
index 829e9e6..3309e68 100644
--- a/src/EventHub.Web/Pages/Index.cshtml.cs
+++ b/src/EventHub.Web/Pages/Index.cshtml.cs
@@ -5,15 +5,12 @@ using System.Linq;
using System.Threading.Tasks;
using EventHub.Events;
using Microsoft.AspNetCore.Authentication;
-using Microsoft.AspNetCore.Mvc.Rendering;
using NUglify.Helpers;
namespace EventHub.Web.Pages
{
public class IndexModel : EventHubPageModel
{
- public IReadOnlyList
Events { get; private set; }
-
public IReadOnlyList OnlineEvents { get; private set; }
public List Languages { get; private set; }
@@ -29,13 +26,6 @@ namespace EventHub.Web.Pages
public async Task OnGetAsync()
{
- Events = (await _eventAppService.GetListAsync(
- new EventListFilterDto
- {
- MinDate = Clock.Now
- }
- )).Items;
-
OnlineEvents = (await _eventAppService.GetListAsync(
new EventListFilterDto
{
diff --git a/src/EventHub.Web/Pages/Index.css b/src/EventHub.Web/Pages/Index.css
index 6e7bc8d..5f28270 100644
--- a/src/EventHub.Web/Pages/Index.css
+++ b/src/EventHub.Web/Pages/Index.css
@@ -1,19 +1 @@
-.inputLocation {
- width: 300px;
- position: relative;
-}
-
-.backToLocation {
- position: absolute;
- top: 0;
- border-radius: 5px;
- right: 10px;
- z-index: 2;
- border: none;
- top: 10px;
- height: 30px;
- cursor: pointer;
- color: white;
- background-color: #D64560;
- transform: translateX(2px);
-}
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/EventHub.Web/Pages/Index.js b/src/EventHub.Web/Pages/Index.js
index eca7f4d..fdf2398 100644
--- a/src/EventHub.Web/Pages/Index.js
+++ b/src/EventHub.Web/Pages/Index.js
@@ -26,25 +26,7 @@
},
dots: true,
});
-
- var countryId = "00000000-0000-0000-0000-000000000000"
- $('#inputLocation').on('change', function (e) {
- countryId = this.value
- if (countryId !== "00000000-0000-0000-0000-000000000000" && countryId !== "Location"){
- $('#inputLocation').hide()
- $('.locationGroup').append("")
- $('.backToLocation').css('visibility', 'visible')
- $('#inputCity').attr('type', 'text').show()
- }
- });
-
- $('.backToLocation').on('click', '', function (e) {
- $('.labelCity').remove()
- $('.backToLocation').css('visibility', 'hidden')
- $('#inputCity').val('').attr('type', 'text').hide()
- $('#inputLocation').show()
- });
-
+
var $inputWhen = $("#inputWhen");
$inputWhen.daterangepicker({
autoUpdateInput: false,
diff --git a/src/EventHub.Web/Pages/_ViewImports.cshtml b/src/EventHub.Web/Pages/_ViewImports.cshtml
index c1da1f5..4e77102 100644
--- a/src/EventHub.Web/Pages/_ViewImports.cshtml
+++ b/src/EventHub.Web/Pages/_ViewImports.cshtml
@@ -1,4 +1,5 @@
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI
@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
-@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling
\ No newline at end of file
+@addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling
+@addTagHelper *, EventHub.Web.Theme
\ No newline at end of file