mój bohater

<!DOCTYPE html>
<html lang="pl">
<head>
    <meta charset="UTF-8">
    <title>Mój Bohater</title>

    <style>
        body {
            margin: 0;
            font-family: Arial, Helvetica, sans-serif;
            background: linear-gradient(to right, #1e3c72, #2a5298);
            color: white;
            text-align: center;
        }

        header {
            background-color: rgba(0,0,0,0.6);
            padding: 40px 20px;
        }

        h1 {
            margin: 0;
            font-size: 48px;
        }

        h2 {
            margin-top: 10px;
            font-weight: normal;
            color: #ffd700;
        }

        .container {
            max-width: 900px;
            margin: 40px auto;
            background-color: rgba(0,0,0,0.5);
            padding: 30px;
            border-radius: 15px;
        }

        img {
            width: 250px;
            border-radius: 15px;
            margin-bottom: 20px;
            box-shadow: 0 0 20px rgba(0,0,0,0.6);
        }

        p {
            font-size: 18px;
            line-height: 1.6;
        }

        .cechy {
            margin-top: 30px;
            text-align: left;
        }

        .cechy li {
            margin: 10px 0;
            font-size: 18px;
        }

        footer {
            margin-top: 40px;
            padding: 20px;
            background-color: rgba(0,0,0,0.7);
            font-size: 14px;
        }

        button {
            margin-top: 20px;
            padding: 12px 25px;
            font-size: 16px;
            border: none;
            border-radius: 8px;
            background-color: #ffd700;
            cursor: pointer;
        }

        button:hover {
            background-color: orange;
        }
    </style>
</head>

<body>

<header>
    <h1>Mój Bohater</h1>
    <h2>Osoba, która mnie inspiruje</h2>
</header>

<div class="container">

    <img src="https://via.placeholder.com/250" alt="Zdjęcie bohatera">

    <p>
        Moim bohaterem jest osoba, która swoim życiem pokazuje, że warto być odważnym,
        uczciwym i wytrwałym. Inspiruje mnie każdego dnia i daje przykład,
        że nawet trudności można pokonać.
    </p>

    <div class="cechy">
        <h3>Najważniejsze cechy:</h3>
        <ul>
            <li>✔ Odwaga</li>
            <li>✔ Wytrwałość</li>
            <li>✔ Uczciwość</li>
            <li>✔ Szacunek do innych</li>
            <li>✔ Gotowość do pomocy</li>
        </ul>
    </div>

    <button onclick="pokazCytat()">Pokaż cytat bohatera</button>

    <p id="cytat"></p>

</div>

<footer>
    Strona wykonana w HTML i CSS | Autor: Twoje Imię
</footer>

<script>
    function pokazCytat() {
        document.getElementById("cytat").innerHTML =
        "„Nigdy się nie poddawaj, nawet gdy droga wydaje się trudna.”";
    }
</script>

</body>
</html>