Skip to content

Commit

Permalink
added info icon as well as re-ordered some divs
Browse files Browse the repository at this point in the history
relates to #56
  • Loading branch information
Armand-Lluka committed Sep 19, 2018
1 parent dc3b912 commit 027c338
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 11 deletions.
21 changes: 17 additions & 4 deletions private/sass/inventory.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,25 @@

.items-container{
margin: $large;

}


.item-overview{
.items-overview{
display:flex;
flex-direction: row;
margin: 0;
}

.newItemH3{

margin: 0;
}

.bought-icon,
.suggested-icon{
width: 25%;
display: block;
margin: auto;
display: inline-block;
margin: 0;
}

.help-icon {
Expand All @@ -37,4 +40,14 @@ display:flex;
margin: 0;
border-radius: 50%;
cursor: pointer;
}

.bought-container{
display:flex;
flex-direction: column;
}

.suggested-container{
display:flex;
flex-direction: column;
}
22 changes: 19 additions & 3 deletions public/css/inventory.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/css/inventory.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/views/inventory.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,15 @@
<section class="items-container">

<h2 class="main-title">Suggested Items</h2>

<div class="suggested-container">
{{#each suggestedItems}}
<div class="items-overview">
<h3 class="newItemH3">{{this.title}}</h3>

<img class="suggested-icon" src='{{this.img_link}}'>

<button class="new-item-button" id="{{this.id}}" onclick="window.location.href='/inventory/suggested-item/{{this.id}}'">
<img class="help-icon" src="../../public/imgs/help.svg" alt="">
</button>

{{/each}}
</div>

Expand Down

0 comments on commit 027c338

Please sign in to comment.