added basic config

This commit is contained in:
Notoric 2025-03-06 21:12:03 +00:00
parent 6ede150fc6
commit 5266f0562c
4 changed files with 25 additions and 8 deletions

View File

@ -1,2 +1,6 @@
# slink
Slink is a URL Shortener written in Laravel.
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

View File

@ -0,0 +1,7 @@
<?php
return [
'accent_color' => env('accent_color', '#ff0050'),
'footer_left' => env('footer_left', 'Find the repository on <a href="https://github.com/Notoric/slink">GitHub</a>'),
'footer_right' => env('footer_right', 'Made by <a href="https://notoric.net">[Notoric]</a>'),
];

View File

@ -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 {

View File

@ -7,6 +7,11 @@
@yield('head')
</head>
<body>
<style>
:root {
--primary: {{ config('user-config.accent_color') }};
}
</style>
<header>
<div class="container">
<a id="logo" href="/home">[slink]</a>
@ -26,9 +31,14 @@
<main>
@yield('content')
</main>
@php
$footer = [];
$footer['left'] = config('user-config.footer_left');
$footer['right'] = config('user-config.footer_right');
@endphp
<footer>
<p>Find the repository on <a href="https://github.com/Notoric/slink">GitHub</a></p>
<p>Made by <a href="https://notoric.net">[Notoric]</a></p>
<p>{!! $footer['left'] !!}</p>
<p>{!! $footer['right'] !!}</p>
</footer>
@yield('scripts')
</body>