mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-09-09 11:06:22 +00:00
Refresh the website's UI
Squashed commit of the following: commit 47d268cc29560e72b5102eabc80d1f5743c103bb Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 21:14:09 2022 -0400 Make profile pictures square commit a5ae8a53918708fea215a5676beea2116078bd34 Merge: f5d8a9ef06fcc4
Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 18:43:26 2022 -0400 Merge branch 'main' into ui-refresh commit f5d8a9e5ed2d9aaafd63d113a5b064d042f7ba48 Merge: fbf16952ad9804
Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 17:03:33 2022 -0400 Merge branch 'main' into ui-refresh commit fbf16953893b2e294df21a0c60e561dbb409aa92 Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 17:02:32 2022 -0400 Fix test failures commit 70cb5513cb8bae9d85b2b04bc9a3fb194f0a66a5 Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 16:56:43 2022 -0400 Improve 404 logic commit b2743c4c8af736d2501c7bdd47cce19a6a01902d Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 16:44:36 2022 -0400 Add 404 page commit 3d0926d3c99d347617e5147ac632d8ec6bab18f9 Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 16:27:03 2022 -0400 Update icons for slots and team picks commit c61405d83d71d9e67ab4c2775f76b3f7d6c2e827 Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 16:12:45 2022 -0400 Add background color, put content on segment commit f7d9ee6a0accc9d664f8d2aefabcce4eb8789cd6 Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 15:53:58 2022 -0400 Add colors to mod/admin panel buttons, update fomantic commit e680c5e6eb14f22792dc62bda029072d3f11f423 Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 03:20:16 2022 -0400 Fix landing page title commit c779aa4b417af623aa47db0ce9875f49a9ee5c4b Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 03:13:32 2022 -0400 Remove useless css commit 57f6387c1214b319fe3e0b14df32a7bbecf51548 Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 03:11:45 2022 -0400 Add hover effect to logo commit 15746911f92037abec115a83fa625ef0fda39e3a Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 02:39:04 2022 -0400 Change currently_online string to english better commit b98a90f1e9f0b3af7e65104cdd0acbc74c6a244e Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 02:33:41 2022 -0400 Run GameApiTests sequentially, fix web tests commit 630c08d3b80b74be11b0648b24011f89de705130 Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 02:20:01 2022 -0400 Add user links to comments commit a91f136c87bc973300c74d6f97696cd7cbf1046a Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 02:14:22 2022 -0400 Add ability for photos to have user links commit d9e2a58e37dafe842b0b10b463cde1a2cb962052 Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 01:33:21 2022 -0400 Add ability to link to users and include their profile picture commit 200196ce1f58638da7da368025ec0a88cacc14b6 Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 01:33:07 2022 -0400 Rename "users" to "people" in Landing Page commit 07d229821099c069979a21bbd529b549c6f4e6b6 Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 00:59:17 2022 -0400 Fix bug with name on mobile commit aecad7aeb69b63c0e517e85fba0c4de292d202f4 Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 00:44:56 2022 -0400 Make gap between header and title 17px commit 46fa79b84e46b7ae90232724d82f7bd9e1a74f17 Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 00:40:00 2022 -0400 Fix user card stats oddity commit 3b4c19f5b7e0199baeb88e27c918fbb17b5f777a Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 00:24:38 2022 -0400 Mobile improvements, make avatars rounded commit cf9533410042cabf456be0cba34ac5d80ef86046 Author: jvyden <jvyden@jvyden.xyz> Date: Fri Aug 19 00:02:01 2022 -0400 Redesign header commit f24aec0367d8375f3eaea94ea3579d86256c94be Author: jvyden <jvyden@jvyden.xyz> Date: Thu Aug 18 23:36:42 2022 -0400 Fix runtime compilation not working commit 3147e12865feecf792a46088711691160c76b0c6 Author: jvyden <jvyden@jvyden.xyz> Date: Thu Aug 18 22:43:21 2022 -0400 Add support for custom fomantic theme
This commit is contained in:
parent
f06fcc4847
commit
3e8344c8f3
54 changed files with 9695 additions and 176 deletions
|
@ -1,6 +1,13 @@
|
|||
@using System.Web
|
||||
@using System.IO
|
||||
@using LBPUnion.ProjectLighthouse.Localization
|
||||
@using LBPUnion.ProjectLighthouse.PlayerData.Profiles
|
||||
@using LBPUnion.ProjectLighthouse.Servers.Website.Extensions
|
||||
|
||||
@{
|
||||
string language = (string?)ViewData["Language"] ?? LocalizationManager.DefaultLang;
|
||||
}
|
||||
|
||||
<div class="ui yellow segment" id="comments">
|
||||
<h2>Comments</h2>
|
||||
@if (Model.Comments.Count == 0 && Model.CommentsEnabled)
|
||||
|
@ -66,7 +73,7 @@
|
|||
</div>
|
||||
|
||||
<div class="comment">
|
||||
<b><a href="/user/@comment.PosterUserId">@comment.Poster.Username</a>: </b>
|
||||
<b>@await comment.Poster.ToLink(Html, ViewData, language): </b>
|
||||
@if (comment.Deleted)
|
||||
{
|
||||
<i>
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
@using LBPUnion.ProjectLighthouse.Localization
|
||||
@model LBPUnion.ProjectLighthouse.PlayerData.Profiles.User
|
||||
|
||||
@{
|
||||
string language = (string?)ViewData["Language"] ?? LocalizationManager.DefaultLang;
|
||||
}
|
||||
|
||||
<a href="/user/@Model.UserId" title="@Model.Status.ToTranslatedString(language)" class="user-link">
|
||||
<img src="/gameAssets/@Model.WebsiteAvatarHash" alt=""/>
|
||||
@Model.Username
|
||||
</a>
|
|
@ -1,9 +1,14 @@
|
|||
@using System.Globalization
|
||||
@using System.Web
|
||||
@using LBPUnion.ProjectLighthouse.Levels
|
||||
@using LBPUnion.ProjectLighthouse.Localization
|
||||
@using LBPUnion.ProjectLighthouse.PlayerData
|
||||
@using LBPUnion.ProjectLighthouse.Servers.Website.Extensions
|
||||
@model LBPUnion.ProjectLighthouse.PlayerData.Photo
|
||||
|
||||
@{
|
||||
string language = (string?)ViewData["Language"] ?? LocalizationManager.DefaultLang;
|
||||
}
|
||||
|
||||
<div style="position: relative">
|
||||
<canvas class="hide-subjects" id="canvas-subjects-@Model.PhotoId" width="1920" height="1080"
|
||||
|
@ -16,10 +21,14 @@
|
|||
|
||||
<p>
|
||||
<i>
|
||||
Taken by
|
||||
<b>
|
||||
<a href="/user/@Model.Creator?.UserId">@Model.Creator?.Username</a>
|
||||
</b>
|
||||
Taken
|
||||
@if (Model.Creator != null)
|
||||
{
|
||||
<span>by</span>
|
||||
<b>
|
||||
@await Model.Creator.ToLink(Html, ViewData, language)
|
||||
</b>
|
||||
}
|
||||
@if (Model.Slot != null)
|
||||
{
|
||||
switch (Model.Slot.Type)
|
||||
|
@ -44,13 +53,16 @@
|
|||
</i>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Photo contains @Model.Subjects.Count @(Model.Subjects.Count == 1 ? "person" : "people"):</b>
|
||||
</p>
|
||||
@if (Model.Subjects.Count > 0)
|
||||
{
|
||||
<p>
|
||||
<b>Photo contains @Model.Subjects.Count @(Model.Subjects.Count == 1 ? "person" : "people"):</b>
|
||||
</p>
|
||||
}
|
||||
<div id="hover-subjects-@Model.PhotoId">
|
||||
@foreach (PhotoSubject subject in Model.Subjects)
|
||||
{
|
||||
<a href="/user/@subject.UserId">@subject.User.Username</a>
|
||||
@await subject.User.ToLink(Html, ViewData, language)
|
||||
}
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
@using System.Web
|
||||
@using LBPUnion.ProjectLighthouse
|
||||
@using LBPUnion.ProjectLighthouse.Configuration
|
||||
@using LBPUnion.ProjectLighthouse.Localization
|
||||
@using LBPUnion.ProjectLighthouse.PlayerData
|
||||
@using LBPUnion.ProjectLighthouse.PlayerData.Profiles
|
||||
@using LBPUnion.ProjectLighthouse.Servers.Website.Extensions
|
||||
@using Microsoft.EntityFrameworkCore
|
||||
@model LBPUnion.ProjectLighthouse.Levels.Slot
|
||||
|
||||
|
@ -15,6 +17,7 @@
|
|||
|
||||
bool isMobile = (bool?)ViewData["IsMobile"] ?? false;
|
||||
bool mini = (bool?)ViewData["IsMini"] ?? false;
|
||||
string language = (string?)ViewData["Language"] ?? LocalizationManager.DefaultLang;
|
||||
|
||||
bool isQueued = false;
|
||||
bool isHearted = false;
|
||||
|
@ -81,13 +84,16 @@
|
|||
|
||||
@if (Model.GameVersion == GameVersion.LittleBigPlanet1)
|
||||
{
|
||||
<i class="yellow star icon" title="LBP1 Stars"></i>
|
||||
<i class="yellow star icon" title="Star Rating"></i>
|
||||
<span>@(Math.Round(Model.RatingLBP1 * 10) / 10)</span>
|
||||
}
|
||||
</div>
|
||||
<p>
|
||||
<i>Created by <a href="/user/@Model.Creator?.UserId">@Model.Creator?.Username</a> for @Model.GameVersion.ToPrettyString()</i>
|
||||
</p>
|
||||
@if (Model.Creator != null)
|
||||
{
|
||||
<p>
|
||||
<i>Created by @await Model.Creator.ToLink(Html, ViewData, language) on @Model.GameVersion.ToPrettyString()</i>
|
||||
</p>
|
||||
}
|
||||
</div>
|
||||
<div class="cardButtons">
|
||||
<br>
|
||||
|
|
|
@ -27,9 +27,9 @@
|
|||
@Model.Username
|
||||
</h1>
|
||||
}
|
||||
<p>
|
||||
<span>
|
||||
<i>@Model.Status.ToTranslatedString(language)</i>
|
||||
</p>
|
||||
</span>
|
||||
<div class="cardStatsUnderTitle">
|
||||
<i class="pink heart icon" title="Hearts"></i> <span>@Model.Hearts</span>
|
||||
<i class="blue comment icon" title="Comments"></i> <span>@Model.Comments</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue