added Farhad theme part

pull/49/head
A1Gard 1 month ago
parent 64c653163f
commit a721a4d64b

@ -0,0 +1,17 @@
<div id='FarhadSocial'>
<div id="fari-btn">
<i class="ri-customer-service-2-fill"></i>
</div>
<div id="fari-collapse">
<a href="tel:{{getSetting('tel')}}" " data-bs-toggle="tooltip" data-bs-placement="auto" data-bs-custom-class="custom-tooltip"
data-bs-title="{{__("Phone")}}">
<i class="ri-phone-line"></i>
</a>
@foreach(getSettingsGroup('social_')??[] as $k => $social)
<a href="{{$social}}" data-bs-toggle="tooltip" data-bs-placement="auto" data-bs-custom-class="custom-tooltip"
data-bs-title="{{ucfirst($k)}}">
<i class="ri-{{$k}}-line"></i>
</a>
@endforeach
</div>
</div>

@ -0,0 +1,10 @@
{
"name": "FarhadSocial",
"version": "1.0",
"author": "xStack",
"email": "xshop@xstack.ir",
"license": "GPL-3.0-or-later",
"url": "https:\/\/xstack.ir",
"author_url": "https:\/\/4xmen.ir",
"packages": []
}

@ -0,0 +1,21 @@
<?php
namespace Resources\Views\Segments;
use App\Models\Part;
class FarhadSocial
{
public static function onAdd(Part $part = null)
{
}
public static function onRemove(Part $part = null)
{
}
public static function onMount(Part $part = null)
{
return $part;
}
}

@ -0,0 +1,67 @@
#FarhadSocial {
// scss
position: fixed;
z-index: 99;
inset-inline-start: 1rem;
bottom: 1rem;
i{
font-size: 37px;
}
#fari-btn{
background: var(--xshop-secondary);
color: var(--xshop-diff2);
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
position: absolute;
inset-inline-start: 0;
bottom: 0;
z-index: 98;
}
#fari-collapse{
a{
background: var(--xshop-primary);
color: var(--xshop-diff);
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
position: absolute;
inset-inline-start: 0;
bottom: 0;
z-index: 96;
transition: 500ms;
box-shadow: var(--xshop-shadow);
}
}
&:hover{
#fari-collapse{
a:nth-child(1){
bottom: 3.5rem;
}
a:nth-child(2){
bottom: 7rem;
}
a:nth-child(3){
bottom: 10.5rem;
}
a:nth-child(4){
bottom: 14rem;
}
a:nth-child(5){
bottom: 17.5rem;
}
a:nth-child(6){
bottom: 21rem;
}
a:nth-child(7){
bottom: 24.5rem;
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Loading…
Cancel
Save