Skip to content

Commit

Permalink
Minor fixes and bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamKyle committed Oct 12, 2023
1 parent 14260c1 commit 2985387
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions app/Flare/View/Livewire/Admin/Maps/MapsTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ public function columns(): array {
Column::make('Name')->searchable()->format(function ($value, $row) {
$gameMapId = GameMap::where('name', $value)->first()->id;

if (auth()->user()->hasRole('Admin')) {
return '<a href="/admin/maps/'.$gameMapId.'">'.$row->name.'</a>';
if (!is_null(auth()->user())) {
if (auth()->user()->hasRole('Admin')) {
return '<a href="/admin/maps/' . $gameMapId . '">' . $row->name . '</a>';
}
}

return '<a href="/information/map/'.$gameMapId.'" >'.$row->name . '</a>';
return '<a href="/information/map/' . $gameMapId . '" >' . $row->name . '</a>';
})->html(),
Column::make('Default Map?', 'default')->searchable()->sortable()->format(function ($value, $row) {
return $value ? 'Yes' : 'No';
Expand Down
8 changes: 4 additions & 4 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@endpush

@section('content')
<div class="container mx-auto px-4 mb-5">
<div class="container mx-auto lg:px-4 mb-5">
<div class="text-center mb-10 lg:mt-10">
<h1 class="mb-5 font-thin text-7xl dark:text-gray-300 text-gray-800 text-4xl md:text-9xl">Planes of Tlessa</h1>
<p class="mb-10 dark:text-gray-300 text-gray-800 italic">A world full of mystery and exploration.</p>
Expand Down Expand Up @@ -323,12 +323,12 @@ class="shadow rounded max-w-full h-auto align-middle border-none img-fluid gligh
</x-core.cards.feature-card>
</div>

<div class="text-center mt-4 w-full md:w-2/3 m-auto">
<div class="text-center mt-4 w-full md:w-2/3 m-auto mb-8">
<h4 class="mb-5 font-thin text-3xl dark:text-gray-300 text-gray-800">And so many more!</h1>
<p class="mb-10 dark:text-gray-300 text-gray-800 italic">Planes of tlessa has so many rich and diverse
features its hard to showcase them all!</p>
<div class="text-center w-full lg:w-1/3 mr-auto ml-auto">
<x-core.buttons.link-buttons.success-button css="mr-2" href="{{ route('game.features') }}">
<x-core.buttons.link-buttons.success-button css="mr-2 mb-4" href="{{ route('game.features') }}">
See all the features
</x-core.buttons.link-buttons.success-button>
</div>
Expand All @@ -340,7 +340,7 @@ class="shadow rounded max-w-full h-auto align-middle border-none img-fluid gligh
FAQ
</h2>
<dl class="mt-3">
<dt>Are there Adds?</dt>
<dt>Are there Ads?</dt>
<dd>
No. There are no adds whatsoever.
</dd>
Expand Down

0 comments on commit 2985387

Please sign in to comment.