From 2805d68c52914a32281b49637be5a2f2dde974f4 Mon Sep 17 00:00:00 2001 From: Notoric Date: Tue, 11 Jun 2024 01:58:35 +0100 Subject: [PATCH] Footer & Profile link --- laravel/public/css/default.css | 54 ++++++++++++++++++++++- laravel/resources/views/default.blade.php | 4 ++ laravel/resources/views/details.blade.php | 2 +- laravel/resources/views/profile.blade.php | 2 +- 4 files changed, 59 insertions(+), 3 deletions(-) diff --git a/laravel/public/css/default.css b/laravel/public/css/default.css index c0d421a..9fd0243 100644 --- a/laravel/public/css/default.css +++ b/laravel/public/css/default.css @@ -14,6 +14,9 @@ body { font-family: 'Roboto', sans-serif; background-color: var(--background); color: white; + min-height: 100vh; + display: flex; + flex-direction: column; } input:focus { @@ -372,7 +375,7 @@ a button { justify-content: space-between; } -#graphs h2 { +#graphs h2, #stats h2 { margin-bottom: 20px; } @@ -381,3 +384,52 @@ a button { height: 400px; } +table { + font-size: 1.5em; + border-collapse: collapse; +} + +table td, table th { + padding: 10px; + margin: 0; + gap: 0; + border: 0; +} + +table td { + border-top: 1px solid #888; +} + +table th, table td { + border-right: 1px solid #888; +} + +table th:last-child, table td:last-child, table th:first-child, table td:first-child{ + text-align: center; +} + +table th:last-child, table td:last-child { + border-right: none; +} + +table { + margin-bottom: 40px; +} + +footer { + margin-top: auto; + height: 50px; + background: var(--foreground); + width: calc(100vw - 60px); + color: white; + display: flex; + flex-direction: row; + justify-content: space-between; + padding-left: 30px; + padding-right: 30px; + bottom: 0; +} + +footer p { + width: auto; +} \ No newline at end of file diff --git a/laravel/resources/views/default.blade.php b/laravel/resources/views/default.blade.php index 8b4cc38..d48bb3f 100644 --- a/laravel/resources/views/default.blade.php +++ b/laravel/resources/views/default.blade.php @@ -26,6 +26,10 @@
@yield('content')
+ @yield('scripts') \ No newline at end of file diff --git a/laravel/resources/views/details.blade.php b/laravel/resources/views/details.blade.php index aacf3e2..ef82a1b 100644 --- a/laravel/resources/views/details.blade.php +++ b/laravel/resources/views/details.blade.php @@ -78,7 +78,7 @@
-

Link Clicks

+

Clicks by Country

diff --git a/laravel/resources/views/profile.blade.php b/laravel/resources/views/profile.blade.php index bc67c2c..e23eef0 100644 --- a/laravel/resources/views/profile.blade.php +++ b/laravel/resources/views/profile.blade.php @@ -17,7 +17,7 @@ @foreach ($shortlinks as $shortlink) - +
📍
{{ $shortlink['shortid'] }}shortid) }}">{{ $shortlink['shortid'] }} {{ $shortlink['destination'] }} {{ $shortlink['created_at'] }}