Redesign: single-page QRPay app with modern UI

Removed sidebar, Counter, and Weather pages. Rebuilt Home.razor as a focused QR payment generator with validation, responsive card layout, and QR code display. Added new CSS for modern look, updated global styles, and introduced SVG logo/favicon. Cleaned up solution and project files for a streamlined, single-page experience.
This commit is contained in:
Michal Vrba
2025-12-19 15:44:09 +01:00
parent 07bf9da4e1
commit beb5830279
15 changed files with 662 additions and 345 deletions
+1 -7
View File
@@ -1,10 +1,8 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 18
VisualStudioVersion = 18.1.11304.174 d18.0
VisualStudioVersion = 18.1.11304.174
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QRPayWeb", "QRPayWeb\QRPayWeb.csproj", "{FAB7CC2C-9167-44B9-84B9-3DEFEE32CCCB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QRPay", "QRPay\QRPay.csproj", "{4568C485-BB58-42EF-9D66-7935D1F31FC8}"
EndProject
Global
@@ -13,10 +11,6 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FAB7CC2C-9167-44B9-84B9-3DEFEE32CCCB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FAB7CC2C-9167-44B9-84B9-3DEFEE32CCCB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FAB7CC2C-9167-44B9-84B9-3DEFEE32CCCB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FAB7CC2C-9167-44B9-84B9-3DEFEE32CCCB}.Release|Any CPU.Build.0 = Release|Any CPU
{4568C485-BB58-42EF-9D66-7935D1F31FC8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4568C485-BB58-42EF-9D66-7935D1F31FC8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4568C485-BB58-42EF-9D66-7935D1F31FC8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+1 -11
View File
@@ -1,16 +1,6 @@
@inherits LayoutComponentBase
<div class="page">
<div class="sidebar">
<NavMenu />
</div>
<div class="main-container">
<main>
<div class="top-row px-4">
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
</div>
<article class="content px-4">
@Body
</article>
</main>
</div>
+15
View File
@@ -5,6 +5,8 @@
}
main {
width: 100%;
max-width: 500px;
flex: 1;
}
@@ -75,3 +77,16 @@ main {
padding-right: 1.5rem !important;
}
}
* {
box-sizing: border-box;
}
.main-container {
min-height: 100vh;
background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
-39
View File
@@ -1,39 +0,0 @@
<div class="top-row ps-3 navbar navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="">QRPay</a>
<button title="Navigation menu" class="navbar-toggler" @onclick="ToggleNavMenu">
<span class="navbar-toggler-icon"></span>
</button>
</div>
</div>
<div class="@NavMenuCssClass nav-scrollable" @onclick="ToggleNavMenu">
<nav class="nav flex-column">
<div class="nav-item px-3">
<NavLink class="nav-link" href="" Match="NavLinkMatch.All">
<span class="bi bi-house-door-fill-nav-menu" aria-hidden="true"></span> Home
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="counter">
<span class="bi bi-plus-square-fill-nav-menu" aria-hidden="true"></span> Counter
</NavLink>
</div>
<div class="nav-item px-3">
<NavLink class="nav-link" href="weather">
<span class="bi bi-list-nested-nav-menu" aria-hidden="true"></span> Weather
</NavLink>
</div>
</nav>
</div>
@code {
private bool collapseNavMenu = true;
private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;
private void ToggleNavMenu()
{
collapseNavMenu = !collapseNavMenu;
}
}
-83
View File
@@ -1,83 +0,0 @@
.navbar-toggler {
background-color: rgba(255, 255, 255, 0.1);
}
.top-row {
min-height: 3.5rem;
background-color: rgba(0,0,0,0.4);
}
.navbar-brand {
font-size: 1.1rem;
}
.bi {
display: inline-block;
position: relative;
width: 1.25rem;
height: 1.25rem;
margin-right: 0.75rem;
top: -1px;
background-size: cover;
}
.bi-house-door-fill-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}
.bi-plus-square-fill-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}
.bi-list-nested-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}
.nav-item {
font-size: 0.9rem;
padding-bottom: 0.5rem;
}
.nav-item:first-of-type {
padding-top: 1rem;
}
.nav-item:last-of-type {
padding-bottom: 1rem;
}
.nav-item ::deep a {
color: #d7d7d7;
border-radius: 4px;
height: 3rem;
display: flex;
align-items: center;
line-height: 3rem;
}
.nav-item ::deep a.active {
background-color: rgba(255,255,255,0.37);
color: white;
}
.nav-item ::deep a:hover {
background-color: rgba(255,255,255,0.1);
color: white;
}
@media (min-width: 641px) {
.navbar-toggler {
display: none;
}
.collapse {
/* Never collapse the sidebar for wide screens */
display: block;
}
.nav-scrollable {
/* Allow sidebar to scroll for tall menus */
height: calc(100vh - 3.5rem);
overflow-y: auto;
}
}
-18
View File
@@ -1,18 +0,0 @@
@page "/counter"
<PageTitle>Counter</PageTitle>
<h1>Counter</h1>
<p role="status">Current count: @currentCount</p>
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
@code {
private int currentCount = 0;
private void IncrementCount()
{
currentCount++;
}
}
+147 -45
View File
@@ -1,70 +1,158 @@
@page "/"
@using QRCoder
@using SixLabors.ImageSharp.Formats
<PageTitle>Home</PageTitle>
@using System.ComponentModel.DataAnnotations
<PageTitle>QRPay - QR Payment Generator</PageTitle>
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Create QR payment barcode</h5>
</div>
<div class="modal-body">
<div class="form-group">
<label for="input0">Name</label>
<input type="text" class="form-control" id="input0" @bind="Name" placeholder="Enter beneficiary name">
</div>
<div class="form-group">
<label for="input1">IBAN</label>
<input type="text" class="form-control" id="input1" @bind="IBAN" placeholder="Enter IBAN">
</div>
<div class="form-group">
<label for="input2">Amount</label>
<input type="text" class="form-control" id="input2" placeholder="Enter amount in EUR" @bind="Amount">
</div>
<div class="form-group">
<label for="input3">Remark</label>
<input type="text" class="form-control" id="input3" placeholder="Enter optional remark" @bind="Remark">
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" @onclick="@GenerateQRCode">Generate</button>
</div>
@if (_show)
<div class="qrpay-container">
@if (!_showQRCode)
{
<div class="text-center">
<img src="@QRCodeStr" style="width:200px;height:200px" />
<!-- Form View -->
<div class="qrpay-card">
<!-- Logo and Header -->
<div class="qrpay-header">
<div class="qrpay-logo">
<img src="logo.svg" alt="QRPay Logo" />
</div>
<h1 class="qrpay-title">QRPay</h1>
<p class="qrpay-subtitle">Generate QR payment codes instantly</p>
</div>
<!-- Form -->
<EditForm Model="@paymentModel" OnValidSubmit="@GenerateQRCode">
<DataAnnotationsValidator />
<div class="qrpay-form">
<div class="form-group">
<label for="name" class="form-label">Beneficiary Name</label>
<InputText @bind-Value="paymentModel.Name" class="form-control" id="name" placeholder="Enter beneficiary name" />
<ValidationMessage For="@(() => paymentModel.Name)" class="validation-message" />
</div>
<div class="form-group">
<label for="iban" class="form-label">IBAN</label>
<InputText @bind-Value="paymentModel.IBAN" class="form-control" id="iban" placeholder="Enter IBAN (e.g., SK89 7500 0000 0000 1234 5671)" />
<ValidationMessage For="@(() => paymentModel.IBAN)" class="validation-message" />
</div>
<div class="form-group">
<label for="amount" class="form-label">Amount (EUR)</label>
<InputNumber @bind-Value="paymentModel.Amount" class="form-control" id="amount" placeholder="0.00" step="0.01" />
<ValidationMessage For="@(() => paymentModel.Amount)" class="validation-message" />
</div>
<div class="form-group">
<label for="remark" class="form-label">Payment Reference (Optional)</label>
<InputText @bind-Value="paymentModel.Remark" class="form-control" id="remark" placeholder="Enter payment reference or note" />
<ValidationMessage For="@(() => paymentModel.Remark)" class="validation-message" />
</div>
<button type="submit" class="btn-generate" disabled="@_isGenerating">
@if (_isGenerating)
{
<span class="spinner"></span>
<span>Generating...</span>
}
else
{
<span>Generate QR Code</span>
}
</button>
</div>
</EditForm>
</div>
}
else
{
<!-- QR Code View -->
<div class="qrcode-container">
<div class="qrcode-header">
<h2>Payment QR Code</h2>
<p>Scan this code with your banking app</p>
</div>
<div class="qrcode-display">
<img src="@QRCodeStr" alt="Payment QR Code" />
</div>
<div class="payment-details">
<div class="detail-row">
<span class="detail-label">To:</span>
<span class="detail-value">@paymentModel.Name</span>
</div>
<div class="detail-row">
<span class="detail-label">Amount:</span>
<span class="detail-value">€@paymentModel.Amount.ToString("F2")</span>
</div>
@if (!string.IsNullOrWhiteSpace(paymentModel.Remark))
{
<div class="detail-row">
<span class="detail-label">Reference:</span>
<span class="detail-value">@paymentModel.Remark</span>
</div>
}
</div>
<button class="btn-back" @onclick="@GoBack">
<span>← Create New Payment</span>
</button>
</div>
}
</div>
@code {
string IBAN { get; set; } = string.Empty;
decimal Amount { get; set; } = 0;
string Remark { get; set; } = string.Empty;
string QRCodeStr { get; set; } = string.Empty;
string Name { get; set; } = string.Empty;
private PaymentModel paymentModel = new();
private string QRCodeStr = string.Empty;
private bool _showQRCode = false;
private bool _isGenerating = false;
bool _show = false;
public class PaymentModel
{
[Required(ErrorMessage = "Beneficiary name is required")]
[StringLength(70, ErrorMessage = "Name cannot exceed 70 characters")]
public string Name { get; set; } = string.Empty;
public void GenerateQRCode()
[Required(ErrorMessage = "IBAN is required")]
[RegularExpression(@"^[A-Z]{2}[0-9]{2}[A-Z0-9]{4}[0-9]{7}([A-Z0-9]?){0,16}$", ErrorMessage = "Please enter a valid IBAN")]
public string IBAN { get; set; } = string.Empty;
[Required(ErrorMessage = "Amount is required")]
[Range(0.01, 999999.99, ErrorMessage = "Amount must be between €0.01 and €999,999.99")]
public decimal Amount { get; set; } = 0;
[StringLength(140, ErrorMessage = "Remark cannot exceed 140 characters")]
public string? Remark { get; set; } = string.Empty;
}
public async Task GenerateQRCode()
{
_isGenerating = true;
StateHasChanged();
// Small delay to show loading state
await Task.Delay(500);
try
{
QRCodeStr = string.Empty;
if (!string.IsNullOrWhiteSpace(IBAN))
if (!string.IsNullOrWhiteSpace(paymentModel.IBAN))
{
using (var ms = new MemoryStream())
{
QRCodeGenerator qRCodeGenerator = new QRCodeGenerator();
var payment = new PayBySquareTextGenerator.Payment(IBAN.Replace(" ", ""), Amount, "EUR", "1", Remark);
var payment = new PayBySquareTextGenerator.Payment(
paymentModel.IBAN.Replace(" ", ""),
paymentModel.Amount,
"EUR",
"1",
paymentModel.Remark ?? string.Empty);
payment.ConstantSymbol = "0308";
payment.BeneficiaryName = Name;
payment.BeneficiaryName = paymentModel.Name;
var a = new PayBySquareTextGenerator.PayBySquareOverkill(payment);
var stringData = a.GeneratePayBySquareOverkillString();
var payBySquare = new PayBySquareTextGenerator.PayBySquareOverkill(payment);
var stringData = payBySquare.GeneratePayBySquareOverkillString();
// Generate QR code data
using var qrCodeData = QRCodeGenerator.GenerateQrCode(stringData, QRCodeGenerator.ECCLevel.Q);
@@ -74,7 +162,21 @@
QRCodeStr = $"data:image/png;base64,{Convert.ToBase64String(qrCodeImage)}";
}
_show = true;
_showQRCode = true;
}
}
finally
{
_isGenerating = false;
StateHasChanged();
}
}
public void GoBack()
{
_showQRCode = false;
QRCodeStr = string.Empty;
paymentModel = new PaymentModel(); // Reset the form
StateHasChanged();
}
}
+331
View File
@@ -0,0 +1,331 @@
/* QRPay Component Styles */
.qrpay-container {
width: 100%;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}
/* Form Card Styles */
.qrpay-card {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 24px;
padding: 40px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 500px;
animation: slideUp 0.6s ease-out;
}
/* Header Styles */
.qrpay-header {
text-align: center;
margin-bottom: 40px;
}
.qrpay-logo {
margin-bottom: 20px;
}
.qrpay-logo img {
width: 80px;
height: 80px;
filter: drop-shadow(0 4px 12px rgba(45, 90, 39, 0.3));
}
.qrpay-title {
font-size: 2.5rem;
font-weight: 700;
background: linear-gradient(135deg, #2d5a27, #4a7c59);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin: 0 0 8px 0;
}
.qrpay-subtitle {
color: #6b7280;
font-size: 1.1rem;
margin: 0;
font-weight: 400;
}
/* Form Styles */
.qrpay-form {
display: flex;
flex-direction: column;
gap: 24px;
}
.form-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.form-label {
font-weight: 600;
color: #374151;
font-size: 0.95rem;
margin: 0;
}
.form-control {
padding: 16px 20px;
border: 2px solid #e5e7eb;
border-radius: 12px;
font-size: 1rem;
transition: all 0.3s ease;
background: #ffffff;
}
.form-control:focus {
outline: none;
border-color: #4a7c59;
box-shadow: 0 0 0 4px rgba(74, 124, 89, 0.1);
transform: translateY(-1px);
}
.form-control:invalid {
border-color: #ef4444;
}
.validation-message {
color: #ef4444;
font-size: 0.875rem;
font-weight: 500;
margin-top: 4px;
display: block;
animation: fadeIn 0.3s ease;
}
/* Generate Button */
.btn-generate {
background: linear-gradient(135deg, #2d5a27, #4a7c59);
color: white;
border: none;
padding: 18px 32px;
border-radius: 12px;
font-size: 1.1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 16px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}
.btn-generate:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(45, 90, 39, 0.4);
}
.btn-generate:active:not(:disabled) {
transform: translateY(0);
}
.btn-generate:disabled {
opacity: 0.7;
cursor: not-allowed;
transform: none;
}
.spinner {
width: 20px;
height: 20px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: white;
animation: spin 1s ease-in-out infinite;
}
/* QR Code Display Styles */
.qrcode-container {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 24px;
padding: 40px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 500px;
text-align: center;
animation: slideUp 0.6s ease-out;
}
.qrcode-header {
margin-bottom: 32px;
}
.qrcode-header h2 {
font-size: 2rem;
font-weight: 700;
color: #2d5a27;
margin: 0 0 8px 0;
}
.qrcode-header p {
color: #6b7280;
font-size: 1.1rem;
margin: 0;
}
.qrcode-display {
background: #ffffff;
border-radius: 16px;
padding: 24px;
margin-bottom: 32px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.qrcode-display img {
width: 280px;
height: 280px;
border-radius: 8px;
}
/* Payment Details */
.payment-details {
background: #f8fafc;
border-radius: 16px;
padding: 24px;
margin-bottom: 32px;
}
.detail-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 0;
border-bottom: 1px solid #e2e8f0;
}
.detail-row:last-child {
border-bottom: none;
}
.detail-label {
font-weight: 600;
color: #374151;
}
.detail-value {
font-weight: 500;
color: #2d5a27;
text-align: right;
word-break: break-word;
max-width: 60%;
}
/* Back Button */
.btn-back {
background: #f3f4f6;
color: #374151;
border: 2px solid #e5e7eb;
padding: 16px 32px;
border-radius: 12px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
}
.btn-back:hover {
background: #e5e7eb;
border-color: #d1d5db;
transform: translateY(-1px);
}
.btn-back:active {
transform: translateY(0);
}
/* Animations */
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Responsive Design */
@media (max-width: 640px) {
.qrpay-card,
.qrcode-container {
padding: 24px;
margin: 16px;
border-radius: 16px;
}
.qrpay-title {
font-size: 2rem;
}
.qrcode-display img {
width: 240px;
height: 240px;
}
.detail-row {
flex-direction: column;
align-items: flex-start;
gap: 4px;
}
.detail-value {
max-width: 100%;
text-align: left;
}
}
@media (max-width: 480px) {
.qrpay-container {
padding: 12px;
}
.qrpay-logo img {
width: 60px;
height: 60px;
}
.qrpay-title {
font-size: 1.75rem;
}
.qrcode-display img {
width: 200px;
height: 200px;
}
}
-57
View File
@@ -1,57 +0,0 @@
@page "/weather"
@inject HttpClient Http
<PageTitle>Weather</PageTitle>
<h1>Weather</h1>
<p>This component demonstrates fetching data from the server.</p>
@if (forecasts == null)
{
<p><em>Loading...</em></p>
}
else
{
<table class="table">
<thead>
<tr>
<th>Date</th>
<th aria-label="Temperature in Celsius">Temp. (C)</th>
<th aria-label="Temperature in Fahrenheit">Temp. (F)</th>
<th>Summary</th>
</tr>
</thead>
<tbody>
@foreach (var forecast in forecasts)
{
<tr>
<td>@forecast.Date.ToShortDateString()</td>
<td>@forecast.TemperatureC</td>
<td>@forecast.TemperatureF</td>
<td>@forecast.Summary</td>
</tr>
}
</tbody>
</table>
}
@code {
private WeatherForecast[]? forecasts;
protected override async Task OnInitializedAsync()
{
forecasts = await Http.GetFromJsonAsync<WeatherForecast[]>("sample-data/weather.json");
}
public class WeatherForecast
{
public DateOnly Date { get; set; }
public int TemperatureC { get; set; }
public string? Summary { get; set; }
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
}
}
+4
View File
@@ -14,4 +14,8 @@
<PackageReference Include="QRCoder-ImageSharp" Version="0.10.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="wwwroot\sample-data\" />
</ItemGroup>
</Project>
+103 -40
View File
@@ -1,5 +1,15 @@
/* Global Styles for QRPay */
html, body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
background: linear-gradient(135deg, #2d5a27 0%, #4a7c59 100%);
min-height: 100vh;
}
*, *::before, *::after {
box-sizing: inherit;
}
h1:focus {
@@ -7,109 +17,162 @@ h1:focus {
}
a, .btn-link {
color: #0071c1;
color: #4a7c59;
text-decoration: none;
}
a:hover, .btn-link:hover {
color: #2d5a27;
}
.btn-primary {
color: #fff;
background-color: #1b6ec2;
border-color: #1861ac;
background: linear-gradient(135deg, #2d5a27, #4a7c59);
border: none;
border-radius: 8px;
padding: 12px 24px;
font-weight: 600;
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(74, 124, 89, 0.4);
}
.content {
padding-top: 1.1rem;
padding: 0;
}
.valid.modified:not([type=checkbox]) {
outline: 1px solid #26b050;
outline: 2px solid #10b981;
border-color: #10b981;
}
.invalid {
outline: 1px solid red;
outline: 2px solid #ef4444;
border-color: #ef4444;
}
.validation-message {
color: red;
color: #ef4444;
font-size: 0.875rem;
font-weight: 500;
margin-top: 4px;
}
#blazor-error-ui {
color-scheme: light only;
background: lightyellow;
background: linear-gradient(135deg, #dc2626, #ef4444);
bottom: 0;
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
box-sizing: border-box;
display: none;
left: 0;
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
padding: 1rem 1.25rem;
position: fixed;
width: 100%;
z-index: 1000;
color: white;
font-weight: 500;
border-radius: 12px 12px 0 0;
}
#blazor-error-ui .dismiss {
#blazor-error-ui .dismiss {
cursor: pointer;
position: absolute;
right: 0.75rem;
top: 0.5rem;
}
.blazor-error-boundary {
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHR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yLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
padding: 1rem 1rem 1rem 3.7rem;
color: white;
font-size: 1.2rem;
opacity: 0.8;
transition: opacity 0.2s;
}
.blazor-error-boundary::after {
#blazor-error-ui .dismiss:hover {
opacity: 1;
}
.blazor-error-boundary {
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg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border-radius: 12px;
margin: 1rem;
}
.blazor-error-boundary::after {
content: "An error has occurred."
}
}
.loading-progress {
position: absolute;
display: block;
width: 8rem;
height: 8rem;
inset: 20vh 0 auto 0;
inset: 40vh 0 auto 0;
margin: 0 auto 0 auto;
}
.loading-progress circle {
.loading-progress circle {
fill: none;
stroke: #e0e0e0;
stroke: rgba(255, 255, 255, 0.2);
stroke-width: 0.6rem;
transform-origin: 50% 50%;
transform: rotate(-90deg);
}
}
.loading-progress circle:last-child {
stroke: #1b6ec2;
.loading-progress circle:last-child {
stroke: #ffffff;
stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
transition: stroke-dasharray 0.05s ease-in-out;
}
}
.loading-progress-text {
position: absolute;
text-align: center;
font-weight: bold;
inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
font-weight: 600;
inset: calc(40vh + 3.25rem) 0 auto 0.2rem;
color: #ffffff;
font-size: 1.1rem;
}
.loading-progress-text:after {
content: var(--blazor-load-percentage-text, "Loading");
}
.loading-progress-text:after {
content: var(--blazor-load-percentage-text, "Loading QRPay");
}
code {
color: #c02d76;
color: #4a7c59;
background: rgba(74, 124, 89, 0.1);
padding: 2px 6px;
border-radius: 4px;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
color: var(--bs-secondary-color);
text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
/* Form Controls Override */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
color: #9ca3af;
text-align: start;
}
.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
text-align: start;
opacity: 0.7;
}
/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.3);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.5);
}
+17
View File
@@ -0,0 +1,17 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">
<circle cx="16" cy="16" r="15" fill="#2d5a27"/>
<rect x="6" y="11" width="14" height="8" rx="1" fill="#6ee7b7"/>
<circle cx="9.5" cy="15" r="1.5" fill="#059669" opacity="0.3"/>
<circle cx="16.5" cy="15" r="1.5" fill="#059669" opacity="0.3"/>
<path d="M21 10 L26 12.5 L23.5 12.5 L23.5 17.5 L26 17.5 L21 20 L23.5 16.25 L21 16.25 Z" fill="#ffffff"/>
<g fill="#ffffff">
<rect x="7" y="22.5" width="1" height="1"/>
<rect x="8.5" y="22.5" width="1" height="1"/>
<rect x="10" y="22.5" width="1" height="1"/>
<rect x="7" y="24" width="1" height="1"/>
<rect x="10" y="24" width="1" height="1"/>
<rect x="7" y="25.5" width="1" height="1"/>
<rect x="8.5" y="25.5" width="1" height="1"/>
<rect x="10" y="25.5" width="1" height="1"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 862 B

