Saved: 2017-11-20 02:30
Torey Heinz
committed Nov 20, 2017
commit 7b736eab4886b73f1593f7fb3d2b263a34837d7b
Showing 7
changed files with
30 additions
and 6 deletions
app/views/pages/index.liquid
+2
-1
| @@ | @@ -89,10 +89,11 @@ is_layout: false |
| {% editable_model products %} | |
| {% for product in contents.products %} | |
| <div class="column"> | |
| - | <div class="card"> |
| + | <div class="card clickable" data-url="{% path_to product %}"> |
| <img src="{{ product.image.url | resize: '200x200#' }}"> | |
| <div class="title card-divider" data-equalizer-watch> | |
| <p class="lead">{{ product.title }}</p> | |
| + | {% path_to product %} |
| </div> | |
| </div> | |
| </div> | |
app/views/pages/layouts/application.liquid
+1
-5
| @@ | @@ -60,11 +60,7 @@ is_layout: true |
| {% block main %} | |
| <div class="row"> | |
| <div class="column content page"> | |
| - | <h1> |
| - | {% editable_text "heading", line_break: false, format: 'raw', rows: 1 %} |
| - | Page Heading/H1 |
| - | {% endeditable_text %} |
| - | </h1> |
| + | <h1>{% editable_text "heading", line_break: false, format: 'raw', rows: 1 %}{% endeditable_text %}</h1> |
| {% editable_text content %}Lorem ipsum{% endeditable_text %} | |
| </div> | |
| </div> | |
app/views/products/content_type_template.liquid
+10
-0
| @@ | @@ -0,0 +1,10 @@ |
| + | --- |
| + | title: Product template page |
| + | content_type: products |
| + | --- |
| + | {% extends 'layouts/application' %} |
| + | {% block main %} |
| + | <h1>{{ product.title }}</h1> |
| + | <img src="{{ product.image.url | resize: '200x200#' }}" alt="{{ product.title }}" class="float-left"> |
| + | <p>{{ event.description }}</p> |
| + | {% endblock %} |
log/server.log
+6
-0
| @@ | @@ -54,3 +54,9 @@ I, [2017-11-16T19:38:31.023268 #22580] INFO -- : Listening on 0.0.0.0:3000, CTR |
| I, [2017-11-19T21:07:46.236024 #28309] INFO -- : Thin web server (v1.6.4 codename Gob Bluth) | |
| I, [2017-11-19T21:07:46.236128 #28309] INFO -- : Maximum connections set to 1024 | |
| I, [2017-11-19T21:07:46.236159 #28309] INFO -- : Listening on 0.0.0.0:3000, CTRL+C to stop | |
| + | I, [2017-11-19T21:24:49.939067 #28682] INFO -- : Thin web server (v1.6.4 codename Gob Bluth) |
| + | I, [2017-11-19T21:24:49.939188 #28682] INFO -- : Maximum connections set to 1024 |
| + | I, [2017-11-19T21:24:49.939205 #28682] INFO -- : Listening on 0.0.0.0:3000, CTRL+C to stop |
| + | I, [2017-11-20T02:30:13.204235 #30005] INFO -- : Thin web server (v1.6.4 codename Gob Bluth) |
| + | I, [2017-11-20T02:30:13.204324 #30005] INFO -- : Maximum connections set to 1024 |
| + | I, [2017-11-20T02:30:13.204352 #30005] INFO -- : Listening on 0.0.0.0:3000, CTRL+C to stop |
public/javascripts/app.js
+1
-0
| @@ | @@ -1,3 +1,4 @@ |
| + | // require clickable |
| $(document).foundation(); | |
| // $(".top-bar").sticky({zIndex:10}); | |
public/javascripts/clickable.coffee
+6
-0
| @@ | @@ -0,0 +1,6 @@ |
| + | ready = -> |
| + | $(document).on 'click', '.clickable', -> |
| + | window.location.href = $(this).data('url') |
| + | return false |
| + | |
| + | $(document).on('ready', ready); |
public/stylesheets/app.scss
+4
-0
| @@ | @@ -176,6 +176,10 @@ body.index { |
| } | |
| } | |
| + | .clickable, .pointer { |
| + | cursor: pointer; |
| + | } |
| + | |
| footer { | |
| padding-top: rem-calc(10); | |
| background: $topbar-background; | |