mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00

- bundle js using parcel - add markdown editor, html editor, dropdown and tooltip features using third-party packages - integrate optimized inline svg icons from RemixIcon using svgo and a php helper - add scripts in package.json to bundle icons, images, css and js - update tailwind config to add purgecss lookups and typography plugin - refactor views to add missing pages in user journey - update admin's holy grail layout using css grid
25 lines
1.2 KiB
PHP
25 lines
1.2 KiB
PHP
<header class="<?= $class ?>">
|
|
<a href="<?= route_to(
|
|
'admin_home'
|
|
) ?>" class="inline-flex items-center text-xl">
|
|
<?= svg('logo-castopod', 'text-3xl mr-2 -ml-2') ?>
|
|
Admin
|
|
</a>
|
|
<div class="relative ml-auto" data-toggle="dropdown">
|
|
<button type="button" class="inline-flex items-center px-2 py-1 outline-none focus:shadow-outline" id="myAccountDropdown" data-popper="button" aria-haspopup="true" aria-expanded="false">
|
|
Hey <?= user()->username ?>
|
|
<?= icon('caret-down', 'ml-2') ?>
|
|
</button>
|
|
<nav class="absolute z-10 flex-col hidden py-2 text-black whitespace-no-wrap bg-white border rounded shadow" aria-labelledby="myAccountDropdown" data-popper="menu" data-popper-placement="bottom-end">
|
|
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
|
'myAccount'
|
|
) ?>">My Account</a>
|
|
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
|
'myAccount_change-password'
|
|
) ?>">Change password</a>
|
|
<a class="px-4 py-1 hover:bg-gray-100" href="<?= route_to(
|
|
'logout'
|
|
) ?>">Logout</a>
|
|
</nav>
|
|
</div>
|
|
</header>
|