From 5b55e21659e5af15b98786bf400a8fe7eea5b07d Mon Sep 17 00:00:00 2001 From: Rico van Zelst Date: Wed, 27 Mar 2024 01:04:40 +0100 Subject: [PATCH] feat: Add support page - Added a new method in HomeController to handle the support page. - Created a new blade template for the support page with donation options. --- app/Http/Controllers/HomeController.php | 5 ++ .../buymeacoffee/floating.blade.php | 3 ++ resources/views/components/footer.blade.php | 6 ++- resources/views/sales/index.blade.php | 8 ++-- resources/views/support.blade.php | 47 +++++++++++++++++++ routes/web.php | 2 + 6 files changed, 67 insertions(+), 4 deletions(-) create mode 100644 resources/views/components/buymeacoffee/floating.blade.php create mode 100644 resources/views/support.blade.php diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 3588889..8758345 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -21,4 +21,9 @@ class HomeController extends Controller 'upcomingSkins' => $upcomingSkins, ]); } + + public function support() + { + return view('support'); + } } diff --git a/resources/views/components/buymeacoffee/floating.blade.php b/resources/views/components/buymeacoffee/floating.blade.php new file mode 100644 index 0000000..f0f8527 --- /dev/null +++ b/resources/views/components/buymeacoffee/floating.blade.php @@ -0,0 +1,3 @@ + diff --git a/resources/views/components/footer.blade.php b/resources/views/components/footer.blade.php index 105e2d8..8106d43 100644 --- a/resources/views/components/footer.blade.php +++ b/resources/views/components/footer.blade.php @@ -20,6 +20,10 @@ Contact +
  • + Support +
  • Privacy @@ -38,7 +42,7 @@ style="width: 250px; height: 54px;" width="250" height="54"/> Sitemap © {{date('Y')}} + + @endsection diff --git a/resources/views/support.blade.php b/resources/views/support.blade.php new file mode 100644 index 0000000..93fc5a7 --- /dev/null +++ b/resources/views/support.blade.php @@ -0,0 +1,47 @@ +@extends('layouts.app') + +@section('title', 'Heimerdinger.LoL • Support the Project') +@section('description', 'Support the Heimerdinger.LoL project by donating through Buy Me a Coffee or GitHub Sponsors. + Your donations help keep the project running!') + +@section('content') +
    +
    +
    +

    + Support the Project

    + +

    + Heimerdinger.lol is ran and maintained by a single developer. If you enjoy the content and would like to + support the project, you can do so by donating through Buy Me a Coffee or GitHub Sponsors. + +

    +

    + I am accepting donations through Buy Me a Coffee and GitHub Sponsors. If you enjoy the + content that Heimerdinger.lol provides and would like to support the project, you can do so by donating + through the following + platforms. All donations are greatly appreciated and will help keep the project running. + Donations will be used to cover the costs of hosting, domain, and other expenses related to the project. +

    +
    +
    +
    + +
    +
    + +
    + +
    + Excited Cat Emote +
    +
    +
    +
    + + +@endsection diff --git a/routes/web.php b/routes/web.php index 70e9a9b..070e175 100644 --- a/routes/web.php +++ b/routes/web.php @@ -33,6 +33,8 @@ use Spatie\Sheets\Sheet; Route::get('/', static fn () => (new HomeController())->index())->name('home'); +Route::get('/support-me', static fn () => (new HomeController())->support())->name('support'); + // Champions Route::get('/champions', static fn () => (new ChampionController())->index())->name('champions.index'); Route::get('/champion/{champion}', static fn (Champion $champion) => (new ChampionController())->show($champion))->name('champions.show');