Introduced a Language Selector component (`LanguageSelector.razor`) to enable users to switch between German, English, and French. The component includes a dropdown UI with flag icons and language labels, along with logic for toggling the dropdown and changing the app's culture. Injected `IJSRuntime`, `NavigationManager`, and `CultureService` into the component to handle culture changes and navigation updates. Updated `MainLayout.razor` to include the Language Selector in the footer. Refactored footer layout in `MainLayout.razor.css` to use flexbox for better alignment and spacing. Added styles for the Language Selector in `app.css` to ensure a clean and responsive design. Integrated the `flag-icons` library in `index.html` to display flag icons for language representation.
74 lines
2.5 KiB
HTML
74 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
|
|
<meta http-equiv="Pragma" content="no-cache" />
|
|
<meta http-equiv="Expires" content="0" />
|
|
<title>EnvelopeGenerator.ReceiverUI</title>
|
|
<base href="/" />
|
|
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
|
|
<link href="EnvelopeGenerator.ReceiverUI.styles.css" rel="stylesheet" />
|
|
<link href="css/app.css" rel="stylesheet" />
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/lipis/flag-icons@7.2.3/css/flag-icons.min.css" />
|
|
<style type="text/css">
|
|
.splash-screen {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-flow: column nowrap;
|
|
height: 100vh;
|
|
font-family: "Segoe UI",Roboto,"Helvetica Neue","-apple-system",BlinkMacSystemFont,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
|
|
font-size: .88rem;
|
|
font-weight: 400;
|
|
line-height: 1.5;
|
|
text-align: center;
|
|
}
|
|
|
|
.splash-screen .spinner-border {
|
|
border: .2em solid;
|
|
border-color: #5f368d #bfbfbf #bfbfbf;
|
|
width: 120px;
|
|
height: 120px;
|
|
}
|
|
|
|
.splash-screen-caption {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.splash-screen-text {
|
|
color: #a1a1a1;
|
|
margin-top: .5rem;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="app">
|
|
<script type="text/javascript">
|
|
if(/MSIE \d|Trident.*rv:|Edge\//.test(window.navigator.userAgent))
|
|
window.location.href = "browserNotSupported.html";
|
|
</script>
|
|
<div class="splash-screen">
|
|
<div class="spinner-border"></div>
|
|
<div class="splash-screen-caption">EnvelopeGenerator.ReceiverUI</div>
|
|
<div class="splash-screen-text">Loading...</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="blazor-error-ui">
|
|
An unhandled error has occurred.
|
|
<a href="" class="reload">Reload</a>
|
|
<a class="dismiss">X</a>
|
|
</div>
|
|
<script src="_content/DevExpress.Blazor.Resources/js/preload-script.js"></script>
|
|
<script src="js/typed.umd.js"></script>
|
|
<script src="js/receiver-signature.js?v=9"></script>
|
|
<script src="_framework/blazor.webassembly.js"></script>
|
|
</body>
|
|
|
|
</html> |