diff --git a/assets/application.css b/assets/application.css new file mode 100644 index 00000000..8a85a701 --- /dev/null +++ b/assets/application.css @@ -0,0 +1,12 @@ +body { + background-color: rgb(251, 251, 232); +} + +.homepage { + text-align: center; + padding-top: 10em; +} + +.logo { + width: 25%; +} \ No newline at end of file diff --git a/assets/application.css.liquid b/assets/application.css.liquid deleted file mode 100644 index 50801b59..00000000 --- a/assets/application.css.liquid +++ /dev/null @@ -1,2 +0,0 @@ -// Put your styles in this file. -// Note: "@import" rules aren’t supported. diff --git a/layout/theme.liquid b/layout/theme.liquid index 82276157..f4cdff27 100644 --- a/layout/theme.liquid +++ b/layout/theme.liquid @@ -1,44 +1,20 @@ - - {{ page_title }} - - - - - - {{ content_for_header }} - {{ 'application.css' | asset_url | stylesheet_tag }} - {{ 'application.js' | asset_url | script_tag }} - - - - {% for link in linklists.main-menu.links %} - {% assign child_list_handle = link.title | handleize %} - {% if linklists[child_list_handle].links != blank %} - {{ link.title }} - [{% for childlink in linklists[child_list_handle].links %} - {{ childlink.title | escape }} - {% endfor %}] - {% else %} - {{ link.title }} - {% endif %} - {% endfor %} - - cart - - {% if shop.customer_accounts_enabled %} - {% if customer %} - account - {{ 'log out' | customer_logout_link }} - {% else %} - {{ 'log in ' | customer_login_link }} - {{ 'register' | customer_register_link }} - {% endif %} - {% endif %} - -
- {{ content_for_layout }} -
- - + + {{ page_title }} + + + + + + {{ content_for_header }} + + {{ 'application.css' | asset_url | stylesheet_tag }} + {{ 'application.js' | asset_url | script_tag }} + + +
+ {{ content_for_layout }} +
+ + \ No newline at end of file diff --git a/sections/homepage.liquid b/sections/homepage.liquid new file mode 100644 index 00000000..c86cc00a --- /dev/null +++ b/sections/homepage.liquid @@ -0,0 +1,7 @@ +
+ +

Welcome to Shopify Theme Development course!

+

{% render 'homepage-text' %}

+ + +
\ No newline at end of file diff --git a/snippets/homepage-text.liquid b/snippets/homepage-text.liquid new file mode 100644 index 00000000..9ef5c40b --- /dev/null +++ b/snippets/homepage-text.liquid @@ -0,0 +1 @@ +Thank you so much for taking the course and I hope you will learn something from me. \ No newline at end of file diff --git a/templates/index.liquid b/templates/index.liquid index 9f76488a..a07434d4 100644 --- a/templates/index.liquid +++ b/templates/index.liquid @@ -1,10 +1 @@ -{% for product in collections.frontpage.products limit:4 %} -
- {{ product.title }} - {{ product.price | money }} - {% unless product.available %}
sold out{% endunless %} - - {{ product.featured_image.alt | escape }} - -
-{% endfor %} +{% section 'homepage' %} \ No newline at end of file