Compare commits

..

2 Commits

Author SHA1 Message Date
9c06f80dd7 Added Redone Exchange rate html. 2022-11-15 13:23:34 -05:00
c2db233c35 Updated Package references. 2022-11-15 13:19:11 -05:00
4 changed files with 81 additions and 1 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()
{
}
}
}

View File

@ -7,9 +7,10 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Magick.NET-Q16-AnyCPU" Version="11.3.0" />
<PackageReference Include="Magick.NET-Q8-AnyCPU" Version="11.3.0" />
<PackageReference Include="Magick.NET.Core" Version="11.3.0" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="6.0.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
<PackageReference Include="ZXing.Net" Version="0.16.8" />
<FrameworkReference Include="Microsoft.WindowsDesktop.App" />
</ItemGroup>

BIN
wwwroot/img/EX_FLAG.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB