Skip to content

Commit

Permalink
added Farhad theme part
Browse files Browse the repository at this point in the history
  • Loading branch information
A1Gard committed Oct 19, 2024
1 parent 64c6531 commit a721a4d
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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>
Empty file.
10 changes: 10 additions & 0 deletions resources/views/segments/floats/FarhadSocial/FarhadSocial.json
Original file line number Diff line number Diff line change
@@ -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": []
}
21 changes: 21 additions & 0 deletions resources/views/segments/floats/FarhadSocial/FarhadSocial.php
Original file line number Diff line number Diff line change
@@ -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;
}
}
67 changes: 67 additions & 0 deletions resources/views/segments/floats/FarhadSocial/FarhadSocial.scss
Original file line number Diff line number Diff line change
@@ -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;
}
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a721a4d

Please sign in to comment.