detailing
added smooth transition, removed messages on login page, minor detail fixes
This commit is contained in:
@@ -4,6 +4,10 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
scroll-behavior: smooth;
|
||||||
|
}
|
||||||
|
|
||||||
/* Body styling */
|
/* Body styling */
|
||||||
body {
|
body {
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
|
|||||||
@@ -27,7 +27,6 @@
|
|||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h2>Editovat Uživatele</h2>
|
|
||||||
<form action="{{ url_for('edit_user', user_id=user['ID_Uzivatele']) }}" method="post" class="form-container">
|
<form action="{{ url_for('edit_user', user_id=user['ID_Uzivatele']) }}" method="post" class="form-container">
|
||||||
<label for="jmeno">Jméno:</label>
|
<label for="jmeno">Jméno:</label>
|
||||||
<input type="text" id="jmeno" name="jmeno" value="{{ user['Jmeno'] }}" required>
|
<input type="text" id="jmeno" name="jmeno" value="{{ user['Jmeno'] }}" required>
|
||||||
|
|||||||
@@ -39,10 +39,10 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<nav class="navbar">
|
<nav class="navbar">
|
||||||
<button class="button" onclick="location.href='#about-header'">O nás</button>
|
<button class="button" onclick="smoothScroll('#about-header')">O nás</button>
|
||||||
<button class="button" onclick="location.href='#directions'">K nám</button>
|
<button class="button" onclick="smoothScroll('#directions')">K nám</button>
|
||||||
<button class="button" onclick="location.href='#nabidka-sluzeb'">Služby</button>
|
<button class="button" onclick="smoothScroll('#nabidka-sluzeb')">Služby</button>
|
||||||
<button class="button" onclick="location.href='#recenze'">Recenze</button>
|
<button class="button" onclick="smoothScroll('#recenze')">Recenze</button>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@@ -142,5 +142,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function smoothScroll(target) {
|
||||||
|
document.querySelector(target).scrollIntoView({ behavior: 'smooth' });
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -9,13 +9,6 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="form-container">
|
<div class="form-container">
|
||||||
<h2> Přihlášení </h2>
|
<h2> Přihlášení </h2>
|
||||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
||||||
{% if messages %}
|
|
||||||
<ul class="flashes">
|
|
||||||
<li class="{{ messages[-1][0] }}">{{ messages[-1][1] }}</li> <!-- Show only the last message -->
|
|
||||||
</ul>
|
|
||||||
{% endif %}
|
|
||||||
{% endwith %}
|
|
||||||
<form method="POST" action="{{ url_for('login') }}">
|
<form method="POST" action="{{ url_for('login') }}">
|
||||||
<label for="username">Uživatelské jméno: <span class="required">*</span></label>
|
<label for="username">Uživatelské jméno: <span class="required">*</span></label>
|
||||||
<input type="text" id="username" name="username" required>
|
<input type="text" id="username" name="username" required>
|
||||||
|
|||||||
Reference in New Issue
Block a user