mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-13 18:38:11 +02:00
Added social page and fixed garden page layout. ALSO added text next to
navbar.
This commit is contained in:
1 parent
2ea195475e
commit
b3902d4f69
9 files changed
+317
-159
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
+47
-11
@@ -1,32 +1,64 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$NavbarPages = [
|
$NavbarPages = [
|
||||||
"Home" => "/",
|
"Home" => [
|
||||||
"Sarahtonin" => "/Pages/Sarahtonin.html",
|
"Href" => "/",
|
||||||
"Garden" => "/Pages/Garden.html",
|
"Icon" => "Home.png"
|
||||||
"Shop" => "/Pages/Shop.html",
|
],
|
||||||
"Plants" => "/Pages/Plants.html",
|
"Sarahtonin" => [
|
||||||
"Mutations" => "/Pages/Mutations.html",
|
"Href" => "/Pages/Sarahtonin.html",
|
||||||
"Guide" => "/Pages/Guide.html",
|
"Icon" => "Sarahtonin.png"
|
||||||
"Profile" => "/Pages/Profile.html"
|
],
|
||||||
|
"Garden" => [
|
||||||
|
"Href" => "/Pages/Garden.html",
|
||||||
|
"Icon" => "Garden.png"
|
||||||
|
],
|
||||||
|
"Shop" => [
|
||||||
|
"Href" => "/Pages/Shop.html",
|
||||||
|
"Icon" => "Shop.png"
|
||||||
|
],
|
||||||
|
"Plants" => [
|
||||||
|
"Href" => "/Pages/Plants.html",
|
||||||
|
"Icon" => "Plants.png"
|
||||||
|
],
|
||||||
|
"Mutations" => [
|
||||||
|
"Href" => "/Pages/Mutations.html",
|
||||||
|
"Icon" => "Mutations.png"
|
||||||
|
],
|
||||||
|
"Guide" => [
|
||||||
|
"Href" => "/Pages/Guide.html",
|
||||||
|
"Icon" => "Guide.png"
|
||||||
|
],
|
||||||
|
"Profile" => [
|
||||||
|
"Href" => "/Pages/Profile.html",
|
||||||
|
"Icon" => "Profile.png"
|
||||||
|
],
|
||||||
|
"Social" => [
|
||||||
|
"Href" => "/Pages/Social.html",
|
||||||
|
"Icon" => "Social.png"
|
||||||
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<nav class="Navbar" aria-label="Main navigation">
|
<nav class="Navbar" aria-label="Main navigation">
|
||||||
<?php foreach ($NavbarPages as $NavbarPage => $NavbarHref): ?>
|
<?php foreach ($NavbarPages as $NavbarPage => $NavbarData): ?>
|
||||||
<a
|
<a
|
||||||
class="NavbarLink"
|
class="NavbarLink"
|
||||||
href="<?= htmlspecialchars($NavbarHref, ENT_QUOTES, "UTF-8") ?>"
|
href="<?= htmlspecialchars($NavbarData["Href"], ENT_QUOTES, "UTF-8") ?>"
|
||||||
aria-label="<?= htmlspecialchars($NavbarPage, ENT_QUOTES, "UTF-8") ?>"
|
aria-label="<?= htmlspecialchars($NavbarPage, ENT_QUOTES, "UTF-8") ?>"
|
||||||
title="<?= htmlspecialchars($NavbarPage, ENT_QUOTES, "UTF-8") ?>"
|
title="<?= htmlspecialchars($NavbarPage, ENT_QUOTES, "UTF-8") ?>"
|
||||||
<?= ($PageSection ?? $PageTitle ?? "") === $NavbarPage ? 'aria-current="page"' : "" ?>
|
<?= ($PageSection ?? $PageTitle ?? "") === $NavbarPage ? 'aria-current="page"' : "" ?>
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
class="NavbarIcon"
|
class="NavbarIcon"
|
||||||
src="/Assets/Img/<?= rawurlencode($NavbarPage) ?>.png"
|
src="/Assets/Img/<?= rawurlencode($NavbarData["Icon"]) ?>"
|
||||||
alt=""
|
alt=""
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<span class="NavbarText">
|
||||||
|
<?= htmlspecialchars($NavbarPage, ENT_QUOTES, "UTF-8") ?>
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
||||||
@@ -44,6 +76,10 @@ $NavbarPages = [
|
|||||||
src="/Assets/Img/Icon.png"
|
src="/Assets/Img/Icon.png"
|
||||||
alt=""
|
alt=""
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<span class="NavbarText">
|
||||||
|
Admin
|
||||||
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|||||||
+73
-97
@@ -15,12 +15,46 @@ $PageSection = "Garden";
|
|||||||
<?php require __DIR__ . "/Bits/Navbar.php"; ?>
|
<?php require __DIR__ . "/Bits/Navbar.php"; ?>
|
||||||
|
|
||||||
<main class="MainContainer">
|
<main class="MainContainer">
|
||||||
<h1>Garden</h1>
|
<h1 id="GardenPageHeading">Your Garden</h1>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
id="GardenSelector"
|
||||||
|
class="GardenSelectorPanel"
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
id="PreviousGardenButton"
|
||||||
|
class="ActionButton GardenSelectorButton"
|
||||||
|
type="button"
|
||||||
|
aria-label="Previous Garden"
|
||||||
|
>
|
||||||
|
<
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<input
|
||||||
|
id="GardenNameInput"
|
||||||
|
class="GardenNameInput"
|
||||||
|
type="text"
|
||||||
|
maxlength="32"
|
||||||
|
value="Garden"
|
||||||
|
aria-label="Garden name"
|
||||||
|
>
|
||||||
|
|
||||||
|
<button
|
||||||
|
id="NextGardenButton"
|
||||||
|
class="ActionButton GardenSelectorButton"
|
||||||
|
type="button"
|
||||||
|
aria-label="Next Garden"
|
||||||
|
>
|
||||||
|
>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<section
|
||||||
id="GardenInfoPanel"
|
id="GardenInfoPanel"
|
||||||
class="StatusPanel GardenInfoPanel"
|
class="StatusPanel GardenInfoPanel"
|
||||||
>
|
>
|
||||||
|
<h2 class="GardenInfoHeading">Info</h2>
|
||||||
|
|
||||||
<div class="GardenInfoRow GardenInfoTopRow">
|
<div class="GardenInfoRow GardenInfoTopRow">
|
||||||
<div class="GardenInfoSection GardenInfoPrimarySection">
|
<div class="GardenInfoSection GardenInfoPrimarySection">
|
||||||
<div class="GardenStatusLine">
|
<div class="GardenStatusLine">
|
||||||
@@ -130,39 +164,7 @@ $PageSection = "Garden";
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
|
|
||||||
<div
|
|
||||||
id="GardenSelector"
|
|
||||||
class="GardenSelectorPanel"
|
|
||||||
>
|
|
||||||
<button
|
|
||||||
id="PreviousGardenButton"
|
|
||||||
class="ActionButton GardenSelectorButton"
|
|
||||||
type="button"
|
|
||||||
aria-label="Previous Garden"
|
|
||||||
>
|
|
||||||
<
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<input
|
|
||||||
id="GardenNameInput"
|
|
||||||
class="GardenNameInput"
|
|
||||||
type="text"
|
|
||||||
maxlength="32"
|
|
||||||
value="Garden"
|
|
||||||
aria-label="Garden name"
|
|
||||||
>
|
|
||||||
|
|
||||||
<button
|
|
||||||
id="NextGardenButton"
|
|
||||||
class="ActionButton GardenSelectorButton"
|
|
||||||
type="button"
|
|
||||||
aria-label="Next Garden"
|
|
||||||
>
|
|
||||||
>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<section
|
<section
|
||||||
id="QuickBuy"
|
id="QuickBuy"
|
||||||
@@ -208,45 +210,48 @@ $PageSection = "Garden";
|
|||||||
></div>
|
></div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div class="GardenLayout">
|
<section
|
||||||
<section
|
id="Tools"
|
||||||
id="Plots"
|
class="Panel GardenToolsPanel"
|
||||||
class="Panel GardenPlotsPanel"
|
>
|
||||||
>
|
<h2>Tools</h2>
|
||||||
<h2>Plots</h2>
|
|
||||||
|
|
||||||
|
<div class="ToolList">
|
||||||
|
<button
|
||||||
|
id="ShovelToolButton"
|
||||||
|
class="ActionButton ToolButton ToolButtonShovel"
|
||||||
|
type="button"
|
||||||
|
>
|
||||||
|
Shovel
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section
|
||||||
|
id="Seeds"
|
||||||
|
class="Panel GardenInventoryPanel"
|
||||||
|
>
|
||||||
|
<h2>Inventory</h2>
|
||||||
|
|
||||||
|
<div
|
||||||
|
id="SeedList"
|
||||||
|
class="SeedList"
|
||||||
|
></div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section
|
||||||
|
id="Plots"
|
||||||
|
class="Panel GardenPlotsPanel"
|
||||||
|
>
|
||||||
|
<h2>Plots</h2>
|
||||||
|
|
||||||
|
<div class="GardenGridViewport">
|
||||||
<div
|
<div
|
||||||
id="GardenGrid"
|
id="GardenGrid"
|
||||||
class="GardenGrid"
|
class="GardenGrid"
|
||||||
></div>
|
></div>
|
||||||
</section>
|
</div>
|
||||||
|
</section>
|
||||||
<section
|
|
||||||
id="Seeds"
|
|
||||||
class="Panel SeedPanel"
|
|
||||||
>
|
|
||||||
<h2>Seeds</h2>
|
|
||||||
|
|
||||||
<div
|
|
||||||
id="SeedList"
|
|
||||||
class="SeedList"
|
|
||||||
></div>
|
|
||||||
|
|
||||||
<h3 class="GardenToolHeading">
|
|
||||||
Tools
|
|
||||||
</h3>
|
|
||||||
|
|
||||||
<div class="ToolList">
|
|
||||||
<button
|
|
||||||
id="ShovelToolButton"
|
|
||||||
class="ActionButton ToolButton ToolButtonShovel"
|
|
||||||
type="button"
|
|
||||||
>
|
|
||||||
Shovel
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p id="GardenMessage" class="PageMessage">
|
<p id="GardenMessage" class="PageMessage">
|
||||||
Select a seed, then choose an empty plot.
|
Select a seed, then choose an empty plot.
|
||||||
@@ -287,34 +292,6 @@ $PageSection = "Garden";
|
|||||||
</form>
|
</form>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section
|
|
||||||
id="Leaderboard"
|
|
||||||
class="Panel Leaderboard"
|
|
||||||
>
|
|
||||||
<h2>Leaderboard</h2>
|
|
||||||
|
|
||||||
<div class="LeaderboardTableContainer">
|
|
||||||
<table class="LeaderboardTable">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="LeaderboardRankColumn">
|
|
||||||
#
|
|
||||||
</th>
|
|
||||||
|
|
||||||
<th>
|
|
||||||
Username
|
|
||||||
</th>
|
|
||||||
|
|
||||||
<th class="LeaderboardDewColumn">
|
|
||||||
Dew
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
|
|
||||||
<tbody id="LeaderboardBody"></tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<script src="/Scripts/Garden/PlantImages.js"></script>
|
<script src="/Scripts/Garden/PlantImages.js"></script>
|
||||||
@@ -326,7 +303,6 @@ $PageSection = "Garden";
|
|||||||
<script src="/Scripts/Garden/Upgrades.js"></script>
|
<script src="/Scripts/Garden/Upgrades.js"></script>
|
||||||
<script src="/Scripts/Garden/MutationEngine.js"></script>
|
<script src="/Scripts/Garden/MutationEngine.js"></script>
|
||||||
<script src="/Scripts/Garden/Users.js"></script>
|
<script src="/Scripts/Garden/Users.js"></script>
|
||||||
<script src="/Scripts/Garden/Leaderboard.js"></script>
|
|
||||||
<script src="/Scripts/Garden/Garden.js"></script>
|
<script src="/Scripts/Garden/Garden.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
$PageTitle = "Social";
|
||||||
|
$PageSection = "Social";
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html lang="en" data-palette="CatppuccinMocha">
|
||||||
|
<?php require __DIR__ . "/Bits/Head.php"; ?>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<?php require __DIR__ . "/Bits/Navbar.php"; ?>
|
||||||
|
|
||||||
|
<main class="MainContainer">
|
||||||
|
<h1>Social</h1>
|
||||||
|
|
||||||
|
<section
|
||||||
|
id="Leaderboard"
|
||||||
|
class="Panel Leaderboard"
|
||||||
|
>
|
||||||
|
<h2>Leaderboard</h2>
|
||||||
|
|
||||||
|
<div class="LeaderboardTableContainer">
|
||||||
|
<table class="LeaderboardTable">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="LeaderboardRankColumn">
|
||||||
|
#
|
||||||
|
</th>
|
||||||
|
|
||||||
|
<th>
|
||||||
|
Username
|
||||||
|
</th>
|
||||||
|
|
||||||
|
<th class="LeaderboardDewColumn">
|
||||||
|
Dew
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody id="LeaderboardBody"></tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<script src="/Scripts/Garden/Save.js"></script>
|
||||||
|
<script src="/Scripts/Garden/Users.js"></script>
|
||||||
|
<script src="/Scripts/Garden/Leaderboard.js"></script>
|
||||||
|
<script src="/Scripts/Garden/Social.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -88,7 +88,6 @@ async function StartGame() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
await RenderUser();
|
await RenderUser();
|
||||||
await RenderLeaderboard();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
async function RenderLeaderboard() {
|
async function RenderLeaderboard(
|
||||||
|
CurrentUsername = null
|
||||||
|
) {
|
||||||
const Body =
|
const Body =
|
||||||
document.getElementById(
|
document.getElementById(
|
||||||
"LeaderboardBody"
|
"LeaderboardBody"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (Body === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const Response = await fetch(
|
const Response = await fetch(
|
||||||
ApiUrl + "/Leaderboard.php"
|
ApiUrl + "/Leaderboard.php"
|
||||||
@@ -53,13 +59,16 @@ async function RenderLeaderboard() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const UsernameDisplay =
|
if (CurrentUsername === null) {
|
||||||
document.getElementById(
|
const UsernameDisplay =
|
||||||
"UsernameDisplay"
|
document.getElementById(
|
||||||
);
|
"UsernameDisplay"
|
||||||
|
);
|
||||||
|
|
||||||
const CurrentUsername =
|
CurrentUsername =
|
||||||
UsernameDisplay?.textContent;
|
UsernameDisplay?.textContent ??
|
||||||
|
null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
for (
|
for (
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
async function StartSocial() {
|
||||||
|
let CurrentUsername = null;
|
||||||
|
|
||||||
|
try {
|
||||||
|
const Profile = await GetProfile();
|
||||||
|
|
||||||
|
if (
|
||||||
|
Profile.Success &&
|
||||||
|
Profile.Username !== null
|
||||||
|
) {
|
||||||
|
CurrentUsername =
|
||||||
|
Profile.Username;
|
||||||
|
}
|
||||||
|
} catch (Error) {
|
||||||
|
console.error(
|
||||||
|
"Couldn't load current profile:",
|
||||||
|
Error
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
await RenderLeaderboard(
|
||||||
|
CurrentUsername
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
document.addEventListener(
|
||||||
|
"DOMContentLoaded",
|
||||||
|
StartSocial
|
||||||
|
);
|
||||||
+27
-1
@@ -1,6 +1,25 @@
|
|||||||
const DefaultColourPickerValue = "#000000";
|
const DefaultColourPickerValue = "#000000";
|
||||||
|
|
||||||
|
|
||||||
|
function RenderGardenOwnerHeading(
|
||||||
|
Username
|
||||||
|
) {
|
||||||
|
const Heading =
|
||||||
|
document.getElementById(
|
||||||
|
"GardenPageHeading"
|
||||||
|
);
|
||||||
|
|
||||||
|
if (Heading === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Heading.textContent =
|
||||||
|
Username === null
|
||||||
|
? "Your Garden"
|
||||||
|
: Username + "'s Garden";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function IsValidPlayerColour(
|
function IsValidPlayerColour(
|
||||||
Colour
|
Colour
|
||||||
) {
|
) {
|
||||||
@@ -270,6 +289,10 @@ async function RenderUser() {
|
|||||||
|
|
||||||
UsernameForm.hidden = true;
|
UsernameForm.hidden = true;
|
||||||
|
|
||||||
|
RenderGardenOwnerHeading(
|
||||||
|
Profile.Username
|
||||||
|
);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -282,6 +305,10 @@ async function RenderUser() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
UsernameForm.hidden = false;
|
UsernameForm.hidden = false;
|
||||||
|
|
||||||
|
RenderGardenOwnerHeading(
|
||||||
|
null
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -316,7 +343,6 @@ async function SubmitUsername(
|
|||||||
"Username set.";
|
"Username set.";
|
||||||
|
|
||||||
await RenderUser();
|
await RenderUser();
|
||||||
await RenderLeaderboard();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+70
-42
@@ -87,6 +87,12 @@ body {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.GardenInfoHeading {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
border-bottom: 3px solid var(--Surface2);
|
||||||
|
}
|
||||||
|
|
||||||
.GardenInfoRow {
|
.GardenInfoRow {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat( 2, minmax(0, 1fr) );
|
grid-template-columns: repeat( 2, minmax(0, 1fr) );
|
||||||
@@ -300,11 +306,12 @@ input, button, textarea, select {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.NavbarLink {
|
.NavbarLink {
|
||||||
display: block;
|
display: flex;
|
||||||
width: 4rem;
|
width: 12rem;
|
||||||
height: 4rem;
|
height: 4rem;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
line-height: 0;
|
align-items: center;
|
||||||
|
line-height: 1;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
background-color: var(--Mantle);
|
background-color: var(--Mantle);
|
||||||
@@ -336,12 +343,24 @@ input, button, textarea, select {
|
|||||||
|
|
||||||
.NavbarIcon {
|
.NavbarIcon {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
flex: 0 0 4rem;
|
||||||
height: 100%;
|
width: 4rem;
|
||||||
|
height: 4rem;
|
||||||
object-fit: fill;
|
object-fit: fill;
|
||||||
image-rendering: auto;
|
image-rendering: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.NavbarText {
|
||||||
|
min-width: 0;
|
||||||
|
padding: 0 0.8rem;
|
||||||
|
overflow: hidden;
|
||||||
|
color: var(--Text);
|
||||||
|
font-size: 1.25rem;
|
||||||
|
line-height: 1;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
.GardenSelectorPanel {
|
.GardenSelectorPanel {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 3rem minmax(0, 1fr) 3rem;
|
grid-template-columns: 3rem minmax(0, 1fr) 3rem;
|
||||||
@@ -549,25 +568,44 @@ input, button, textarea, select {
|
|||||||
border: 3px solid var(--Surface2);
|
border: 3px solid var(--Surface2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.GardenLayout {
|
.GardenToolsPanel,
|
||||||
display: grid;
|
.GardenInventoryPanel,
|
||||||
grid-template-columns: minmax(0, 1fr) 12rem;
|
.GardenPlotsPanel {
|
||||||
gap: 1rem;
|
margin-bottom: 1rem;
|
||||||
align-items: start;
|
padding: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.GardenToolsPanel h2,
|
||||||
|
.GardenInventoryPanel h2,
|
||||||
|
.GardenPlotsPanel h2 {
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.GardenToolsPanel .ToolList,
|
||||||
|
.GardenInventoryPanel .SeedList {
|
||||||
|
flex-direction: row;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.GardenToolsPanel .ToolButton,
|
||||||
|
.GardenInventoryPanel .SeedButton {
|
||||||
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.GardenPlotsPanel {
|
.GardenPlotsPanel {
|
||||||
padding: 0.75rem;
|
|
||||||
border-color: var(--GardenBorderColour, var(--Lavender));
|
border-color: var(--GardenBorderColour, var(--Lavender));
|
||||||
}
|
}
|
||||||
|
|
||||||
.GardenPlotsPanel h2 {
|
.GardenGridViewport {
|
||||||
margin-bottom: 0.75rem;
|
width: 100%;
|
||||||
|
overflow-x: auto;
|
||||||
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.GardenGrid {
|
.GardenGrid {
|
||||||
--GardenWidth: 3;
|
--GardenWidth: 3;
|
||||||
display: grid;
|
display: grid;
|
||||||
|
width: 100%;
|
||||||
grid-template-columns: repeat( var(--GardenWidth), minmax(0, 1fr) );
|
grid-template-columns: repeat( var(--GardenWidth), minmax(0, 1fr) );
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
@@ -658,17 +696,8 @@ input, button, textarea, select {
|
|||||||
--GrowthColour: var(--Yellow);
|
--GrowthColour: var(--Yellow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.SeedPanel {
|
|
||||||
padding: 0.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SeedPanel h2 {
|
|
||||||
margin-bottom: 0.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SeedList {
|
.SeedList {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -687,7 +716,6 @@ input, button, textarea, select {
|
|||||||
|
|
||||||
.ToolList {
|
.ToolList {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
|
||||||
gap: 0.5rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1060,35 +1088,35 @@ input, button, textarea, select {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.NavbarLink {
|
.NavbarLink {
|
||||||
flex: 0 0 3.5rem;
|
flex: 0 0 9.5rem;
|
||||||
|
width: 9.5rem;
|
||||||
|
height: 3.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.NavbarIcon {
|
||||||
|
flex-basis: 3.5rem;
|
||||||
width: 3.5rem;
|
width: 3.5rem;
|
||||||
height: 3.5rem;
|
height: 3.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.NavbarText {
|
||||||
|
padding: 0 0.6rem;
|
||||||
|
font-size: 1.05rem;
|
||||||
|
}
|
||||||
|
|
||||||
.MainContainer {
|
.MainContainer {
|
||||||
grid-column: 1;
|
grid-column: 1;
|
||||||
grid-row: 2;
|
grid-row: 2;
|
||||||
}
|
padding: 1rem;
|
||||||
|
|
||||||
.GardenLayout {
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SeedPanel {
|
|
||||||
grid-row: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SeedList, .ToolList {
|
|
||||||
flex-direction: row;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.SeedButton, .ToolButton {
|
|
||||||
width: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.GardenGrid {
|
.GardenGrid {
|
||||||
grid-row: 2;
|
width: max-content;
|
||||||
|
min-width: 100%;
|
||||||
|
grid-template-columns: repeat(
|
||||||
|
var(--GardenWidth),
|
||||||
|
minmax(4.25rem, 1fr)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
.LeaderboardRankColumn, .LeaderboardRank {
|
.LeaderboardRankColumn, .LeaderboardRank {
|
||||||
|
|||||||
Reference in new issue
Block a user