Skip to content

Commit

Permalink
#13:[WIP] Added product list/Hot Products
Browse files Browse the repository at this point in the history
  • Loading branch information
msaroshali committed Apr 12, 2023
1 parent 63a9b9e commit cef6033
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/main/java/views/WebShopController/index.ftl.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,29 @@ <h1 class="head-1">${caro.name}</h1>
<div class="container">
<div class="row">
<div class="col-sm-12 text-center">
<h2 class="intro">It started with a simple idea: SHATATATATA!</h2>
<h2 class="intro">Began with a simple idea: "SHATATATATA!" - Michael Scott</h2>
</div>
</div>
</div>
</div>

<div class="colorlib-product">
<div class="container-fluid">
<div class="row">
<#list productslist as prItem>
<div class="col-sm-4 text-center">
<div class="featured">
<a href="${contextPath}/productDetail/${prItem.name?url('UTF-8')}?productId=${prItem.id}" class="featured-img" style="background-image: url(${contextPath}${prItem.imageURL});"></a>
<div class="desc">
<h2><a href="${contextPath}/productDetail/${prItem.name?url('UTF-8')}?productId=${prItem.id}" class="pName">${prItem.name}</a></h2>
<span class="text-muted"><span class="pDescriptionOverview">${prItem.descriptionOverview}</span></span>
</div>
</div>
</div>
</#list>
</div>

</div>
</div>

<!--Homepage Product Samples-->
<div class="margin_top20 row">
Expand Down

0 comments on commit cef6033

Please sign in to comment.