Your cart is empty, please add somthing to make a purchase
+Your cart is empty, please add somthing to make a purchase.
<% end %>diff --git a/app/assets/images/Site/gameland.jpg b/app/assets/images/Site/gameland.jpg index b7edf3f..707da66 100644 Binary files a/app/assets/images/Site/gameland.jpg and b/app/assets/images/Site/gameland.jpg differ diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 55a2e42..8e3b067 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -19,4 +19,27 @@ document.addEventListener("turbolinks:load", function() { // whatever you want to make sure is loaded on each page + // Footer fix + // function to set the height on fly + function autoHeight() { + $('.mainCont').css('min-height', 0); + $('.mainCont').css('min-height', ( + $(document).height() - + $('.header').height() - + $('.foot').height() + )); + } + + // onDocumentReady function bind + $(document).ready(function() { + autoHeight(); + }); + + // onResize bind of the function + $(window).resize(function() { + autoHeight(); + }); + + // End Footer fix + }) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 5aff8d7..4e07371 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -17,6 +17,7 @@ body { text-align: center; padding-left: 0; padding-right: 0; + min-height: 100%; } .button { @@ -71,31 +72,6 @@ body { width: 100%; } - -.icon { - width: 5em; - opacity: 0.5; -} - - -.icon { - width: 5em; - opacity: 0.5; -} - -.iconsdiv { - width: 23%; - text-align: center; - display: block; - background-color: transparent; - border: 1px solid transparent; - margin-right: 0; - margin-bottom: 1px; - float: left; - padding: 2em; - padding-left: 0; -} - #notice { padding-left: 2%; } @@ -121,6 +97,12 @@ body { text-align: center; } +.header ul { + list-style-type: none; + overflow: hidden; + background-color: rgba(0, 0, 0, .9); +} + .header li { float: left; } @@ -133,10 +115,15 @@ body { padding: 14px 16px; } -.header ul { - list-style-type: none; - overflow: hidden; - background-color: rgba(100, 68, 100, 0.3); +.header li a:hover { + color: rgb(222, 62, 62); +} + +.isAdminLi { + color: red; + padding-top: 13px; + font-size: 18px; + margin-left: 20px; } /* Footer */ @@ -149,8 +136,8 @@ body { -o-background-size: cover; background-size: cover; width: 100%; - margin-bottom: 0em; - overflow: auto; + overflow: hidden; + bottom: 0; } .footer-buttons { @@ -167,7 +154,7 @@ body { margin-bottom: 20px; font-size: 18px; font-weight: 700; - color: black; + color: white; } #freeIconsCredits { @@ -190,9 +177,47 @@ body { text-align: right; } +.icon { + width: 5em; + opacity: 0.9; +} + +.iconsdiv { + width: 23%; + text-align: center; + display: block; + background-color: transparent; + border: 1px solid transparent; + margin-right: 0; + margin-bottom: 1px; + float: left; + padding: 2em; + padding-left: 0; +} + +.home-catButton { + width: 25%; + margin-right: auto; + margin-left: auto; +} + +@media only screen and (max-width: 1440px) { + .icon { + padding-left: 1.5em; + } + + .iconsdiv { + width: 22%; + } +} + @media only screen and (max-width: 1024px) { + .icon { + padding-left: 3.2em; + } + .iconsdiv { - width: 21%; + width: 20%; } } @@ -253,6 +278,12 @@ h1 { display: block; } +@media only screen and (max-width: 768px) { + .item { + width: 80%; + } +} + #itemsContainer h2 { display: block; color: #555; diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb index 15df724..89f834c 100644 --- a/app/controllers/static_pages_controller.rb +++ b/app/controllers/static_pages_controller.rb @@ -12,9 +12,9 @@ def help end def paid - flash[:notice] = "transaction complete" + flash[:notice] = "Transaction successfully complete." @order = Order.last - @order.update_attribute(:status, "paid by user #{current_user.email}") + @order.update_attribute(:status, "Paid by #{current_user.email}") session[:cart] = nil end diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index dd81954..1962847 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -2,7 +2,7 @@ class UserController < ApplicationController def login session[:login] = 1 - flash[:notice] = "you are logged in" + flash[:notice] = "You are logged in!" redirect_to :controller => :items #session[:cart] = nil diff --git a/app/views/cart/createOrder.html.erb b/app/views/cart/createOrder.html.erb index c737366..094b380 100644 --- a/app/views/cart/createOrder.html.erb +++ b/app/views/cart/createOrder.html.erb @@ -55,7 +55,7 @@ <% @overall = shipping + @total %>
<%= notice %>
-Your cart is empty, please add somthing to make a purchase
+Your cart is empty, please add somthing to make a purchase.
<% end %>