Add display articles & categories, raw mode

This commit is contained in:
Ludovic CANDELLIER
2020-08-20 23:55:42 +02:00
parent 12aff23e00
commit 77a239fce9
15 changed files with 102 additions and 88 deletions

View File

@@ -10,7 +10,7 @@
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>OpenSemis</title>
<meta name="description" content="Boutique propulsée par HumaN.E.T">
<meta name="description" content="Vente de semences, variété anciennes">
<meta name="keywords" content="">
<link rel="icon" type="image/vnd.microsoft.icon" href="img/favicon.ico">
@@ -36,7 +36,7 @@
</section>
</div>
@include("Shop._partials.footer")
@include("Shop.layout.partials.footer")
</main>
</div>

View File

@@ -1,23 +1,23 @@
<div class="article">
<div class="row">
<div class="col-12">
<img src="{{ $article['img'] ?? '/img/logo'}}" class="img-responsive">
{{ $article['name'] }}
<span class="pull-right">
<i class="fa fa-heart"></i>
</span>
</div>
</div>
<div class="card" style="width: 18rem;">
<img src="{{ App\Repositories\Shop\Articles::getThumbSrc($article['image']) }}" class="card-img-top" alt="...">
<div class="card-body">
<span class="card-title">{{ $article['name'] }}</span>
<span class="pull-right">
<i class="fa fa-heart"></i>
</span>
<div class="row">
<div class="col-6">
3.10 <br>
Semence
</div>
<p class="card-text">
<div class="row">
<div class="col-6">
3.10 <br>
Semence
</div>
<div class="col-6">
1.65 <br>
Plant
<div class="col-6">
1.65 <br>
Plant
</div>
</div>
</div>
</div>
</p>
</div>
</div>

View File

@@ -0,0 +1,7 @@
<div class="row">
@foreach ($articles as $article)
<div class="col-3">
@include('Shop.layout.partials.article')
</div>
@endforeach
</div>

View File

@@ -1,40 +0,0 @@
<div id="ishiproductsblock" class="container clearfix">
<div class="ishiproductsblock-container">
<h2 class="home-title">Meilleurs produits</h2>
<ul id="ishiproductstab" class="nav nav-tabs clearfix">
<li class="nav-item first_item">
<a class="nav-link active" href="#featured-products-block" data-toggle="tab">En vedette</a>
</li>
<li class="nav-item ">
<a class="nav-link " href="#new-products-block" data-toggle="tab">Dernier</a>
</li>
<li class="nav-item last_item">
<a class="nav-link " href="#bestseller-products-block" data-toggle="tab">Meilleures ventes</a>
</li>
</ul>
<div class="product_content ">
<div class="tab-content">
<div id="featured-products-block" class="tab-pane active">
<div class="block_content row">
<div id="ishi-featured-products" class="owl-carousel">
{{ include("Shop._partials.product", {index:1}) }}
{{ include("Shop._partials.product", {index:2}) }}
{{ include("Shop._partials.product", {index:3}) }}
{{ include("Shop._partials.product", {index:4}) }}
{{ include("Shop._partials.product", {index:5}) }}
{{ include("Shop._partials.product", {index:6}) }}
{{ include("Shop._partials.product", {index:7}) }}
{{ include("Shop._partials.product", {index:8}) }}
</div>
</div>
</div>
<div id="new-products-block">
</div>
<div id="bestseller-products-block">
</div>
</div>
</div>
</div>
</div>

View File

@@ -1,7 +1,7 @@
<div class="row">
<div class="col-8">
<h1>{{ $category['name'] }}</h1>
<h3>{{ $category['description'] }}</h3>
<h1 style="font-size: 2em;">{{ $category['name'] }}</h1>
<h3 style="font-size: 1.2em;">{!! $category['description'] !!}</h3>
</div>
<div class="col-4">
@include('Shop.layout.partials.category_add')

View File

@@ -1,9 +1,14 @@
<div class="row">
<div class="col-6">
Ajouter au panier la liste des semences
<button type="button" class="btn btn-success">
<i class="fa fa-seedling"></i>
Ajouter au panier la liste des <strong>semences</strong>
</button>
</div>
<div class="col-6">
Ajouter au panier la liste des plants
<button type="button" class="btn btn-warning">
Ajouter au panier la liste des <strong>plants</strong>
</button>
</div>
</div>
@@ -12,7 +17,7 @@
Il y a {{ $nb ?? 0 }} article(s) dans la liste
<form name="product_sorting">
<label>Trier par</label>
@include('components.select', ['name' => ])
@include('components.select', ['name' => 'sorting', 'list' => ['Pertinence']])
</form>
</div>
</div>

View File

@@ -1,3 +1,7 @@
@foreach ($articles as $article)
@include('Shop.layout.partials.article')
@endforeach
<div class="row">
@foreach ($articles as $article)
<div class="col-3">
@include('Shop.layout.partials.article')
</div>
@endforeach
</div>

View File

@@ -0,0 +1,6 @@
<footer id="footer">
@include("Shop._partials.footer-after")
</footer>