Merge pull request 'fix: minor layout changes and cleanup.' (#10) from fix/minor_cleanup into master

Reviewed-on: #10
This commit is contained in:
Paul Couture 2025-12-08 12:10:03 -05:00
commit 8b0f496db3
4 changed files with 37 additions and 4 deletions

View File

@ -51,10 +51,16 @@ class ArtworkController extends Controller
* *
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function create() public function create(Request $request)
{ {
$user = auth()->user(); $user = auth()->user();
$podcasts = $this->publishedPodcasts(); $podcasts = $this->publishedPodcasts();
$request->session()->flash('success', '<h4>PLEASE READ!</h4>
<p>When you submit your artwork, it will be stored for approval,
this is because malicious users were using the site to dox and
other vile behaviors. You will not see it in the list of artworks
until it has been approved.</p>
<h4>YOU DON\'T HAVE TO SUBMIT IT MULTIPLE TIMES!</h4>');
return view('artworks.submit', [ return view('artworks.submit', [
'user' => $user, 'user' => $user,
'pageTitle' => 'Submit New Artwork', 'pageTitle' => 'Submit New Artwork',
@ -170,7 +176,8 @@ class ArtworkController extends Controller
->save(Storage::disk('static')->path('/thumbnails') . '/' . $artwork->filename); ->save(Storage::disk('static')->path('/thumbnails') . '/' . $artwork->filename);
ImageOptimizer::optimize(Storage::disk('static')->path('/artworks/' . $artwork->filename)); ImageOptimizer::optimize(Storage::disk('static')->path('/artworks/' . $artwork->filename));
ImageOptimizer::optimize(Storage::disk('static')->path('/thumbnails/' . $artwork->filename)); ImageOptimizer::optimize(Storage::disk('static')->path('/thumbnails/' . $artwork->filename));
return redirect('/artworks/' . $artwork->id); $request->session()->flash('success', '<h4>Your artwork has been submitted successfully</h4><p>Someone with permission will approve it for public consumption shortly, <strong>you do not need to submit it again.</strong> - TYFYC and ITM!</p>');
return redirect('/artworks');
} }
/** /**

View File

@ -18,6 +18,19 @@
@endsection @endsection
@section('page-content') @section('page-content')
<section class="pt-120 pb-90"> <section class="pt-120 pb-90">
@if (session('success'))
<div class="container">
<div class="row">
<div class="col">
<div class="alert alert-success border border-success bg-transparent alert-dismissible" role="alert">
{!! session('success') !!}
<button type="button" class="btn-close text-success" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
</div>
</div>
</div>
</div>
@endif
<div class="container"> <div class="container">
<form action="/create-artwork" method="POST" name="create-artwork" enctype="multipart/form-data"> <form action="/create-artwork" method="POST" name="create-artwork" enctype="multipart/form-data">
@csrf @csrf

View File

@ -21,6 +21,19 @@
@endsection @endsection
@section('page-content') @section('page-content')
<section class="pt-120 pb-90 masonary-wrapper-activation"> <section class="pt-120 pb-90 masonary-wrapper-activation">
@if (session('success'))
<div class="container">
<div class="row">
<div class="col">
<div class="alert alert-success border border-success bg-transparent alert-dismissible" role="alert">
{!! session('success') !!}
<button type="button" class="btn-close text-success" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
</div>
</div>
</div>
</div>
@endif
<div class="container"> <div class="container">
<div class="row"> <div class="row">
{{ $artworks->links() }} {{ $artworks->links() }}

View File

@ -6,9 +6,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="csrf-token" content="{{ csrf_token() }}"> <meta name="csrf-token" content="{{ csrf_token() }}">
@if(View::hasSection('page-title')) @if(View::hasSection('page-title'))
<title>.: @yield('page-title') - No Agenda Art Generator :.</title> <title>@yield('page-title') .:. No Agenda Art Generator</title>
@else @else
<title>.: No Agenda Art Generator :.</title> <title>No Agenda Art Generator</title>
@endif @endif
@include('partials.metabranding') @include('partials.metabranding')
@include('partials/favicon') @include('partials/favicon')