mirror of https://github.com/4xmen/xshop.git
added simple part
parent
86d77c031b
commit
6a2dafc22a
@ -0,0 +1,10 @@
|
||||
<section class='SimpleHeader'>
|
||||
<div class="{{gfx()['container']}}">
|
||||
<h1>
|
||||
Main title
|
||||
</h1>
|
||||
<h2>
|
||||
Subtitle
|
||||
</h2>
|
||||
</div>
|
||||
</section>
|
@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "SimpleHeader",
|
||||
"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 SimpleHeader
|
||||
{
|
||||
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,48 @@
|
||||
.SimpleHeader {
|
||||
|
||||
overflow: hidden;
|
||||
|
||||
position: relative;
|
||||
background: var(--xshop-background);
|
||||
border-bottom: 2px solid var(--xshop-primary);;
|
||||
.container, .container-fluid {
|
||||
padding: 3rem;
|
||||
position: relative;
|
||||
|
||||
h1{
|
||||
color: var(--xshop-primary);
|
||||
font-weight: 200;
|
||||
}
|
||||
|
||||
h2{
|
||||
opacity: .3;
|
||||
position: absolute;
|
||||
top: 35%;
|
||||
inset-inline-end: 10%;
|
||||
font-weight: 300;
|
||||
}
|
||||
}
|
||||
|
||||
&:after {
|
||||
content:' ';
|
||||
width: 25vw;
|
||||
height: 25vw;
|
||||
background: var(--xshop-primary);
|
||||
position: absolute;
|
||||
top: -10vw;
|
||||
border-radius: 50%;
|
||||
inset-inline-end: 10%;
|
||||
opacity: .3;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*-1000px width*/
|
||||
@media (max-width: 1000px) {
|
||||
.SimpleHeader{
|
||||
&:after{
|
||||
height: 24vh;
|
||||
width: 25vh;
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Loading…
Reference in New Issue