|
11 | 11 | <!-- This shows a preview for title, description and avatar image of users profiles if shared on social media sites --> |
12 | 12 |
|
13 | 13 | <!-- Facebook Meta Tags --> |
14 | | - <meta property="og:url" content="{{ url('') }}/{{ "@".$littlelink_name }}"> |
| 14 | + <meta property="og:url" content="{{ url('') }}/@littlelink_name"> |
15 | 15 | <meta property="og:type" content="website"> |
16 | 16 | <meta property="og:title" content="{{ $userinfo->name }}"> |
17 | 17 | <meta property="og:description" content="{{ $userinfo->littlelink_description }}"> |
|
23 | 23 |
|
24 | 24 | <!-- Twitter Meta Tags --> |
25 | 25 | <meta name="twitter:card" content="summary_large_image"> |
26 | | - <meta property="twitter:domain" content="{{ url('') }}/{{ "@".$littlelink_name }}"> |
27 | | - <meta property="twitter:url" content="{{ url('') }}/{{ "@".$littlelink_name }}"> |
| 26 | + <meta property="twitter:domain" content="{{ url('') }}/@littlelink_name"> |
| 27 | + <meta property="twitter:url" content="{{ url('') }}/@littlelink_name"> |
28 | 28 | <meta name="twitter:title" content="{{ $userinfo->littlelink_name }}"> |
29 | 29 | <meta name="twitter:description" content="{{ $userinfo->littlelink_description }}"> |
30 | 30 | @if(file_exists(base_path("img/$littlelink_name" . ".png" ))) |
|
40 | 40 |
|
41 | 41 | <link href="//fonts.googleapis.com/css?family=Open+Sans:400,600,800&display=swap" rel="stylesheet"> |
42 | 42 | <link rel="stylesheet" href="{{ asset('littlelink/css/normalize.css') }}"> |
43 | | - <link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}"> |
| 43 | + <link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-auto.css') }}"> |
44 | 44 | <link rel="stylesheet" href="{{ asset('littlelink/css/brands.css') }}"> |
45 | 45 | <link rel="stylesheet" href="{{ asset('littlelink/css/hover-min.css') }}"> |
46 | 46 | <link rel="stylesheet" href="{{ asset('littlelink/css/animate.css') }}"> |
|
50 | 50 | @else |
51 | 51 | <link rel="icon" type="image/svg+xml" href="{{ asset('littlelink/images/logo.svg') }}"> |
52 | 52 | @endif |
53 | | - <style> |
54 | | - .container { max-width: 1080px !important; } |
55 | | - .button-title { |
56 | | - color: white !important; |
57 | | - background: #505050 !important; |
58 | | - height: auto !important; |
59 | | - line-height: 28px !important; |
60 | | - width: auto !important; |
61 | | - padding: 10px !important; |
62 | | - min-width: 300px !important; |
63 | | - } |
64 | | - |
65 | | - @media (max-width: 767px) { |
66 | | - } |
67 | | - </style> |
68 | | - |
69 | | - <!-- begin dark mode detection --> |
70 | | - <script src="{{ asset('littlelink/js/js.cookie.min.js') }}"></script> |
71 | | - <script> |
72 | | - // code to set the `color_scheme` cookie |
73 | | - var $color_scheme = Cookies.get("color_scheme"); |
74 | | - function get_color_scheme() { |
75 | | - return (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches) ? "dark" : "light"; |
76 | | - } |
77 | | - function update_color_scheme() { |
78 | | - Cookies.set("color_scheme", get_color_scheme()); |
79 | | - } |
80 | | - // read & compare cookie `color-scheme` |
81 | | - if ((typeof $color_scheme === "undefined") || (get_color_scheme() != $color_scheme)) |
82 | | - update_color_scheme(); |
83 | | - // detect changes and change the cookie |
84 | | - if (window.matchMedia) |
85 | | - window.matchMedia("(prefers-color-scheme: dark)").addListener( update_color_scheme ); |
86 | | - // reloads page to apply the dark mode cookie |
87 | | - window.onload = function() { |
88 | | - if(!window.location.hash && get_color_scheme() == "dark" && (get_color_scheme() != $color_scheme)) { |
89 | | - window.location = window.location + '#dark'; |
90 | | - window.location.reload(); |
91 | | - } |
92 | | - } |
93 | | - </script> |
94 | | - <?php // loads dark mode CSS if dark mode detected |
95 | | - $color_scheme = isset($_COOKIE["color_scheme"]) ? $_COOKIE["color_scheme"] : false; ?> |
96 | | - @if ($color_scheme == 'dark') |
97 | | - <!-- switch the two <link> Tags below to default to dark mode if cookie detection fails --> |
98 | | - <link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-dark.css') }}"> |
99 | | - @else |
100 | | - <link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}"> |
101 | | - @endif |
102 | | - <!-- end dark mode detection --> |
103 | 53 | </head> |
104 | 54 | <body> |
105 | 55 |
|
|
0 commit comments