Merge pull request #564 from LeviSnoot/main

feat: add firefish button
This commit is contained in:
Julian Prieber 2023-09-13 13:43:31 +02:00 committed by GitHub
commit cefd28a73e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 65 additions and 11 deletions

View File

@ -430,6 +430,23 @@ button:hover,
filter: brightness(90%);
}
/* Firefish */
.button.button-firefish {
color: #fff;
background-image: linear-gradient(
45deg,
#DB44DB,
1%,
#EC476D,
80%,
#F6AE4A
);
}
.button.button-firefish:hover,
.button.button-firefish:focus {
filter: brightness(90%);
}
/* Firefox */
.button.button-firefox {
color: #FFFFFF;

View File

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg id="firefish" xmlns="http://www.w3.org/2000/svg" width="40" height="40"
viewBox="0 0 40 40">
<defs>
<style>
.fishy {
fill: #fff;
}
</style>
</defs>
<path class="fishy"
d="m20.71,17.14H2.14c-1.18,0-2.14.96-2.14,2.14v18.57c0,1.18.96,2.14,2.14,2.14h18.57c1.18,0,2.14-.96,2.14-2.14v-18.57c0-1.18-.96-2.14-2.14-2.14Zm-15,17.14c-1.58,0-2.86-1.28-2.86-2.86s1.28-2.86,2.86-2.86,2.86,1.28,2.86,2.86-1.28,2.86-2.86,2.86Zm7.14,0c-1.58,0-2.86-1.28-2.86-2.86s1.28-2.86,2.86-2.86,2.86,1.28,2.86,2.86-1.28,2.86-2.86,2.86Z" />
<path class="fishy"
d="m20.71,17.14H2.14c-1.18,0-2.14.96-2.14,2.14v18.57c0,1.18.96,2.14,2.14,2.14h18.57c1.18,0,2.14-.96,2.14-2.14v-18.57c0-1.18-.96-2.14-2.14-2.14Zm-15,17.14c-1.58,0-2.86-1.28-2.86-2.86s1.28-2.86,2.86-2.86,2.86,1.28,2.86,2.86-1.28,2.86-2.86,2.86Zm7.14,0c-1.58,0-2.86-1.28-2.86-2.86s1.28-2.86,2.86-2.86,2.86,1.28,2.86,2.86-1.28,2.86-2.86,2.86Z" />
<path class="fishy"
d="m20.71,14.28h-9.82c-1.18,0-2.14-.96-2.14-2.14V2.32c0-1.91,2.31-2.86,3.66-1.51l9.82,9.82c1.35,1.35.39,3.66-1.51,3.66h0Z" />
<path class="fishy"
d="m37.83,31.43h-9.94c-1.2,0-2.17-.97-2.17-2.17v-9.94c0-1.93,2.34-2.9,3.7-1.53l9.94,9.94c1.37,1.37.4,3.7-1.53,3.7h0Z" />
<path class="fishy"
d="m37.83,14.28h-9.94c-1.2,0-2.17-.97-2.17-2.17V2.17c0-1.93,2.34-2.9,3.7-1.53l9.94,9.94c1.37,1.37.4,3.7-1.53,3.7h0Z" />
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -11,6 +11,7 @@ $buttonNames = array(
'dev-to' => 'DEV',
'epic-games' => 'Epic Games',
'f-droid' => 'F-Droid',
'firefish' => 'Firefish',
'furaffinity' => 'FurAffinity',
'github' => 'GitHub',
'gitlab' => 'GitLab',

View File

@ -421,15 +421,22 @@ class ButtonSeeder extends Seeder
[
'name' => 'trakt'
],
[
'name' => 'last-fm'
],
[
'name' => 'itaku'
],
[
'name' => 'furaffinity'
],
[
'name' => 'firefish'
],
];
Button::insert($buttons);

View File

@ -5,13 +5,18 @@
<head>
<meta charset="utf-8">
{{-- Mastodon re="me" link --}}
{{-- Fediverse rel="me" links --}}
@php
$relMe = "mastodon, firefish";
$relMeList = explode(', ', $relMe);
@endphp
@foreach($links as $link)
@if($link->name === "mastodon")
@if(in_array($link->name, $relMeList))
<link href="{{$link->link}}" rel="me">
@endif
@endforeach
<?php
// Theme Config
if (!function_exists('theme')) {
@ -51,7 +56,7 @@ return $path;}
@endif
@if(env('CUSTOM_META_TAGS') == 'true')
@include('layouts.meta')
@include('layouts.meta')
@else
<meta name="description" content="{{ $userinfo->littlelink_description }}">
<meta name="author" content="{{ $userinfo->name }}">
@ -82,7 +87,7 @@ if($customBackgroundExists == true){
</style>
@endif
@endif
<!--#### BEGIN Meta Tags social media preview images ####-->
<!-- This shows a preview for title, description and avatar image of users profiles if shared on social media sites -->
@ -98,7 +103,7 @@ if($customBackgroundExists == true){
@else
<meta property="og:image" content="{{ asset('assets/linkstack/images/logo.svg') }}">
@endif
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="{{ url('') }}/{{ "@" . $littlelink_name }}">
@ -119,7 +124,7 @@ if($customBackgroundExists == true){
{{-- <script>{!! file_get_contents(base_path("assets/external-dependencies/fontawesome.js")) !!}</script> --}}
<style>{!! str_replace('../', 'studio/', file_get_contents(base_path("assets/external-dependencies/fontawesome.css"))) !!}</style>
@include('layouts.fonts')
@include('layouts.fonts')
<style>{!! file_get_contents(base_path("assets/linkstack/css/normalize.css")) !!}</style>
<style>{!! file_get_contents(base_path("assets/linkstack/css/animate.css")) !!}</style>
@if(file_exists(base_path("assets/linkstack/images/").findFile('favicon')))
@ -265,7 +270,7 @@ if($customBackgroundExists == true){
<!-- Short Bio -->
<style>.description-parent * {margin-bottom: 1em;}.description-parent {padding-bottom: 30px;}</style>
<center><div class="fadein description-parent"><p class="fadein">@if(env('ALLOW_USER_HTML') === true){!! $info->littlelink_description !!}@else{{ $info->littlelink_description }}@endif</p></div></center>
<!-- Icons -->
@php $icons = DB::table('links')->where('user_id', $userinfo->id)->where('button_id', 94)->get(); @endphp
@if(count($icons) > 0)
@ -276,7 +281,7 @@ if($customBackgroundExists == true){
</div>
@endif
@endforeach
@endforeach
<!-- Buttons -->
@php $initial = 1; @endphp
@ -296,6 +301,9 @@ if($customBackgroundExists == true){
@case('buy me a coffee')
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-coffee button button-hover icon-hover" rel="noopener noreferrer nofollow" href="{{ route('clickNumber') . '/' . $link->id . "?" . $link->link }}" @if(theme('open_links_in_same_tab') != "true")target="_blank"@endif ><img alt="{{ $link->name }}" class="icon hvr-icon" src="@if(theme('use_custom_icons') == "true"){{ url('themes/' . $GLOBALS['themeName'] . '/extra/custom-icons')}}/coffee{{theme('custom_icon_extension')}} @else{{ asset('\/assets/linkstack/icons\/')}}coffee.svg @endif">Buy me a Coffee</a></div>
@break
@case('firefish')
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-{{ $link->name }} button button-hover icon-hover" rel="me noopener noreferrer nofollow" href="{{ route('clickNumber') . '/' . $link->id . "?" . $link->link }}" @if(theme('open_links_in_same_tab') != "true")target="_blank"@endif ><img alt="{{ $link->name }}" class="icon hvr-icon" src="@if(theme('use_custom_icons') == "true"){{ url('themes/' . $GLOBALS['themeName'] . '/extra/custom-icons')}}/{{$linkName}}{{theme('custom_icon_extension')}} @else{{ asset('\/assets/linkstack/icons\/') . "firefish" }}.svg @endif">{{ $link->title }}</a></div>
@break
@case('mastodon')
<div style="--delay: {{ $initial++ }}s" class="button-entrance"><a class="button button-{{ $link->name }} button button-hover icon-hover" rel="me noopener noreferrer nofollow" href="{{ route('clickNumber') . '/' . $link->id . "?" . $link->link }}" @if(theme('open_links_in_same_tab') != "true")target="_blank"@endif ><img alt="{{ $link->name }}" class="icon hvr-icon" src="@if(theme('use_custom_icons') == "true"){{ url('themes/' . $GLOBALS['themeName'] . '/extra/custom-icons')}}/{{$linkName}}{{theme('custom_icon_extension')}} @else{{ asset('\/assets/linkstack/icons\/') . "mastodon" }}.svg @endif">{{ $link->title }}</a></div>
@break
@ -334,7 +342,7 @@ if($customBackgroundExists == true){
@endforeach
@include('layouts.footer')
</div>
</div>
</div>
@ -342,4 +350,4 @@ if($customBackgroundExists == true){
@if(theme('enable_custom_code') == "true" and theme('enable_custom_body_end') == "true" and env('ALLOW_CUSTOM_CODE_IN_THEMES') == 'true')@include($GLOBALS['themeName'] . '.extra.custom-body-end')@endif
</body>
</html>
</html>