-
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.
Updates styles, created icons. Added new info (current rate, direct conversion)
- Loading branch information
1 parent
27550c6
commit 9a92776
Showing
13 changed files
with
149 additions
and
34 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
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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -11,7 +11,11 @@ | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Paypal Converter</title> | ||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> | ||
<link rel="shortcut icon" href="converter_icon.png" type="image/x-icon" /> | ||
<link rel="apple-touch-icon" href="converter_icon.png"/> | ||
<link rel="apple-touch-icon" sizes="114x114" href="[email protected]"/> | ||
<link href="https://fonts.googleapis.com/css?family=Mukta+Vaani:300,400" rel="stylesheet"> | ||
<link href="https://fonts.googleapis.com/css?family=Muli:300,400" rel="stylesheet"> | ||
<!-- Place favicon.ico and apple-touch-icon.png in the root directory --> | ||
<!-- build:css css/styles.min.css --> | ||
<link rel="stylesheet" href="css/normalize.css"> | ||
|
@@ -32,29 +36,40 @@ | |
<h1 class="lead">Welcome to the paypal converter</h1> | ||
|
||
<form class="form-inline converter-form" name="myForm"> | ||
<div class="row"> | ||
<div class="col-xs-12"> | ||
<div class="form-group converter-form__input"> | ||
<label class="sr-only" for="exampleInputAmount">Amount (in dollars)</label> | ||
<div class="converter-form__input"> | ||
<div class="form-group"> | ||
<label class="sr-only" for="exampleInputAmount">Amount (in dollars)</label> | ||
<div class="input-group converter-form__input--amount"> | ||
<div class="input-group-addon">$</div> | ||
<input type="text" class="form-control" id="exampleInputAmount" placeholder="Amount" ng-model="input.amount" ng-required=true ng-pattern="/^[+]?([0-9]+(?:[\.][0-9]*)?|\.[0-9]+)$/"> | ||
</div> | ||
<div class="input-group"> | ||
<select class="form-control" name="input.currency" ng-model="input.currency" id="input.currency" ng-init="input.currency = options[0]" ng-options="option.name for option in options track by option.id"> | ||
</select> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<select class="form-control" name="input.currency" ng-model="input.currency" id="input.currency" ng-init="input.currency = options[0]" ng-options="option.name for option in options track by option.id"> | ||
</select> | ||
</div> | ||
</div> | ||
<button type="submit" class="btn btn-primary converter-form__submit" ng-click="showConverted(input.amount,input.currency)" ng-disabled="myForm.$invalid">Convert</button> | ||
</form> | ||
|
||
<div class="result">{{message}}{{total | currency}}</div> | ||
<div class="info"> | ||
<div class="info__result">{{message}}{{total | currency}}</div> | ||
<div class="info__rates"> | ||
<p>Today's Rates:</p> | ||
<ul class="info__rates-list"> | ||
<li>1 CAD -> {{ 1 / data.rates.CAD | number: 2}} USD</li> | ||
<li>1 USD -> {{ data.rates.CLP | number: 2}} CLP</li> | ||
</ul> | ||
</div> | ||
<div class="info__direct-rate"> | ||
<p>{{direct_message}} {{direct | currency}}</p> | ||
</div> | ||
</div> | ||
|
||
</main> | ||
|
||
|
||
<footer>Crafted by Kevin.</footer> | ||
<footer>Crafted by <a href="http://kkhenriquez.github.io/home" target="_blank">Kevin.</a></footer> | ||
|
||
<!-- build:js js/main.min.js --> | ||
<script src="components/angular/angular.min.js"></script> | ||
|
Oops, something went wrong.