uprava celkoveho vzhledu

This commit is contained in:
Eva Brátová committed 2026-09-26 19:23:15 +02:00
1 parent 295886246b
commit 72a1019496
2 files changed
+168 -73

No files matched your search

+167 -36
View File
@@ -4,48 +4,179 @@
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>
<h1>Stužkovací večírek 4.EP</h1>
<p>Srdečně Vás zveme na stužkovací večírek třídy 4.EP
Konat se bude 23.10. v Hotelu Alfa od 18h.
Doufáme, že s námi přijdete oslavit náš vstup do závěrečného roku studia.
Těšíme se na Vás!</p>
<small>Pozvánka pro: @Model.TeacherName</small>
@if (Model.IsAccepted is null)
{
<p>Prostřednictvím formuláře nám prosím dejde vědět, zda se zúčastníte.</p>
<div id="teacher-attendance-form">
<form asp-area="" asp-controller="Invites" asp-action="Accept">
<input type="text" asp-for="Id" hidden value="@Model.Id"></input>
<input type="submit" value="Zúčastním se"></input>
</form>
<form asp-area="" asp-controller="Invites" asp-action="Refuse">
<input type="text" asp-for="Id" hidden value="@Model.Id"></input>
<input type="submit" value="Nezúčastním se :-("></input>
</form>
<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 Hotelu Alfa od 18h.<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>
}
else if (Model.IsAccepted == true)
{
<p>Děkujeme za příjetí pozvánky! Budeme se na Vás těšit.</p>
}
else if (Model.IsAccepted == false)
{
<p>Taková škoda... A my se na Vás tak těšili.</p>
}
@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 class="map-container">
<iframe style="border:none; display: block;" src="https://mapy.com/s/gobejunabe" width="400" height="280"></iframe>
</div>
</div>
</div>
<iframe style="border:none" src="https://mapy.com/s/gobejunabe" width="400" height="280" ></iframe>
}
else
{
<div class="text-center">
<h1 class="display-4">Stužkovák 4.EP</h1>
<p>Copak se stalo s Vaší pozvánkou? &#129300;</p>
<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? &#129300;</p>
</div>
}
}
+1 -37
View File
@@ -10,43 +10,7 @@
<link rel="stylesheet" href="~/StuzkovakWeb.styles.css" asp-append-version="true"/>
</head>
<body>
<header>
<nav class="navbar navbar-expand-sm navbar-toggleable-sm border-bottom box-shadow mb-3">
<div class="container-fluid">
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">Stužkovák 4.EP</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
<ul class="navbar-nav">
@if (User.Identity?.IsAuthenticated == true)
{
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle text-dark" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<strong>@User.Identity.Name</strong>
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
@if (User.IsInRole("Admin"))
{
<li><a class="dropdown-item text-primary fw-bold" asp-area="Admin" asp-controller="Dashboard" asp-action="Index">Admin Panel</a></li>
<li><hr class="dropdown-divider"></li>
}
<li><a class="dropdown-item" asp-area="" asp-controller="Auth" asp-action="Profile">My Profile</a></li>
<li><hr class="dropdown-divider"></li>
<li>
<form asp-area="" asp-controller="Auth" asp-action="Logout" method="post" class="dropdown-item p-0">
<button type="submit" class="btn btn-link dropdown-item">Logout</button>
</form>
</li>
</ul>
</li>
}
</ul>
</div>
</div>
</nav>
</header>
<div class="container">
<main role="main" class="pb-3">
@RenderBody()