Skip to content

Commit 1d2df13

Browse files
committed
Added footer to Admin Panel
I re-enabled the footer disabled by Latuminggi's LittleLink Admin fork. This footer adds a Home button which brings you to the landing page, in addition to Terms, Privacy and Contact buttons. I also edited the policy pages for the buttons named above to include the new logo as well as the dark mode detection.
1 parent 5751dbc commit 1d2df13

File tree

3 files changed

+48
-27
lines changed

3 files changed

+48
-27
lines changed

database/seeders/PageSeeder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function run()
2626
',
2727

2828
'contact' => '
29-
Send your suggestions and criticisms to khashayar.zavosh@gmail.com
29+
Send your suggestions and criticisms to info@littlelink-custom.com
3030
',
3131

3232
'home_message' => '

resources/views/layouts/sidebar.blade.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ function update_color_scheme() {
109109
</form>
110110
</ul>
111111
112-
<div class="footer" style="display:none">
112+
<div class="footer">
113113
<p>
114-
Copyright &copy; @php echo date('Y'); @endphp <i class="icon-heart" aria-hidden="true"></i> </br>
115-
<a href="/" target="_blank">Home</a> .
114+
Copyright &copy; @php echo date('Y'); @endphp {{ config('app.name') }}<i class="icon-heart" aria-hidden="true"></i> </br>
115+
<a href="{{ url('') }}/">Home</a> .
116116
<a href="{{ url('') }}/pages/terms" target="_blank">Terms</a> .
117117
<a href="{{ url('') }}/pages/privacy" target="_blank">Privacy</a> .
118118
<a href="{{ url('') }}/pages/contact" target="_blank">Contact</a>

resources/views/pages.blade.php

+44-23
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,55 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
5-
<!-- Page Information
6-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
74
<meta charset="utf-8">
8-
<title>{{ config('app.name' )}}</title>
9-
<meta name="description" content="Find us online!">
10-
<meta name="author" content="Seth Cottle">
11-
12-
<!-- Mobile Specific Metas
13-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
5+
<title>{{ config('app.name') }}</title>
146
<meta name="viewport" content="width=device-width, initial-scale=1">
15-
16-
<!-- FONT
17-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
18-
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,800&display=swap" rel="stylesheet">
19-
20-
<!-- CSS
21-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
7+
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,600,800&display=swap" rel="stylesheet">
228
<link rel="stylesheet" href="{{ asset('littlelink/css/normalize.css') }}">
239
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}">
2410
<link rel="stylesheet" href="{{ asset('littlelink/css/brands.css') }}">
25-
26-
<!-- Favicon
27-
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
11+
<link rel="stylesheet" href="{{ asset('littlelink/css/hover-min.css') }}">
12+
<link rel="stylesheet" href="{{ asset('littlelink/css/animate.css') }}">
2813
@if(file_exists(base_path("littlelink/images/avatar.png" )))
2914
<link rel="icon" type="image/png" href="{{ asset('littlelink/images/avatar.png') }}">
3015
@else
3116
<link rel="icon" type="image/svg+xml" href="{{ asset('littlelink/images/logo.svg') }}">
3217
@endif
3318

19+
<!-- begin dark mode detection -->
20+
<script src="{{ asset('littlelink/js/js.cookie.min.js') }}"></script>
21+
<script>
22+
// code to set the `color_scheme` cookie
23+
var $color_scheme = Cookies.get("color_scheme");
24+
function get_color_scheme() {
25+
return (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches) ? "dark" : "light";
26+
}
27+
function update_color_scheme() {
28+
Cookies.set("color_scheme", get_color_scheme());
29+
}
30+
// read & compare cookie `color-scheme`
31+
if ((typeof $color_scheme === "undefined") || (get_color_scheme() != $color_scheme))
32+
update_color_scheme();
33+
// detect changes and change the cookie
34+
if (window.matchMedia)
35+
window.matchMedia("(prefers-color-scheme: dark)").addListener( update_color_scheme );
36+
// reloads page to apply the dark mode cookie
37+
window.onload = function() {
38+
if(!window.location.hash && get_color_scheme() == "dark" && (get_color_scheme() != $color_scheme)) {
39+
window.location = window.location + '#dark';
40+
window.location.reload();
41+
}
42+
}
43+
</script>
44+
<?php // loads dark mode CSS if dark mode detected
45+
$color_scheme = isset($_COOKIE["color_scheme"]) ? $_COOKIE["color_scheme"] : false; ?>
46+
@if ($color_scheme == 'dark')
47+
<!-- switch the two <link> Tags below to default to dark mode if cookie detection fails -->
48+
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-dark.css') }}">
49+
@else
50+
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}">
51+
@endif
52+
<!-- end dark mode detection -->
3453
</head>
3554
<body>
3655

@@ -42,13 +61,15 @@
4261
<div class="column" style="margin-top: 10%">
4362
<!-- Your Image Here -->
4463
@if(file_exists(base_path("littlelink/images/avatar.png" )))
45-
<img src="{{ asset('littlelink/images/logo.svg') }}" srcset="{{ asset('littlelink/images/[email protected] 2x') }}">
64+
<img src="{{ asset('littlelink/images/avatar.png') }}" srcset="{{ asset('littlelink/images/[email protected] 2x') }}" width="100px" height="100px">
4665
@else
47-
<img src="https://prieber.com/social/littlelink/images/logo.svg" alt="Logo"></img>
66+
<div class="parent fadein" >
67+
<img class="image1 rotate" src="{{ asset('littlelink/images/just-gear.svg') }}" alt="Logo"></img>
68+
<img class="image2" src="{{ asset('littlelink/images/just-ll.svg') }}" alt="Logo"></img>
69+
</div>
4870
@endif
49-
<br>
5071

51-
<div class="jumbotron">
72+
<div class="jumbotron" style="margin-top: 10%">
5273
<h1 class="display-4">{{ $name }}</h1>
5374
<hr class="my-4">
5475
<p>

0 commit comments

Comments
 (0)