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 muestra una edición intermedia del mismo usuario)
Línea 1: Línea 1:
<html>
<html>
  <style>
<div class="oroza-navbar">
     .oroza-navbar {
     <div class="oroza-navbar-inner">
      --oroza-bg: #2c3e50;
      --oroza-accent: #f1c40f;
      --oroza-text: #ffffff;
      --oroza-hover: rgba(255, 255, 255, 0.12);
      --oroza-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);


      display: flex;
        <div class="oroza-navbar-brand-wrap">
      align-items: center;
            <a href="https://en.orozaro.com/wiki/index.php?title=P%C3%A1gina_principal" class="oroza-navbar-brand">
      justify-content: space-between;
                <span class="oroza-navbar-brand-top">OROZA RO</span>
      gap: 20px;
                <span class="oroza-navbar-brand-bottom">WIKI</span>
      flex-wrap: wrap;
            </a>
      padding: 14px 20px;
        </div>
      background: linear-gradient(180deg, #31475d 0%, #2c3e50 100%);
 
      border-bottom: 3px solid var(--oroza-accent);
        <div class="oroza-navbar-links">
      border-radius: 14px;
            <a href="https://en.orozaro.com" class="oroza-navbar-link">Website</a>
      box-shadow: var(--oroza-shadow);
            <a href="https://en.orozaro.com/?module=account&amp;action=create" class="oroza-navbar-link">Create Account</a>
      font-size: 14px;
            <a href="https://en.orozaro.com/?module=main&amp;action=download" class="oroza-navbar-link">Downloads</a>
     }
            <a href="https://en.orozaro.com/?module=paypal&amp;action=como_donar" class="oroza-navbar-link">Donations</a>
            <a href="https://en.orozaro.com/vcp/login.php" class="oroza-navbar-link">Vote for the Server</a>
        </div>
 
        <div class="oroza-navbar-lang">
            <a id="oroza-lang-es" href="https://en.orozaro.com/wiki/index.php?title=P%C3%A1gina_principal" 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=P%C3%A1gina_principal" class="oroza-lang-pill">
                <span class="oroza-flag">🇺🇸</span>
                <span class="oroza-lang-text">EN</span>
            </a>
        </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%
    );
}
 
/* Brand */
.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);
}
 