+1 -1
View File
@@ -9,7 +9,7 @@
<link rel="preload" id="webassembly" />
<link rel="stylesheet" href="lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="css/app.css" />
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<link href="QRPay.styles.css" rel="stylesheet" />
<script type="importmap"></script>
</head>
+25
View File
@@ -0,0 +1,25 @@
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
<!-- Background circle -->
<circle cx="32" cy="32" r="30" fill="#2d5a27" stroke="#4a7c59" stroke-width="2"/>
<!-- Bank note -->
<rect x="12" y="22" width="28" height="16" rx="2" fill="#6ee7b7" stroke="#059669" stroke-width="1"/>
<circle cx="19" cy="30" r="3" fill="#059669" opacity="0.3"/>
<circle cx="33" cy="30" r="3" fill="#059669" opacity="0.3"/>
<rect x="24" y="27" width="4" height="6" fill="#059669" opacity="0.5"/>
<!-- Transfer arrow -->
<path d="M42 20 L52 25 L47 25 L47 35 L52 35 L42 40 L47 32.5 L42 32.5 Z" fill="#ffffff" stroke="#d1fae5" stroke-width="0.5"/>
<!-- QR code pattern -->
<g fill="#ffffff">
<rect x="14" y="45" width="2" height="2"/>
<rect x="17" y="45" width="2" height="2"/>
<rect x="20" y="45" width="2" height="2"/>
<rect x="14" y="48" width="2" height="2"/>
<rect x="20" y="48" width="2" height="2"/>
<rect x="14" y="51" width="2" height="2"/>
<rect x="17" y="51" width="2" height="2"/>
<rect x="20" y="51" width="2" height="2"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

-27
View File
@@ -1,27 +0,0 @@
[
{
"date": "2022-01-06",
"temperatureC": 1,
"summary": "Freezing"
},
{
"date": "2022-01-07",
"temperatureC": 14,
"summary": "Bracing"
},
{
"date": "2022-01-08",
"temperatureC": -13,
"summary": "Freezing"
},
{
"date": "2022-01-09",
"temperatureC": -16,
"summary": "Balmy"
},
{
"date": "2022-01-10",
"temperatureC": -2,
"summary": "Chilly"
}
]