Diferencia entre revisiones de «Plantilla:Navbar»

De Oroza RO Wiki
Ir a la navegación Ir a la búsqueda
Sin resumen de edición
Sin resumen de edición
 
(No se muestran 23 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
<html>
<html>
  <div class="oroza-navbar" style="display: flex; align-items: center; justify-content: center; position: relative; padding: 20px;">
<div class="oroza-navbar">
    <div class="oroza-navbar-inner">
 
        <div class="oroza-navbar-brand-wrap">
            <a href="https://orozaro.com/wiki/index.php?title=P%C3%A1gina_principal" class="oroza-navbar-brand">
                <span class="oroza-navbar-brand-top">OROZA RO</span>
                <span class="oroza-navbar-brand-bottom">WIKI</span>
            </a>
        </div>
 
        <div class="oroza-navbar-links">
            <a href="https://orozaro.com" class="oroza-navbar-link">Pagina Web</a>
            <a href="https://orozaro.com/?module=account&amp;action=create" class="oroza-navbar-link">Crea tu Cuenta</a>
            <a href="https://orozaro.com/?module=main&amp;action=download" class="oroza-navbar-link">Descargas</a>
            <a href="https://orozaro.com/?module=paypal&amp;action=como_donar" class="oroza-navbar-link">Donaciones</a>
            <a href="https://orozaro.com/vcp/login.php" class="oroza-navbar-link">Vota por el Server</a>
        </div>
 
        <div class="oroza-navbar-lang">
            <a id="oroza-lang-es" href="https://orozaro.com/wiki/index.php?title=Main_Page" class="oroza-lang-pill">
                <span class="oroza-flag">🇪🇸</span>
                <span class="oroza-lang-text">ES</span>
            </a>
 
            <a id="oroza-lang-en" href="https://en.orozaro.com/wiki/index.php?title=Main_Page" class="oroza-lang-pill">
                <span class="oroza-flag">🇺🇸</span>
                <span class="oroza-lang-text">EN</span>
            </a>
        </div>


    <!-- Logo alineado a la izquierda con espacio y sombra -->
    <div style="position: absolute; left: 0; padding-left: 25px;">
      <img src="/wiki/resources/assets/logo-oroza-icon.png"
          style="width: 80px; height: auto; filter: drop-shadow(0 0 5px white);">
     </div>
     </div>
</div>
<style>
.oroza-navbar {
    margin: 0 0 24px 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
.oroza-navbar-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 38%),
        linear-gradient(180deg, #365072 0%, #2b3f59 52%, #243548 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid #d6a91d;
    box-shadow:
        0 14px 34px rgba(14, 24, 38, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    overflow: hidden;
}
.oroza-navbar-inner:before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.18) 50%,
        rgba(255,255,255,0) 100%
    );
}
.oroza-navbar-inner:after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(214,169,29,0) 0%,
        rgba(214,169,29,0.45) 50%,
        rgba(214,169,29,0) 100%
    );
}
/* Marca */
.oroza-navbar-brand-wrap {
    flex: 0 0 auto;
    min-width: 126px;
    position: relative;
    padding-right: 8px;
}
.oroza-navbar-brand-wrap:after {
    content: "";
    position: absolute;
    top: 50%;
    right: -4px;
    width: 1px;
    height: 34px;
    transform: translateY(-50%);
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.14) 50%,
        rgba(255,255,255,0) 100%
    );
}
.oroza-navbar-brand {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: transform 0.18s ease, background 0.18s ease;
}
.oroza-navbar-brand:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.04);
}
.oroza-navbar-brand-top {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.3px;
    color: #f1c94d;
    text-shadow:
        0 1px 0 rgba(0,0,0,0.35),
        0 0 10px rgba(214,169,29,0.15);
}
.oroza-navbar-brand-bottom {
    margin-top: 1px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #dce6f1;
    opacity: 0.95;
}
/* Links */
.oroza-navbar-links {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    position: relative;
    padding: 0 10px;
}
.oroza-navbar-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    color: #f5f8fc !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1px;
    white-space: nowrap;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.oroza-navbar-link:hover {
    color: #ffe078 !important;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}
.oroza-navbar-link:after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    border-radius: 20px;
    background: linear-gradient(90deg, #f1c94d 0%, #d6a91d 100%);
    opacity: 0;
    transform: scaleX(0.65);
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.oroza-navbar-link:hover:after {
    opacity: 1;
    transform: scaleX(1);
}
/* CTA */
.oroza-navbar-link-cta {
    color: #1d2a38 !important;
    padding: 0 18px;
    background: linear-gradient(180deg, #ffe56e 0%, #f2c722 100%);
    box-shadow:
        0 8px 18px rgba(214, 169, 29, 0.30),
        inset 0 1px 0 rgba(255,255,255,0.58);
}
.oroza-navbar-link-cta:hover,
.oroza-navbar-link-cta:focus,
.oroza-navbar-link-cta:active {
    color: #1d2a38 !important;
    background: linear-gradient(180deg, #ffea83 0%, #f7d13b 100%);
    box-shadow:
        0 10px 20px rgba(214, 169, 29, 0.34),
        inset 0 1px 0 rgba(255,255,255,0.62);
}
.oroza-navbar-link-cta:after {
    display: none;
}


     <!-- Enlaces centrados con espaciado -->
/* Idiomas */
     <div>
.oroza-navbar-lang {
      <a href="https://orozaro.com/?module=main" style="margin: 0 15px;">Página Web</a>
    flex: 0 0 auto;
      <a href="https://orozaro.com/?module=account&action=create" style="margin: 0 15px;">Crea tu Cuenta</a>
    display: flex;
      <a href="https://orozaro.com/?module=main&action=download" style="margin: 0 15px;">Descargas</a>
    align-items: center;
      <a href="https://orozaro.com/?module=ranking&action=pvp" style="margin: 0 15px;">Rankings</a>
    gap: 8px;
      <a href="https://orozaro.com/?module=paypal&action=como_donar" style="margin: 0 15px;">Donaciones</a>
    position: relative;
     </div>
    padding-left: 8px;
}
 
.oroza-navbar-lang:before {
    content: "";
    position: absolute;
    top: 50%;
    left: -6px;
    width: 1px;
    height: 34px;
    transform: translateY(-50%);
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.14) 50%,
        rgba(255,255,255,0) 100%
    );
}
 
.oroza-lang-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 74px;
    height: 38px;
     padding: 0 12px;
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.35px;
    color: #f4f7fb !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.12);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
    white-space: nowrap;
}
 
.oroza-lang-pill:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(214,169,29,0.55);
    color: #ffe078 !important;
}
 
