-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html.twig
68 lines (53 loc) · 2.07 KB
/
index.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{% extends 'base.html.twig' %}
{% block title %}index{% endblock %}
{% block body %}
{%
set blocks = [
{
"image": asset("dist/images/placeholder.webp"),
alt: "Image desc",
"title": "Ici une phrase d’accroche pour accompagner le visuel",
"href": "#",
"linkLabel": "Discover" | trans
},
{
"image": asset("dist/images/placeholder.webp"),
alt: "Image desc",
"title": "Ici une phrase d’accroche pour accompagner le visuel",
"href": "#",
"linkLabel": "Discover" | trans
},
{
"image": asset("dist/images/placeholder.webp"),
alt: "Image desc",
"title": "Ici une phrase d’accroche pour accompagner le visuel",
"href": "#",
"linkLabel": "Discover" | trans
}
]
%}
{% include '@components/Layout/Hero/Hero.html.twig' with { blocks: blocks } %}
{{ component('Flexy:CrossSelling', {categoryId: 1, title: 'Last seen products' | trans}) }}
<div class="bg-theme-lighter">
{{ component('Flexy:CrossSelling', {categoryId: 2, title: 'Popular products' | trans}) }}
</div>
<div class="bg-theme-lightest">
{{ component('Flexy:CrossSelling', {categoryId: 3, title: 'Promotions' | trans}) }}
</div>
{{ component('Flexy:ProductCategory', {title: 'Our product categories' | trans}) }}
{%
set reviews = [4,2,3]|map((note) => ({
author: 'Prénom N.',
review:"“Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.”",
note:note,
date: 'JJ/MM/AAAA'
}))
%}
<div class="bg-theme-lightest">
{% include '@components/Layout/Review/Review.html.twig' with {title: 'Our customers speak about us' | trans, reviews: reviews, button: {label: "See all reviews" | trans, href: "#"}} %}
</div>
<div class="bg-theme-lighter">
{{ component('Flexy:Layout:SimilarContent', {title: 'Our news' | trans, button: {label: "See all news" | trans, href: "#"}}) }}
</div>
{% endblock %}
{#<div class="font-bold sm:w-7/12">{{ format_money(number={$TOTAL_TAXED_AMOUNT}, currency_id=$CURRENCY) }}</div>#}