Clicking anywhere within ContentBlockHero brings up the create game modal

This commit is contained in:
Matt
2025-11-26 14:35:35 +00:00
committed by Matt Stevens
parent 79eebb54f9
commit 9895d42002
2 changed files with 11 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
@if (Current == null) return;
<root class="hero bgcolor@BgColor">
<root class="hero bgcolor@BgColor" onclick="@Clicked">
@if (BackgroundUrl != null)
{
@@ -14,7 +14,7 @@
<div class="content">
<div class="left" onclick="@Clicked">
<div class="left">
<div class="icon"><img src="@Current.Thumb" /></div>
<div class="title">@Current.Title</div>
<div class="description">@Current.Summary</div>
@@ -40,7 +40,6 @@
protected override async Task OnParametersSetAsync()
{
Current = Group.Packages.OrderBy( x => Guid.NewGuid() ).FirstOrDefault();
Current = await Package.FetchAsync( Current.FullIdent, false );
UpdateBackgroundMedia();
@@ -66,7 +65,6 @@
BackgroundUrl = bg;
BgColor = Random.Shared.Int(0, 4);
}
void Clicked()

View File

@@ -1,5 +1,4 @@
.hero
.hero
{
min-height: 40vh;
position: relative;
@@ -12,6 +11,14 @@
margin: 4px;
margin-top: 2rem;
border: 1px solid #fff2;
cursor: pointer;
transition: all 0.3s ease;
&:hover
{
border: 1px solid #08f4;
transition: all 0.1s ease;
}
}
.background-media
@@ -37,7 +44,6 @@
max-width: 250px;
flex-direction: column;
gap: 1rem;
cursor: pointer;
text-shadow: 1px 1px 2px #000d;
}