-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from magma-labs/feature/product-list
Add category section
- Loading branch information
Showing
10 changed files
with
171 additions
and
0 deletions.
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
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.
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,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
97
MH-FiorellaTheme5/source/stylesheets/product-list-style.css
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,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; | ||
} | ||
} |