This repository has been archived by the owner on Aug 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 473
Default blankstates #319
Merged
Merged
Default blankstates #319
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ca995a0
added empty states for collections/all, created snippets
stevebosworth 5dcb29f
added snippets for empty states
stevebosworth de213b8
updated locales with tranlations
stevebosworth bb26c9c
added a comment to explain featured collections onboarding
stevebosworth 043b1fd
removed broken link and unused translation
stevebosworth File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!-- snippets/onboarding-empty-collection.liquid --> | ||
<div class="grid__item"> | ||
<div class="helper-section"> | ||
<div class="helper-note"> | ||
<span class="helper-icon"></span> | ||
<h3>{{ 'collections.onboarding.modal_title' | t }}</h3> | ||
<p>{{ 'collections.onboarding.no_products_html' | t }}</p> | ||
<p><a href="/admin/products/new" class="admin-btn-primary">{{ 'collections.onboarding.add_product' | t }}</a></p> | ||
</div> | ||
|
||
<div class="grid-uniform helper-content"> | ||
{% assign index = 1 %} | ||
{% for i in (1..8) %} | ||
{% case i %} | ||
{% when 7 %} | ||
{% assign index = 1 %} | ||
{% when 8 %} | ||
{% assign index = 2 %} | ||
{% endcase %} | ||
<div class="grid__item one-half large--one-quarter"> | ||
<a href="/admin/products" class="grid__image"> | ||
{% capture imageUrl %}http://cdn.shopify.com/s/images/themes/product-{{ index }}.png{% endcapture %} | ||
{{ imageUrl | img_tag }} | ||
</a> | ||
<p class="h6"><a href="/admin/products">{{ 'home_page.onboarding.product_title' | t }}</a></p> | ||
<p>$19.99</p> | ||
</div> | ||
{% assign index = index | plus: 1 %} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> |
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,26 @@ | ||
<!-- snippets/onboarding-featured-collections.liquid --> | ||
<div class="grid__item"> | ||
<div class="helper-section"> | ||
<div class="helper-note"> | ||
<span class="helper-icon"></span> | ||
<h3>{{ 'home_page.onboarding.modal_title' | t }}</h3> | ||
<p>{{ 'home_page.onboarding.no_collections_html' | t }}</p> | ||
<p><a class="admin-btn-primary" href="/admin/custom_collections">{{ 'home_page.onboarding.add_collection' | t }}</a></p> | ||
</div> | ||
|
||
<div class="grid-uniform text-center helper-content"> | ||
{% for i in (1..5) %} | ||
<div class="grid__item large--one-fifth medium--one-half"> | ||
<a href="#" class="grid__image"> | ||
{% capture imageUrl %}http://cdn.shopify.com/s/images/themes/product-{{ i }}.png{% endcapture %} | ||
{{ imageUrl | img_tag }} | ||
</a> | ||
<p> | ||
<a href="#">{{ 'home_page.onboarding.collection_title' | t }}</a><br> | ||
{{ 'collections.general.items_with_count' | t: count: i }} | ||
</p> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> |
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,24 @@ | ||
<!-- snippets/onboarding-featured-products.liquid --> | ||
<div class="grid__item"> | ||
<div class="helper-section"> | ||
<div class="helper-note"> | ||
<span class="helper-icon"></span> | ||
<h3>{{ 'home_page.onboarding.modal_title' | t }}</h3> | ||
<p>{{ 'home_page.onboarding.no_products_html' | t }}</p> | ||
<p><a class="admin-btn-primary" href="/admin/collections?tutorial=Frontpage">{{ 'home_page.onboarding.add_product' | t }}</a></p> | ||
</div> | ||
|
||
<div class="grid-uniform helper-content"> | ||
{% for i in (1..4) %} | ||
<div class="grid__item one-half large--one-quarter"> | ||
<a href="/admin/products" class="grid__image"> | ||
{% capture imageUrl %}http://cdn.shopify.com/s/images/themes/product-{{ i }}.png{% endcapture %} | ||
{{ imageUrl | img_tag }} | ||
</a> | ||
<p class="h6"><a href="/admin/products">{{ 'home_page.onboarding.product_title' | t }}</a></p> | ||
<p>$19.99</p> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only used once, so don't think it needs to be put in a snippet. That folder is getting pretty large as it is.
Same goes for the other new snippets. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a sucker for separate files and includes. Much easier to read imho. Easier to remove or turn on and off too.