Added Redone Exchange rate html.

This commit is contained in:
Cameron Taylor 2022-11-15 13:23:34 -05:00
parent c2db233c35
commit 9c06f80dd7
3 changed files with 79 additions and 0 deletions

53
Pages/ExchangeRate.cshtml Normal file
View File

@ -0,0 +1,53 @@
@page "/exrate"
@model VSERVERWS.Pages.ExchangeRateModel
@{
Layout = null;
}
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="X-UA-Compatible" content="IE=10">
<title>Exchange Rate</title>
</head>
<body scroll="no" style="margin: 0; padding: 0">
<style>
.headertext {
font-size: 32.0pt;
font-family: Calibri;
font-weight: 900;
text-shadow: 2px 3px 5px #737373,-1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff, 1px 1px 0 #ffffff, -2px 0 0 #ffffff, 2px 0 0 #ffffff, 0 2px 0 #ffffff, 0 -2px 0 #ffffff;
color: #0F243D;
text-align: center;
}
.percenttext {
font-size: 140pt;
line-height: 119%;
font-family: Impact;
text-shadow: 2px 3px 5px #737373,-1px -1px 0 #ffffff, 1px -1px 0 #ffffff, -1px 1px 0 #ffffff, 1px 1px 0 #ffffff, -2px 0 0 #ffffff, 2px 0 0 #ffffff, 0 2px 0 #ffffff, 0 -2px 0 #ffffff;
color: #0F243D;
text-align: center;
}
</style>
<div style="width:517px; height: 271px; display: flex; flex-direction: column; position: relative">
<img src="/img/EX_FLAG.png" style="width: 517px; height: 271px; position: absolute; top: 0; left: 0; z-index: -5; opacity: 50%;" >
<span class="headertext">US to CDN EXCHANGE RATE</span>
<span class="percenttext">@Model.ExRate.ToString()%</span>
</div>
</body>
</html>

View File

@ -0,0 +1,26 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using CVRLIB.CVR;
namespace VSERVERWS.Pages
{
public class ExchangeRateModel : PageModel
{
public float ExRate {
get {
return CVRCO.GetUSDtoCDNExRate;
}
}
public void OnGet()
{
}
}
}

BIN
wwwroot/img/EX_FLAG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB