@Model.Hearts
@Model.Comments
@Model.UsedSlots / @ServerSettings.Instance.EntitledSlots
diff --git a/ProjectLighthouse/Pages/SlotsPage.cshtml b/ProjectLighthouse/Pages/SlotsPage.cshtml
index 41b5947a..c3aa545c 100644
--- a/ProjectLighthouse/Pages/SlotsPage.cshtml
+++ b/ProjectLighthouse/Pages/SlotsPage.cshtml
@@ -12,6 +12,7 @@
@foreach (Slot slot in Model.Slots)
{
+ bool isMobile = Model.Request.IsMobile();
@await Html.PartialAsync("Partials/SlotCardPartial", slot, new ViewDataDictionary(ViewData)
{
@@ -25,7 +26,7 @@
"ShowLink", true
},
{
- "IsMobile", Model.Request.IsMobile()
+ "IsMobile", isMobile
},
})
diff --git a/ProjectLighthouse/Pages/UserPage.cshtml b/ProjectLighthouse/Pages/UserPage.cshtml
index 31669ecb..8c1db838 100644
--- a/ProjectLighthouse/Pages/UserPage.cshtml
+++ b/ProjectLighthouse/Pages/UserPage.cshtml
@@ -1,6 +1,7 @@
@page "/user/{userId:int}"
@using System.IO
@using System.Web
+@using LBPUnion.ProjectLighthouse.Helpers.Extensions
@using LBPUnion.ProjectLighthouse.Types
@using LBPUnion.ProjectLighthouse.Types.Profiles
@model LBPUnion.ProjectLighthouse.Pages.UserPage
@@ -43,6 +44,9 @@
{
"ShowLink", false
},
+ {
+ "IsMobile", Model.Request.IsMobile()
+ },
})
diff --git a/ProjectLighthouse/Pages/UsersPage.cshtml b/ProjectLighthouse/Pages/UsersPage.cshtml
index f2d16ec2..3e3ab35f 100644
--- a/ProjectLighthouse/Pages/UsersPage.cshtml
+++ b/ProjectLighthouse/Pages/UsersPage.cshtml
@@ -1,4 +1,5 @@
@page "/users/{pageNumber:int}"
+@using LBPUnion.ProjectLighthouse.Helpers.Extensions
@using LBPUnion.ProjectLighthouse.Types
@model LBPUnion.ProjectLighthouse.Pages.UsersPage
@@ -11,12 +12,16 @@
@foreach (User user in Model.Users)
{
+ bool isMobile = Model.Request.IsMobile();
@await Html.PartialAsync("Partials/UserCardPartial", user, new ViewDataDictionary(ViewData)
{
{
"ShowLink", true
},
+ {
+ "IsMobile", isMobile
+ },
})
}
diff --git a/ProjectLighthouse/StaticFiles/css/styles.css b/ProjectLighthouse/StaticFiles/css/styles.css
index 8d5ca005..f122599d 100644
--- a/ProjectLighthouse/StaticFiles/css/styles.css
+++ b/ProjectLighthouse/StaticFiles/css/styles.css
@@ -8,48 +8,36 @@ div.main {
flex: 1;
}
-div.statsUnderTitle > i {
- margin-right: 2px;
-}
-
-div.statsUnderTitle > span {
- margin-right: 5px;
-}
-
#lighthouse-debug-info > p {
margin-bottom: 1px;
}
-/*#region Slot cards*/
+/*#region Cards*/
-.slotCard {
+.card {
display: flex;
width: 100%;
}
-.slotCardIcon {
+.cardIcon {
margin-right: 10px;
background-size: cover;
background-position: center;
border-radius: 100%;
}
-.slotCardStats {
+.cardStats {
height: fit-content;
vertical-align: center;
align-self: center
}
-.slotCardStats > .statsUnderTitle {
- margin-bottom: 10px;
-}
-
-.slotCardStats > h1,
-.slotCardStats > h2 {
+.cardStats > h1,
+.cardStats > h2 {
margin-bottom: 2px;
}
-.slotCardButtons {
+.cardButtons {
height: 100px;
display: flex;
flex-direction: column;
@@ -57,9 +45,38 @@ div.statsUnderTitle > span {
margin-left: auto;
}
-.slotCardButtons > a {
+.cardButtons > a {
margin-bottom: 5px !important;
vertical-align: center;
}
-/*#endregion Slot cards*/
\ No newline at end of file
+.cardStatsUnderTitle {
+ margin-bottom: 10px;
+}
+
+div.cardStatsUnderTitle > i {
+ margin-right: 2px;
+}
+
+div.cardStatsUnderTitle > span {
+ margin-right: 5px;
+}
+
+/*#region Slot cards*/
+
+.slotCardIcon {
+ border-radius: 100%;
+}
+
+/*#endregion Slot cards*/
+
+/*#region User cards*/
+
+.userCardIcon {
+ border-radius: .28571429rem;
+}
+
+
+/*#endregion User cards*/
+
+/*#endregion Cards*/
\ No newline at end of file