generated from egmont11/ASP.Net-Core-MVC-Template
185 lines
5.5 KiB
Plaintext
185 lines
5.5 KiB
Plaintext
@model StuzkovakWeb.Entities.InviteEntity?
|
|
|
|
@{
|
|
ViewData["Title"] = "Pozvánka";
|
|
}
|
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
|
|
|
|
<style>
|
|
html, body {
|
|
background-color: #032d19 !important;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
.invitation-body {
|
|
background-color: #032d19;
|
|
color: #f3e5ab; /* Zlatavá/krémová barva textu */
|
|
font-family: 'JetBrains Mono', monospace;
|
|
min-height: 85vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 2rem 1rem;
|
|
}
|
|
|
|
.invitation-card {
|
|
width: 100%;
|
|
max-width: 650px;
|
|
border: 2px solid #f3e5ab;
|
|
border-radius: 16px;
|
|
padding: 2.5rem 2rem;
|
|
text-align: center;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
|
|
background-color: #032d19;
|
|
}
|
|
|
|
.invitation-card h1 {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
margin-bottom: 1.5rem;
|
|
color: #f3e5ab;
|
|
}
|
|
|
|
.invitation-card p {
|
|
font-size: 1rem;
|
|
line-height: 1.6;
|
|
margin-bottom: 1.2rem;
|
|
color: #f3e5ab;
|
|
}
|
|
|
|
.teacher-badge {
|
|
display: inline-block;
|
|
margin-top: 0.5rem;
|
|
margin-bottom: 1.5rem;
|
|
font-size: 0.9rem;
|
|
opacity: 0.85;
|
|
font-style: italic;
|
|
}
|
|
|
|
.form-box {
|
|
border: 2px solid #f3e5ab;
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
margin-top: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.btn-custom-accept, .btn-custom-refuse {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-weight: 600;
|
|
width: 100%;
|
|
max-width: 320px;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 50px;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
transition: transform 0.2s, opacity 0.2s;
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.btn-custom-accept {
|
|
background-color: #12803c;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.btn-custom-accept:hover {
|
|
background-color: #179e4a;
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.btn-custom-refuse {
|
|
background-color: #115c2d;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.btn-custom-refuse:hover {
|
|
background-color: #18783b;
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.map-container {
|
|
margin-top: 1.5rem;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
border: 2px solid #f3e5ab;
|
|
display: inline-block;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.error-card {
|
|
text-align: center;
|
|
font-family: 'JetBrains Mono', monospace;
|
|
color: #f3e5ab;
|
|
padding: 6rem 1rem;
|
|
}
|
|
</style>
|
|
|
|
@if (Model is not null)
|
|
{
|
|
<div class="invitation-body">
|
|
<div class="invitation-card">
|
|
<h1>Stužkovací večírek 4.EP</h1>
|
|
|
|
<p>
|
|
Srdečně Vás zveme na stužkovací večírek třídy 4.EP.<br>
|
|
Konat se bude 23. 10. v restauraci Pod Hradem od 17 hodin, ale budeme tam už dřív, kvůli přípravám.<br>
|
|
Doufáme, že s námi přijdete oslavit náš vstup do závěrečného roku studia.<br>
|
|
<strong>Těšíme se na Vás!</strong>
|
|
</p>
|
|
|
|
<div>
|
|
<small class="teacher-badge">Pozvánka pro: @Model.TeacherName</small>
|
|
</div>
|
|
|
|
@if (Model.IsAccepted is null)
|
|
{
|
|
<div class="form-box">
|
|
<p style="margin-bottom: 1rem;">Prostřednictvím formuláře nám prosím dejte vědět, zda se zúčastníte.</p>
|
|
<div id="teacher-attendance-form">
|
|
<form asp-area="" asp-controller="Invites" asp-action="Accept" style="margin-bottom: 0.5rem;">
|
|
<input type="text" asp-for="Id" hidden value="@Model.Id" />
|
|
<button type="submit" class="btn-custom-accept">Zúčastním se</button>
|
|
</form>
|
|
|
|
<form asp-area="" asp-controller="Invites" asp-action="Refuse">
|
|
<input type="text" asp-for="Id" hidden value="@Model.Id" />
|
|
<button type="submit" class="btn-custom-refuse">Nezúčastním se ☹️</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
}
|
|
else if (Model.IsAccepted == true)
|
|
{
|
|
<div class="form-box">
|
|
<p style="margin: 0;">Děkujeme za přijetí pozvánky! Budeme se na Vás těšit.</p>
|
|
</div>
|
|
}
|
|
else if (Model.IsAccepted == false)
|
|
{
|
|
<div class="form-box">
|
|
<p style="margin: 0;">Taková škoda... A my se na Vás tak těšili.</p>
|
|
</div>
|
|
}
|
|
|
|
<div>
|
|
Do večírku zbývá: <span id="timer"></span>
|
|
</div>
|
|
<div class="map-container">
|
|
<iframe style="border:none; display: block;" src="https://mapy.com/s/gobejunabe" width="400" height="280"></iframe>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="error-card">
|
|
<h1 class="display-4" style="font-weight: 700;">Stužkovák 4.EP</h1>
|
|
<p style="font-size: 1.2rem;">Copak se stalo s Vaší pozvánkou? 🤔</p>
|
|
</div>
|
|
} |