template and asset cleanup

This commit is contained in:
Sky Johnson 2025-08-27 11:43:17 -05:00
parent 41eed92929
commit 01277b4e4c
13 changed files with 27 additions and 19 deletions

View File

@ -585,4 +585,14 @@ hr {
.hidden {
display: none;
}
}
div.top-nav {
& > a {
font-weight: normal;
&:not(:last-of-type) {
margin-right: 1rem;
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 402 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 474 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 523 B

View File

Before

Width:  |  Height:  |  Size: 147 B

After

Width:  |  Height:  |  Size: 147 B

View File

Before

Width:  |  Height:  |  Size: 121 B

After

Width:  |  Height:  |  Size: 121 B

View File

Before

Width:  |  Height:  |  Size: 112 B

After

Width:  |  Height:  |  Size: 112 B

View File

@ -29,17 +29,15 @@
<h5>Town Maps</h5>
{if #_towns > 0}
{for t in _towns}
{if user.HasTownMap(t.ID)}
{if town != nil and t.Name == town.Name}
<span>{t.Name} <i>(here)</i></span>
{else}
{if user.TP < t.TPCost}
<span class="light">{t.Name}</span>
{else}
<a class="teleport-link" href="/teleport/{t.ID}" data-town="{t.Name}" data-cost="{t.TPCost}">{t.Name}</a>
<a class="teleport-link" href="/teleport/{t.ID}" data-town="{t.Name}" data-cost="{t.TPCost}">{t.Name}</a>
{/if}
{/if}
{/if}
{/for}
{else}
<i>No town maps</i>

View File

@ -32,7 +32,7 @@
<h5>Equipment</h5>
<div>
<img src="/assets/images/icon_weapon.gif" alt="Weapon" title="Weapon">
<img src="/assets/images/icons/weapon.gif" alt="Weapon" title="Weapon">
{if user.WeaponName != ""}
{user.WeaponName}
{else}
@ -40,7 +40,7 @@
{/if}
</div>
<div>
<img src="/assets/images/icon_armor.gif" alt="Armor" title="Armor">
<img src="/assets/images/icons/armor.gif" alt="Armor" title="Armor">
{if user.ArmorName != ""}
{user.ArmorName}
{else}
@ -48,7 +48,7 @@
{/if}
</div>
<div>
<img src="/assets/images/icon_shield.gif" alt="Shield" title="Shield">
<img src="/assets/images/icons/shield.gif" alt="Shield" title="Shield">
{if user.ShieldName != ""}
{user.ShieldName}
{else}

View File

@ -1,8 +1,9 @@
{if authenticated}
<a class="logout-link"><img src="/assets/images/button_logout.gif" alt="Log Out" title="Log Out"></a>
<a href="/help"><img src="/assets/images/button_help.gif" alt="Help" title="Help"></a>
{else}
<a href="/login"><img src="/assets/images/button_login.gif" alt="Log In" title="Log In"></a>
<a href="/register"><img src="/assets/images/button_register.gif" alt="Register" title="Register"></a>
<a href="/help"><img src="/assets/images/button_help.gif" alt="Help" title="Help"></a>
{/if}
<div class="top-nav">
{if authenticated}
<a class="logout-link seagram">Log Out</a>
{else}
<a href="/login" class="seagram">Log In</a>
<a href="/register" class="seagram">Register</a>
{/if}
<a href="/help" class="seagram">Help</a>
</div>

View File

@ -15,13 +15,13 @@
<tr>
<td>
{if item.Type == 1}
<img src="/assets/images/icon_weapon.gif" alt="Weapon" title="Weapon">
<img src="/assets/images/icons/weapon.gif" alt="Weapon" title="Weapon">
{/if}
{if item.Type == 2}
<img src="/assets/images/icon_armor.gif" alt="Armor" title="Armor">
<img src="/assets/images/icons/armor.gif" alt="Armor" title="Armor">
{/if}
{if item.Type == 3}
<img src="/assets/images/icon_shield.gif" alt="Shield" title="Shield">
<img src="/assets/images/icons/shield.gif" alt="Shield" title="Shield">
{/if}
</td>
<td>

View File

@ -4,7 +4,6 @@
<div class="town">
<section class="options">
<h2 class="title mb-1">Welcome to {town.Name}</h2>
<b>Town Options</b><br>
<ul class="unstyled">
<li><a href="/town/inn">Rest at the Inn</a></li>
<li><a href="/town/shop">Browse the Shop</a></li>