Merge pull request #323 from JulianPrieber/badge

Add Badge
This commit is contained in:
Julian Prieber 2023-02-09 15:13:54 +01:00 committed by GitHub
commit 14b7157f6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 3 deletions

View File

@ -83,7 +83,7 @@ class UserController extends Controller
return abort(404); return abort(404);
} }
$userinfo = User::select('id', 'name', 'littlelink_name', 'littlelink_description', 'theme')->where('id', $id)->first(); $userinfo = User::select('id', 'name', 'littlelink_name', 'littlelink_description', 'theme', 'role')->where('id', $id)->first();
$information = User::select('name', 'littlelink_name', 'littlelink_description', 'theme')->where('id', $id)->get(); $information = User::select('name', 'littlelink_name', 'littlelink_description', 'theme')->where('id', $id)->get();
$links = DB::table('links')->join('buttons', 'buttons.id', '=', 'links.button_id')->select('links.link', 'links.id', 'links.button_id', 'links.title', 'links.custom_css', 'links.custom_icon', 'buttons.name')->where('user_id', $id)->orderBy('up_link', 'asc')->orderBy('order', 'asc')->get(); $links = DB::table('links')->join('buttons', 'buttons.id', '=', 'links.button_id')->select('links.link', 'links.id', 'links.button_id', 'links.title', 'links.custom_css', 'links.custom_icon', 'buttons.name')->where('user_id', $id)->orderBy('up_link', 'asc')->orderBy('order', 'asc')->get();
@ -768,4 +768,4 @@ class UserController extends Controller
} }
} }

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg class="badge" id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200">
<defs>
<style>
.badge{
width: 24px;
height: 24px;
margin-left: -5px;
}
</style>
</defs>
<path class="badge-body" fill="#179cf0" d="M126.22,193.94c-4-1.79-8.38-3.03-11.92-5.47-10.35-7.13-19.99-5.75-29.73,1.07-2.11,1.48-4.74,2.34-7.24,3.12-5.46,1.72-9.86,.27-13.07-4.52-2.28-3.41-4.61-6.93-6.08-10.72-3.42-8.79-9.82-12.76-18.93-13.5-3.91-.32-7.85-1.16-11.62-2.3-7.51-2.28-10.2-8.34-8.26-17.2,1.02-4.65,2.52-9.43,2.24-14.06-.22-3.66-2.26-7.61-4.53-10.64-2.96-3.96-7.03-7.07-10.48-10.68-4.81-5.04-5.3-11.17-1.01-16.59,2.77-3.51,5.84-6.92,9.3-9.72,6.71-5.41,6.94-12.32,5.74-19.86-.65-4.06-1.42-8.15-1.56-12.25-.24-6.79,1.88-9.72,8.46-11.56,4.9-1.37,9.97-2.18,14.99-3.05,5.99-1.04,11.01-3.25,13.65-9.3,1.59-3.64,3.62-7.08,5.45-10.62,4.81-9.35,11.51-11.61,20.84-6.89,3.53,1.79,6.89,3.93,10.41,5.75,4.82,2.49,9.59,2.76,14.71,.28,5.91-2.85,11.98-5.57,18.27-7.29,2.56-.7,7.04,.44,8.63,2.39,4.05,4.94,7.41,10.59,10.21,16.36,2.91,5.99,7.75,8.18,13.68,9.29,4.84,.9,9.76,1.59,14.46,2.99,7.24,2.15,10.27,7.18,9.11,14.36-.76,4.7-1.96,9.34-2.63,14.06-1.12,7.84,3.09,13.13,8.76,17.76,4.88,3.98,9.51,7.76,9.22,15.42-.23,6.11-3.23,9.86-7.22,13.3-4.97,4.28-10.18,8.58-10.58,15.5-.29,5,.82,10.14,1.79,15.13,2.15,11.16-.16,15.08-11.25,17.83-3.83,.95-7.71,1.97-11.62,2.3-8.28,.7-12.44,5.92-15.51,12.81-1.47,3.32-3.18,6.57-5.13,9.63-2.53,3.98-5.82,6.95-11.53,6.86Zm22.23-125.22c-5.54-4.05-10.68-7.8-15.85-11.58-14.9,19.6-29.46,38.75-44.21,58.15-8.33-6.32-16.31-12.38-24.43-18.53-4.06,5.61-7.7,10.65-11.46,15.83,13.75,10.3,27.02,20.23,40.59,30.38,18.48-24.79,36.8-49.36,55.35-74.26Z"></path>
<path class="badge-tick" fill="#fcfcfc" d="M148.45,68.73c-18.55,24.89-36.88,49.47-55.35,74.26-13.57-10.16-26.84-20.09-40.59-30.38,3.75-5.18,7.4-10.22,11.46-15.83,8.11,6.16,16.1,12.21,24.43,18.53,14.75-19.4,29.3-38.55,44.21-58.15,5.17,3.78,10.31,7.53,15.85,11.58Z"></path>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -259,7 +259,7 @@ function get_operating_system() {
@endif @endif
<!-- Your Name --> <!-- Your Name -->
<h1 class="fadein">{{ $info->name }}</h1> <h1 class="fadein">{{ $info->name }}@if($userinfo->role == 'vip' or $userinfo->role == 'admin') @include('components.verify-svg') @endif</h1>
<!-- Short Bio --> <!-- Short Bio -->
<div class="fadein"><center><p style="width:50%;min-width:300px;" class="fadein">@if(env('ALLOW_USER_HTML') === true){!! $info->littlelink_description !!}@else{{ $info->littlelink_description }}@endif</p></center></div> <div class="fadein"><center><p style="width:50%;min-width:300px;" class="fadein">@if(env('ALLOW_USER_HTML') === true){!! $info->littlelink_description !!}@else{{ $info->littlelink_description }}@endif</p></center></div>