restore currency logic and ad display

This commit is contained in:
Megan O'Keefe 2020-04-22 10:06:58 -04:00
parent 739135dcd3
commit 9794ba2394
16 changed files with 55 additions and 13 deletions

View file

@ -1,7 +1,9 @@
# Online Boutique: Cloud-Native Microservices Demo Application
![src/frontend/static/icons/Hipster_HeroLogoCyan.svg](src/frontend/static/icons/Hipster_HeroLogoCyan.svg)
This project contains a 10-tier microservices application. The application is a
web-based e-commerce app called **“Online Boutique”** where users can browse items,
**Online Boutique** is a cloud-native microservices demo application.
Online Boutique consists of a 10-tier microservices application. The application is a
web-based e-commerce app where users can browse items,
add them to the cart, and purchase them.
**Google uses this application to demonstrate use of technologies like

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 335 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 393 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 350 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 428 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 717 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 413 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 485 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 285 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 396 KiB

View file

@ -91,6 +91,43 @@ header .h-control input {
align-items: center;
}
header .h-form form {
font-size: 12px;
border: solid 1px #f2f2f2;
padding: 0 0px 0 0px;
width: 250px;
height: 24px;
flex-shrink: 0;
background-color: #f2f2f2;
display: flex;
align-items: center;
}
header .h-form select {
background: transparent;
border-radius: 0;
border: solid 1px #f2f2f2;
width: 100px;
height: 20px;
flex-shrink: 0;
padding: 0 7px;
display: flex;
align-items: center;
}
header .h-form option {
background: transparent;
border-radius: 0;
border: solid 1px #f2f2f2;
width: 100px;
height: 20px;
flex-shrink: 0;
padding: 0 7px;
display: flex;
align-items: center;
}
header .h-control input:focus {
outline: 0;
border: 0;
@ -119,7 +156,7 @@ header .icon.search-icon {
header .h-control select {
background: transparent;
border-radius: 0;
border: 1px solid #acacac;
border: none;
width: 100px;
height: 20px;
flex-shrink: 0;

View file

@ -36,13 +36,17 @@
<span>Help</span>
</div>
<div class="h-control">
{{ if $.currencies }}
<img src="/static/icons/Hipster_CurrencyIcon.svg" alt="icon" class="icon" />
<select value="US Dollars">
<option>US Dollars</option>
<option>Euros</option>
<option>CRC</option>
<form method="POST" action="/setCurrency" id="currency_form">
<select value="US Dollars"
onchange="document.getElementById('currency_form').submit();" style="width:auto;">
{{range $.currencies}}
<option value="{{.}}" {{if eq . $.user_currency}}selected="selected"{{end}}>{{.}}</option>
{{end}}
</select>
<img src="/static/icons/Hipster_DownArrow.svg" alt="icon" class="icon arrow" />
</form>
{{ end }}
</div>
</div>
</div>

View file

@ -45,9 +45,8 @@
{{ template "recommendations" $.recommendations }}
{{ end }}
<div class="row ad-row ad-row-2">
<img src="/static/icons/Hipster_Advert2.svg" alt="icon" class="" />
</div>
{{ with $.ad }}{{ template "text_ad" . }}{{ end}}
</div>
</main>
{{ template "footer" . }}