From 5266f0562c42675d6d5fa1da6a3a52c9373e3453 Mon Sep 17 00:00:00 2001 From: Notoric Date: Thu, 6 Mar 2025 21:12:03 +0000 Subject: [PATCH] added basic config --- README.md | 6 +++++- laravel/config/user-config.php | 7 +++++++ laravel/public/css/default.css | 6 +----- laravel/resources/views/default.blade.php | 14 ++++++++++++-- 4 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 laravel/config/user-config.php diff --git a/README.md b/README.md index 3f79184..e13e760 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # slink -Slink is a URL Shortener written in Laravel. \ No newline at end of file +Slink is a URL Shortener written in Laravel. + +Users must create an account before they shorten a link, as the account is used to managed the short links. + +This app is customisable via the config located in config/user-config.php \ No newline at end of file diff --git a/laravel/config/user-config.php b/laravel/config/user-config.php new file mode 100644 index 0000000..1b8e01e --- /dev/null +++ b/laravel/config/user-config.php @@ -0,0 +1,7 @@ + env('accent_color', '#ff0050'), + 'footer_left' => env('footer_left', 'Find the repository on GitHub'), + 'footer_right' => env('footer_right', 'Made by [Notoric]'), +]; \ No newline at end of file diff --git a/laravel/public/css/default.css b/laravel/public/css/default.css index 07b3965..6047b01 100644 --- a/laravel/public/css/default.css +++ b/laravel/public/css/default.css @@ -142,11 +142,7 @@ header nav a { } .form-container button:hover, button[type="submit"]:hover { - box-shadow: 0px 0px 10px 0 #ff005080; -} - -.form-container button:active, button[type="submit"]:active { - background-color: #cc0035; + box-shadow: 0px 0px 15px -5px var(--primary); } .form-container .error { diff --git a/laravel/resources/views/default.blade.php b/laravel/resources/views/default.blade.php index d48bb3f..ae7efac 100644 --- a/laravel/resources/views/default.blade.php +++ b/laravel/resources/views/default.blade.php @@ -7,6 +7,11 @@ @yield('head') +
@@ -26,9 +31,14 @@
@yield('content')
+ @php + $footer = []; + $footer['left'] = config('user-config.footer_left'); + $footer['right'] = config('user-config.footer_right'); + @endphp @yield('scripts')