Skip to content

Commit

Permalink
Merge pull request #118 from mongodb-developer/main
Browse files Browse the repository at this point in the history
Fixes for conference
  • Loading branch information
snarvaez authored Mar 18, 2024
2 parents 340dd8a + e9cca46 commit 701ab8b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion website/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
Register
</button>
<button type="button" class="btn btn-block center" style="background-color:#00ed64"
@onclick="LoginPlayer">
@onclick="CreatePlayer">
Login
</button>
</div>
Expand Down
2 changes: 1 addition & 1 deletion website/Pages/PlayerHome.razor
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<div class="card" style="max-width: 400px; background:#00ed64; text-align: center">
<div style="display:inline">
&nbsp;&nbsp;&nbsp;
<a target="_blank" href="/playerSimilar/[email protected]&[email protected]&Name[email protected]">View Similar Players to @Player.Name</a>
<a target="_blank" href="/playerSimilar/[email protected]&Name=@Player.Name&[email protected]">View Similar Players to @Player.Name</a>
&nbsp;&nbsp;&nbsp;
</div>
</div>
Expand Down
7 changes: 6 additions & 1 deletion website/Pages/PlayerSimilar.razor
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
}
</style>

<img src="\mongodb-logo-green-bg.jpg" class="rounded mx-auto d-block" alt="logo">
<a href="\?EventId=@_eventId">
<img src="\mongodb-logo-green-bg.jpg" class="rounded mx-auto d-block" alt="logo">
</a>
<div class="card" style="max-width:400px;background:yellow;text-align:center">
<div style="display:inline">
<a href="https://www.mongodb.com/solutions/solutions-library/gaming-player-profiles-solution" target="_blank">Solution</a>
Expand Down Expand Up @@ -153,6 +155,8 @@

@code {

private string _eventId = string.Empty;

private Player Player { get; set; } = new();
private List<SimilarRecording> Similar { get; set; } = new();
private List<SimilarRecording> SimilarBySpeed { get; set; } = new();
Expand All @@ -173,6 +177,7 @@
var queryParameters = UrlHelper.GetParameters(NavigationManager.Uri);

_name = queryParameters[Constants.QueryParameterName];
_eventId = queryParameters[Constants.QueryParameterEventId];
var playerFilter = new Dictionary<string, string>
{
{ "name", _name }
Expand Down

0 comments on commit 701ab8b

Please sign in to comment.