<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Elektryk</title>
</head>
<style>
body {
font-family: Arial, sans-serif;
padding: 20px;
background-color: #ecf0f1;
}
header {
background-color: #333;
color: white;
padding: 1em 0;
}
nav a{
list-style: none;
padding: 0;
margin: 0;
display: flex;
justify-content: flex-end;
padding-right: 20px;
}
nav a{
margin-left: 20px;
}
nav a{
color: white;
text-decoration: none;
padding: 5px 10px;
cursor: pointer;
}
main {
padding: 20px;
}
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1000;
display: none;
justify-content: center;
align-items: center;
}
.modal-content {
background-color: #fff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
width: 300px;
}
.modal-content h2 {
margin-top: 0;
margin-bottom: 20px;
text-align: center;
}
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
.form-group input[type="text"],
.form-group input[type="password"] {
width: 90%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
.form-group button {
width: 100%;
padding: 10px;
background-color: #e46998;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
.form-group button:hover {
background-color: #e4b560;
}
</style>
<body>
<header>
<nav role="navigation" aria-label="Główna nawigacja strony">
<h1>Elektryk "Elektryka"</h1>
<li><a href="#/" aria-current="page">Strona główna</a></li>
<li> <a href="#/ofirmie" title="poznaj nasza firme" > o firmie</a></li>
<li> <a href="#/cennik" title="zapoznaj sie z cennikiem"> Cennik</a></li>
<li><a href="#/pomoc" title="najczęstsze pytania">Pomoc</a></li>
<li><a href="#/kontakt" title="skontaktuj sie z nami">Kontakt</a></li>
<li><a id="logowanie" title="zaloguj się">Logowanie</a></li>
</ul>
</nav>
</header>
<main>
<h4>Witaj na stonie elektryka</h4>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry'</p>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry'</p>
<p>Bedzie widoczny tekst</p>
</main>
<section id="/ofirmie"><h2>o firmie</h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
</p>
<img src="https://picsum.photos/200/300"
alt="Lorem Ipsum"
title="Lorem Ipsum is simply dummy text">
<section id="/cennik"><h3>cennik</h3>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
</p>
<div id="loginModal" class="modal">
<div class="modal-content">
<h3>LOGOWANIE NA STRONE</h3>
<form id="loginform">
<div class="form-group">
<label for="loginnazwa">Login:</label>
<input type="text" id="loginnazwa" name="username" required>
</div>
<div class="form-group">
<label for="loginhaslo">Hasło:</label>
<input type="password" id="loginhaslo" name="password" required>
</div>
<div class="form-group">
<button type="submit" id="submitlogin"> zaloguj</button>
</div>
</form>
</div>
</div>
<b><caption>CENNIK</caption></b>
<table>
<tr>
<th>Usługa</th>
<th>Cena</th>
<th>Czas oczekiwania</th>
</tr>
<tr>
<td>sprawdzenie instalacji</td>
<td>200 zł</td>
<td>3 dni</td>
</tr>
<tr>
<td>awaria instalacji</td>
<td>300 zł</td>
<td>w ciągu 2h</td>
</tr>
</table>
<p></p>
<section id="/pomoc"><h4> pomoc </h4>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</dt>
</p>
<ol type="a">
<li>lal</li>
<li>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</li>
<li>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</li>
<li>Lorem Ipsum is simply dummy text of the printing and typesetting industry.</li>
</ol>
<section id="/kontakt"><h5>kontakt</h5>
<p><section>
<address>
<strong>adres</strong><br>
ul. abs<br>
00-001 Warszawa<br>
Telefon: <a href="tel:+48123456789">+48 123 456 789</a><br>
Email: <a href="mailto:[email protected]">[email protected]</a>
</address>
</section>
</p>
<p></p>
<form action="/preferences" method="POST">
<fieldset>
<legend>Skontaktuj się z nami</legend>
<form action="/validate" method="POST">
<label for="full-name">Imię i nazwisko:</label>
<input type="text" id="full-name" name="fullname"
required placeholder="Jan Kowalski"> <br>
<label for="contact-email">Email:</label>
<input type="email" id="contact-email" name="email"
required placeholder="[email protected]"><br>
<label for="user-password">Hasło:</label>
<input type="password" id="user-password" name="password"
required minlength="8"
placeholder="Minimum 8 znaków">
<label for="postal-code">Kod pocztowy:</label>
<input type="text" id="postal-code" name="postal"
pattern="[0-9]{2}-[0-9]{3}"
placeholder="00-000" required><br>
<label for="phone-number">Numer telefonu:(+48)</label>
<input type="text" id="phone-number" name="phone"
pattern="[0-9]{9}"
placeholder="123456789" required><br>
<label for="bio">Zadaj pytanie (10-500 znaków):</label>
<textarea id="bio" name="bio" rows="2"
minlength="10" maxlength="500"
placeholder="zadaj pytanie..."
required></textarea>
<label>
<input type="checkbox" name="DATA" value="yes" required>
Zgadzam się na prztważanie danych osobowych
</label>
<button type="submit">Wyślij</button>
</form>
<a href="#top">Do góry</a><br>
<p><small>© 2025 Elektryk
Strona zgodna z <abbr title="Web Content Accessibility Guidelines">WCAG</abbr> 2.1 AA.</small></p>
</footer>
<script>
const modal = document.getElementById('loginModal');
const openlog = document.getElementById('logowanie');
openlog.addEventListener('click', () => {
modal.style.display = 'flex';
});
modal.addEventListener('click', (event) => {
if (event.target === modal) {
modal.style.display = 'none';
}
});
document.getElementById('loginForm').addEventListener('submit', (event) => {
event.preventDefault();
alert('Próba logowania użytkownika: ' + document.getElementById('loginnazwa').value);
});
</script>
</body>
</html>