forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
220 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+153 KB
src/Sylius/Bundle/ShopBundle/Resources/private/img/homepage-banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42 KB
src/Sylius/Bundle/ShopBundle/Resources/private/img/sylius-plus-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/Sylius/Bundle/ShopBundle/Resources/views/Homepage/_carousel.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<div class="carousel-wrapper"> | ||
<div class="carousel"> | ||
{% for product in products %} | ||
<div class="carousel-item"> | ||
{% include '@SyliusShop/Product/_box.html.twig' %} | ||
</div> | ||
{% endfor %} | ||
</div> | ||
|
||
<div class="carousel-nav"> | ||
<button class="carousel-left ui huge black icon button"> | ||
<i class="left arrow icon"></i> | ||
</button> | ||
<button class="carousel-right ui huge black icon button"> | ||
<i class="right arrow icon"></i> | ||
</button> | ||
</div> | ||
</div> |
12 changes: 12 additions & 0 deletions
12
src/Sylius/Bundle/ShopBundle/Resources/views/Homepage/_list.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{% if products|length == 4 %} | ||
{% set columns = "two" %} | ||
{% endif %} | ||
{% if products|length == 3 %} | ||
{% set columns = "three odd doubling" %} | ||
{% endif %} | ||
|
||
<div class="ui {{ columns|default('') }} cards"> | ||
{% for product in products %} | ||
{% include '@SyliusShop/Product/_box.html.twig' %} | ||
{% endfor %} | ||
</div> |
70 changes: 66 additions & 4 deletions
70
src/Sylius/Bundle/ShopBundle/Resources/views/Homepage/index.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,70 @@ | ||
{% extends '@SyliusShop/layout.html.twig' %} | ||
|
||
{% block content %} | ||
<h2 class="ui horizontal section divider header"> | ||
{{ 'sylius.ui.latest_products'|trans }} | ||
</h2> | ||
{{ render(url('sylius_shop_partial_product_index_latest', {'count': 4, 'template': '@SyliusShop/Product/_horizontalList.html.twig'})) }} | ||
<div class="homepage"> | ||
<div class="ui hidden divider"></div> | ||
<img class="ui fluid image" src="{{ asset('assets/shop/img/homepage-banner.jpg') }}" alt="Sylius"> | ||
<div class="ui hidden divider"></div> | ||
|
||
<h2 class="ui center aligned huge header">{{ 'sylius.ui.latest_products'|trans }}</h2> | ||
<div class="ui hidden divider"></div> | ||
|
||
{{ render(url('sylius_shop_partial_product_index_latest', {'count': 3, 'template': '@SyliusShop/Homepage/_list.html.twig'})) }} | ||
<div class="ui hidden divider"></div> | ||
|
||
<h2 class="ui center aligned huge header">{{ 'sylius.homepage.brace_yoursel_winter_is_coming'|trans }}</h2> | ||
<div class="ui hidden divider"></div> | ||
|
||
{{ render(url('sylius_shop_partial_product_index_latest', {'count': 4, 'template': '@SyliusShop/Homepage/_carousel.html.twig'})) }} | ||
|
||
<div class="ui very padded secondary segment newsletter"> | ||
<div class="ui bottom aligned grid"> | ||
<div class="doubling two column row"> | ||
<div class="column"> | ||
<h2 class="ui huge header"> | ||
{{ 'sylius.homepage.newsletter'|trans }} | ||
</h2> | ||
<p> | ||
{{ 'sylius.homepage.newsletter_description'|trans }} | ||
</p> | ||
</div> | ||
<div class="column"> | ||
<form class="ui form"> | ||
<div class="newsletter-input"> | ||
<input type="text" placeholder="{{ 'sylius.ui.email'|trans }}"> | ||
</div> | ||
<div class="newsletter-button"> | ||
<button class="ui button">{{ 'sylius.homepage.subscribe'|trans }} | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="ui hidden divider"></div> | ||
|
||
<div class="ui grid"> | ||
<div class="sixteen wide tablet eight wide computer featured column"> | ||
{{ render(url('sylius_shop_partial_product_index_latest', {'count': 1, 'template': '@SyliusShop/Homepage/_list.html.twig'})) }} | ||
</div> | ||
<div class="sixteen wide tablet eight wide computer column"> | ||
{{ render(url('sylius_shop_partial_product_index_latest', {'count': 4, 'template': '@SyliusShop/Homepage/_list.html.twig'})) }} | ||
</div> | ||
</div> | ||
<div class="ui hidden divider"></div> | ||
|
||
<div class="ui very padded center aligned secondary segment"> | ||
<div class="ui centered grid"> | ||
<div class="sixteen wide tablet twelve wide computer center aligned column"> | ||
<h2 class="ui huge header"> | ||
{{ 'sylius.homepage.about_us'|trans }} | ||
</h2> | ||
<p> | ||
{{ 'sylius.homepage.about_us_content'|trans }} | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8226,6 +8226,11 @@ [email protected]: | |
dependencies: | ||
is-fullwidth-code-point "^2.0.0" | ||
|
||
slick-carousel@^1.8.1: | ||
version "1.8.1" | ||
resolved "https://registry.yarnpkg.com/slick-carousel/-/slick-carousel-1.8.1.tgz#a4bfb29014887bb66ce528b90bd0cda262cc8f8d" | ||
integrity sha512-XB9Ftrf2EEKfzoQXt3Nitrt/IPbT+f1fgqBdoxO3W/+JYvtEOW6EgxnWfr9GH6nmULv7Y2tPmEX3koxThVmebA== | ||
|
||
snapdragon-node@^2.0.1: | ||
version "2.1.1" | ||
resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" | ||
|