Skip to content

Commit f5725bb

Browse files
committed
Added custom icons to LittleLink page
Enabled custom buttons on LittleLink pages to now use the upcoming custom icons from the new Button Editor. The Custom button now uses Font Awesome icon by default.  I used the Font Awesome library provided and hosted by Cloud Flare. I can include the library locally if this is preferred, contact me on our discord if I should implement this. See: https://blog.littlelink-custom.com/upcoming-features/ And: https://blog.littlelink-custom.com/progress-of-the-new-button-editor/
1 parent ba6ffe1 commit f5725bb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

resources/views/littlelink.blade.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
@endif
3535

3636
<!--#### END Meta Tags social media preview images ####-->
37-
37+
38+
<!-- Custom icons font-awesome -->
39+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css">
40+
3841
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,600,800&display=swap" rel="stylesheet">
3942
<link rel="stylesheet" href="{{ asset('littlelink/css/normalize.css') }}">
4043
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}">
@@ -196,9 +199,9 @@ function get_operating_system() {
196199
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-title button hvr-grow hvr-icon-wobble-vertical" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank">
197200
{{ $link->title }}</a></div>
198201
@elseif($link->name === "custom" and $link->custom_css === "")
199-
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-{{ $link->name }} button hvr-grow hvr-icon-wobble-vertical" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><img class="icon hvr-icon" src="{{ asset('\/littlelink/icons\/') . $linkName }}.svg">{{ $link->title }}</a></div>
202+
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-{{ $link->name }} button hvr-grow hvr-icon-wobble-vertical" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><i class="icon hvr-icon fa {{$link->custom_icon}}"></i>{{ $link->title }}</a></div>
200203
@elseif($link->name === "custom" and $link->custom_css != "")
201-
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button hvr-grow hvr-icon-wobble-vertical" style="{{ $link->custom_css }}" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><img class="icon hvr-icon" src="{{ asset('\/littlelink/icons\/') . $linkName }}.svg">{{ $link->title }}</a></div>
204+
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button hvr-grow hvr-icon-wobble-vertical" style="{{ $link->custom_css }}" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><i class="icon hvr-icon fa {{$link->custom_icon}}"></i>{{ $link->title }}</a></div>
202205
@elseif($link->name === "buy me a coffee")
203206
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-coffee button hvr-grow hvr-icon-wobble-vertical" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><img class="icon hvr-icon" src="{{ asset('\/littlelink/icons\/')}}coffee.svg">Buy me a Coffee</a></div>
204207
@elseif($link->name === "custom_website")

0 commit comments

Comments
 (0)