.oroza-lang-pill.is-active,
.oroza-lang-pill.is-active:hover,
.oroza-lang-pill.is-active:focus,
.oroza-lang-pill.is-active:active {
    color: #1d2a38 !important;
     background: linear-gradient(180deg, #ffe15c 0%, #f3c928 100%);
    border-color: rgba(214,169,29,0.95);
    box-shadow:
        0 6px 14px rgba(214,169,29,0.22),
        inset 0 1px 0 rgba(255,255,255,0.5);
}
 
.oroza-flag {
    font-size: 16px;
    line-height: 1;
}
 
.oroza-lang-text {
    line-height: 1;
}
 
/* Reset */
.oroza-navbar a,
.oroza-navbar a:visited,
.oroza-navbar a:hover,
.oroza-navbar a:active,
.oroza-navbar a:focus {
    text-decoration: none !important;
}
 
/* Responsive */
@media (max-width: 1180px) {
    .oroza-navbar-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 18px 20px;
    }
 
    .oroza-navbar-brand-wrap,
    .oroza-navbar-lang {
        width: 100%;
        display: flex;
        justify-content: center;
    }
 
    .oroza-navbar-brand-wrap:after,
    .oroza-navbar-lang:before {
        display: none;
    }
 
    .oroza-navbar-links {
        width: 100%;
        order: 3;
        flex-wrap: wrap;
        padding: 0;
    }
}
 
@media (max-width: 780px) {
    .oroza-navbar-inner {
        gap: 14px;
        border-radius: 20px;
    }
 
    .oroza-navbar-brand-top {
        font-size: 22px;
    }
 
    .oroza-navbar-brand-bottom {
        font-size: 12px;
        letter-spacing: 1.8px;
    }
 
    .oroza-navbar-links {
        gap: 10px;
    }
 
    .oroza-navbar-link {
        width: 100%;
        max-width: 320px;
        min-height: 44px;
        justify-content: center;
    }
 
    .oroza-navbar-lang {
        order: 4;
    }
}
</style>
 
<script>
(function () {
    var esLink = document.getElementById('oroza-lang-es');
    var enLink = document.getElementById('oroza-lang-en');
 
    if (!esLink || !enLink) return;
 
    var currentUrl = new URL(window.location.href);
    var isEnglish = currentUrl.hostname === 'en.orozaro.com';
 
    var esUrl = new URL(currentUrl.href);
    esUrl.hostname = 'orozaro.com';
 
    var enUrl = new URL(currentUrl.href);
    enUrl.hostname = 'en.orozaro.com';
 
    esLink.href = esUrl.toString();
    enLink.href = enUrl.toString();
 
    esLink.classList.remove('is-active');
     enLink.classList.remove('is-active');


  </div>
    if (isEnglish) {
        enLink.classList.add('is-active');
    } else {
        esLink.classList.add('is-active');
    }
})();
</script>
</html>
</html>

Revisión actual - 10:04 4 abr 2026