Vissza a webes elemekhez
Navigáció

Futurisztikus HUD menü

Élő előnézet – a komponens teljes méretben.

Élő előnézet
HTML · CSS · JS
HTML
<nav class="menu-hud">
    <a href="#" class="active">
        <span class="hud-number">01</span>
        <span>Kezdőlap</span>
    </a>

    <a href="#">
        <span class="hud-number">02</span>
        <span>Rólunk</span>
    </a>

    <a href="#">
        <span class="hud-number">03</span>
        <span>Szolgáltatások</span>
    </a>

    <a href="#">
        <span class="hud-number">04</span>
        <span>Portfólió</span>
    </a>

    <a href="#">
        <span class="hud-number">05</span>
        <span>Kapcsolat</span>
    </a>
</nav>
CSS
.menu-hud {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    background: #080b11;
    border: 1px solid rgba(46, 204, 113, 0.18);
    border-radius: 6px;
}

.menu-hud a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    color: #718096;
    text-decoration: none;
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.menu-hud a:hover,
.menu-hud a.active {
    color: #ffffff;
    border-color: rgba(46, 204, 113, 0.35);
    background: rgba(46, 204, 113, 0.05);
}

.menu-hud .hud-number {
    color: #3f4b5a;
    font-size: 10px;
    transition: color 0.3s ease;
}

.menu-hud a:hover .hud-number,
.menu-hud a.active .hud-number {
    color: #2ecc71;
}

.menu-hud a.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 50%;
    width: 2px;
    height: 22px;
    background: #2ecc71;
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.7);
}

@media (max-width: 700px) {
    .menu-hud {
        flex-wrap: wrap;
    }

    .menu-hud a {
        padding: 10px 13px;
    }
}
JavaScript
Ehhez az elemhez nincs külön JavaScript.