Skip to content

Commit

Permalink
Merge pull request #64 from magma-labs/feature/product-list
Browse files Browse the repository at this point in the history
Add category section
  • Loading branch information
JuanCrg90 authored Mar 2, 2018
2 parents bae32f0 + 5ff2ae0 commit 2ea578e
Show file tree
Hide file tree
Showing 10 changed files with 171 additions and 0 deletions.
5 changes: 5 additions & 0 deletions MH-FiorellaTheme5/source/category.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="container">
<%= partial "partials/header" %>
<%= partial "partials/product-list" %>
<%= partial "partials/footer" %>
</div>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions MH-FiorellaTheme5/source/layouts/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<%= stylesheet_link_tag "slick" %>
<%= stylesheet_link_tag "slick-theme" %>
<%= stylesheet_link_tag "slider-home" %>
<%= stylesheet_link_tag "product-list-style" %>
</head>
<body>
<%= yield %>
Expand Down
68 changes: 68 additions & 0 deletions MH-FiorellaTheme5/source/partials/_product-list.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<div class="products-container">
<div class="product-item">
<div class="product-content">
<div class="product-image">
<img src="images/products/[email protected]" alt="">
</div>
<div class="product-description">
<h3 class="product-name">Flower Bouquet Victoria</h3>
<p class="product-price">$84.50</p>
</div>
</div>
</div>
<div class="product-item">
<div class="product-content">
<div class="product-image">
<img src="images/products/[email protected]" alt="">
</div>
<div class="product-description">
<h3 class="product-name">Flower Bouquet Amelia</h3>
<p class="product-price">$82.00</p>
</div>
</div>
</div>
<div class="product-item">
<div class="product-content">
<div class="product-image">
<img src="images/products/[email protected]" alt="">
</div>
<div class="product-description">
<h3 class="product-name">Flower Bouquet Catherine</h3>
<p class="product-price">$78.90</p>
</div>
</div>
</div>
<div class="product-item">
<div class="product-content">
<div class="product-image">
<img src="images/products/[email protected]" alt="">
</div>
<div class="product-description">
<h3 class="product-name">Flower Bouquet Isabella</h3>
<p class="product-price">$62.50</p>
</div>
</div>
</div>
<div class="product-item product-hide">
<div class="product-content">
<div class="product-image thumb">
<img src="images/products/[email protected]" alt="">
</div>
<div class="product-description">
<h3 class="product-name">Flower Bouquet Juliet</h3>
<p class="product-price">$68.50</p>
</div>
</div>
</div>
<div class="product-item product-hide">
<div class="product-content">
<div class="product-image thumb">
<img src="images/products/[email protected]" alt="">
</div>
<div class="product-description">
<h3 class="product-name">Flower Bouquet Elizabeth</h3>
<p class="product-price">$86.00</p>
</div>
</div>
</div>
</div>
97 changes: 97 additions & 0 deletions MH-FiorellaTheme5/source/stylesheets/product-list-style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
.products-container {
display: table;
margin: 0 auto;
padding: 5px 5px;
}

.product-item {
display: table-cell;
float: left;
height: 300px;
text-align: center;
width: 180px;
}

.product-content {
border: 1px solid #E83671;
height: 100%;
margin: 5px;
position: relative;
}

.product-image {
padding: 30px;
}

.thumb {
margin-top: 30px;
}

.product-description {
bottom: 0px;
position: absolute;
text-align: center;
width: 100%;
}

.product-image img {
width: 90%;
}

.product-name {
margin-bottom: 0px;
}

.product-price {
color: #E83671;
font-family: 'MerriweatherSans-Bold';
margin-top: 10px;
}

@media only screen and ( max-width: 767px ) {
.product-item {
display: block;
height: 380px;
margin-bottom: 5px;
margin-top: 5px;
width: 100%;
}

.product-hide {
display: none;
}

.product-image img {
width: 190px;
}

}

@media only screen and ( min-width: 768px ) and ( max-width: 1023px ) {
.product-item {
display: block;
height: 380px;
margin-bottom: 5px;
margin-top: 5px;
width: 33.33%;
}

.product-image img {
width: 190px;
}

}

@media only screen and ( min-width: 1024px ) {
.product-item {
display: block;
height: 550px;
margin-bottom: 5px;
margin-top: 5px;
width: 33.33%;
}

.product-image img {
width: 260px;
}
}

0 comments on commit 2ea578e

Please sign in to comment.