/* Languages */
.oroza-navbar-lang {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    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-navbar-left,
.oroza-lang-pill.is-active,
    .oroza-navbar-center,
.oroza-lang-pill.is-active:hover,
    .oroza-navbar-right {
.oroza-lang-pill.is-active:focus,
      display: flex;
.oroza-lang-pill.is-active:active {
      align-items: center;
    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-navbar-left {
.oroza-flag {
      flex: 0 0 auto;
    font-size: 16px;
     }
     line-height: 1;
}


    .oroza-navbar-center {
.oroza-lang-text {
      flex: 1 1 auto;
    line-height: 1;
      justify-content: center;
}
      flex-wrap: wrap;
      gap: 8px;
      min-width: 0;
    }


    .oroza-navbar-right {
/* Reset */
      flex: 0 0 auto;
.oroza-navbar a,
      gap: 8px;
.oroza-navbar a:visited,
    }
.oroza-navbar a:hover,
.oroza-navbar a:active,
.oroza-navbar a:focus {
    text-decoration: none !important;
}


     .oroza-logo img {
/* Responsive */
      width: 68px;
@media (max-width: 1180px) {
      height: auto;
     .oroza-navbar-inner {
      display: block;
        flex-wrap: wrap;
      filter: drop-shadow(0 0 6px rgba(255,255,255,0.55));
        justify-content: center;
      transition: transform 0.25s ease, filter 0.25s ease;
        padding: 18px 20px;
     }
     }


     .oroza-logo:hover img {
     .oroza-navbar-brand-wrap,
      transform: scale(1.04);
    .oroza-navbar-lang {
      filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
        width: 100%;
        display: flex;
        justify-content: center;
     }
     }


     .oroza-nav-link {
     .oroza-navbar-brand-wrap:after,
      display: inline-flex;
    .oroza-navbar-lang:before {
      align-items: center;
        display: none;
      gap: 6px;
      padding: 8px 12px;
      color: var(--oroza-text);
      text-decoration: none;
      border-radius: 10px;
      transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
      white-space: nowrap;
     }
     }


     .oroza-nav-link:hover {
     .oroza-navbar-links {
      background: var(--oroza-hover);
        width: 100%;
      transform: translateY(-1px);
        order: 3;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
        flex-wrap: wrap;
        padding: 0;
     }
     }
}


     .oroza-lang {
@media (max-width: 780px) {
      display: inline-flex;
     .oroza-navbar-inner {
      align-items: center;
        gap: 14px;
      justify-content: center;
        border-radius: 20px;
      padding: 4px;
      border-radius: 8px;
      transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
      opacity: 0.82;
     }
     }


     .oroza-lang img {
     .oroza-navbar-brand-top {
      display: block;
        font-size: 22px;
      width: 24px;
      height: 18px;
      border-radius: 4px;
     }
     }


     .oroza-lang:hover {
     .oroza-navbar-brand-bottom {
      background: rgba(255, 255, 255, 0.12);
        font-size: 12px;
      transform: translateY(-1px);
        letter-spacing: 1.8px;
      opacity: 1;
     }
     }


     .oroza-lang.active {
     .oroza-navbar-links {
      background: rgba(241, 196, 15, 0.18);
        gap: 10px;
      box-shadow: inset 0 0 0 1px rgba(241, 196, 15, 0.45);
      opacity: 1;
     }
     }


     @media (max-width: 980px) {
     .oroza-navbar-link {
      .oroza-navbar {
        justify-content: center;
        text-align: center;
      }
 
      .oroza-navbar-left,
      .oroza-navbar-center,
      .oroza-navbar-right {
         width: 100%;
         width: 100%;
        max-width: 320px;
        min-height: 44px;
         justify-content: center;
         justify-content: center;
      }
    }
 
      .oroza-navbar-center {
        order: 2;
      }


      .oroza-navbar-right {
    .oroza-navbar-lang {
         order: 3;
         order: 4;
      }
     }
     }
  </style>
}
</style>


  <div class="oroza-navbar">
<script>
(function () {
    var esLink = document.getElementById('oroza-lang-es');
    var enLink = document.getElementById('oroza-lang-en');


     <!-- Logo -->
     if (!esLink || !enLink) return;
    <div class="oroza-navbar-left">
      <a class="oroza-logo" href="https://en.orozaro.com/wiki/index.php/P%C3%A1gina_principal" target="_blank" rel="noopener noreferrer">
        <img src="/wiki/resources/assets/logo-oroza-icon.png" alt="Oroza RO">
      </a>
    </div>


     <!-- Navigation -->
     var currentUrl = new URL(window.location.href);
    <div class="oroza-navbar-center">
    var isEnglish = currentUrl.hostname === 'en.orozaro.com';
      <a class="oroza-nav-link" href="https://en.orozaro.com/?module=main" target="_blank" rel="noopener noreferrer">🏠 Website</a>
      <a class="oroza-nav-link" href="https://en.orozaro.com/?module=account&action=create" target="_blank" rel="noopener noreferrer">📝 Create Your Account</a>
      <a class="oroza-nav-link" href="https://en.orozaro.com/?module=main&action=download" target="_blank" rel="noopener noreferrer">⬇️ Downloads</a>
      <a class="oroza-nav-link" href="https://en.orozaro.com/?module=ranking&action=pvp" target="_blank" rel="noopener noreferrer">🏆 Rankings</a>
      <a class="oroza-nav-link" href="https://en.orozaro.com/?module=paypal&action=como_donar" target="_blank" rel="noopener noreferrer">💰 Donations</a>
      <a class="oroza-nav-link" href="https://en.orozaro.com/vcp/login.php" target="_blank" rel="noopener noreferrer">🗳️ Vote for the Server</a>
    </div>


     <!-- Languages -->
     var esUrl = new URL(currentUrl.href);
     <div class="oroza-navbar-right">
     esUrl.hostname = 'orozaro.com';
      <a class="oroza-lang" id="oroza-lang-es" href="https://orozaro.com/wiki/index.php/P%C3%A1gina_principal" title="Español">
        <img src="https://flagcdn.com/24x18/es.png" alt="ES">
      </a>


      <a class="oroza-lang" id="oroza-lang-en" href="https://en.orozaro.com/wiki/index.php/P%C3%A1gina_principal" title="English">
    var enUrl = new URL(currentUrl.href);
        <img src="https://flagcdn.com/24x18/us.png" alt="EN">
    enUrl.hostname = 'en.orozaro.com';
      </a>
    </div>
  </div>


  <script>
     esLink.href = esUrl.toString();
     (function () {
    enLink.href = enUrl.toString();
      var currentUrl = new URL(window.location.href);
      var isEnglish = currentUrl.hostname === 'en.orozaro.com';


      var esLink = document.getElementById('oroza-lang-es');
    esLink.classList.remove('is-active');
      var enLink = document.getElementById('oroza-lang-en');
    enLink.classList.remove('is-active');


      var esUrl = new URL(currentUrl.href);
    if (isEnglish) {
      esUrl.hostname = 'orozaro.com';
         enLink.classList.add('is-active');
 
    } else {
      var enUrl = new URL(currentUrl.href);
         esLink.classList.add('is-active');
      enUrl.hostname = 'en.orozaro.com';
    }
 
})();
      esLink.href = esUrl.toString();
</script>
      enLink.href = enUrl.toString();
 
      if (isEnglish) {
         enLink.classList.add('active');
      } else {
         esLink.classList.add('active');
      }
    })();
  </script>
</html>
</html>

Revisión actual - 10:10 4 abr 2026