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
Línea 1: Línea 1:
<html>
<html>
  <style>
    .oroza-navbar {
      --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">
      align-items: center;
    <div class="oroza-navbar-inner">
      justify-content: space-between;
 
      gap: 20px;
        <div class="oroza-navbar-brand-wrap">
      flex-wrap: wrap;
            <a href="https://orozaro.com/wiki/index.php?title=Main_Page" class="oroza-navbar-brand">
      padding: 14px 20px;
                <span class="oroza-navbar-brand-top">OROZA RO</span>
      background: linear-gradient(180deg, #31475d 0%, #2c3e50 100%);
                <span class="oroza-navbar-brand-bottom">WIKI</span>
      border-bottom: 3px solid var(--oroza-accent);
            </a>
      border-radius: 14px;
        </div>
      box-shadow: var(--oroza-shadow);
 
      font-size: 14px;
        <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 oroza-navbar-link-cta">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=donate&amp;action=index" class="oroza-navbar-link">Donaciones</a>
            <a href="https://orozaro.com/?module=vote&amp;action=index" class="oroza-navbar-link">Vota por el Server</a>
        </div>
 
        <div class="oroza-navbar-lang">
            <a href="https://orozaro.com/wiki/index.php?title=Main_Page" class="oroza-lang-pill is-active">
                <span class="oroza-flag">🇪🇸</span>
                <span class="oroza-lang-text">ES</span>
            </a>
            <a 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>
 
    </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: linear-gradient(180deg, #334a65 0%, #27384c 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.05);
    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-brand-wrap {
    flex: 0 0 auto;
    min-width: 120px;
}
 
.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: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #dce6f1;
    opacity: 0.95;
}
 
.oroza-navbar-links {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
}
 
.oroza-navbar-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    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-left,
.oroza-navbar-link:after {
     .oroza-navbar-center,
    content: "";
     .oroza-navbar-right {
    position: absolute;
      display: flex;
    left: 12px;
      align-items: center;
    right: 12px;
    }
    bottom: 7px;
    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-left {
.oroza-navbar-link:hover:after {
      flex: 0 0 auto;
    opacity: 1;
     }
     transform: scaleX(1);
}


    .oroza-navbar-center {
.oroza-navbar-link-cta {
      flex: 1 1 auto;
    color: #1d2a38 !important;
      justify-content: center;
    padding: 0 18px;
      flex-wrap: wrap;
    background: linear-gradient(180deg, #ffe15c 0%, #f3c928 100%);
      gap: 8px;
    box-shadow: 0 8px 18px rgba(214, 169, 29, 0.28), inset 0 1px 0 rgba(255,255,255,0.55);
      min-width: 0;
}
    }


    .oroza-navbar-right {
.oroza-navbar-link-cta:hover {
      flex: 0 0 auto;
    color: #16202c !important;
      gap: 8px;
    background: linear-gradient(180deg, #ffe76f 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-logo img {
.oroza-navbar-link-cta:after {
      width: 68px;
    display: none;
      height: auto;
}
      display: block;
      filter: drop-shadow(0 0 6px rgba(255,255,255,0.55));
      transition: transform 0.25s ease, filter 0.25s ease;
    }


    .oroza-logo:hover img {
.oroza-navbar-lang {
      transform: scale(1.04);
    flex: 0 0 auto;
      filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
    display: flex;
     }
    align-items: center;
     gap: 8px;
}


    .oroza-nav-link {
.oroza-lang-pill {
      display: inline-flex;
    display: inline-flex;
      align-items: center;
    align-items: center;
      gap: 6px;
    justify-content: center;
      padding: 8px 12px;
    gap: 6px;
      color: var(--oroza-text);
    min-width: 72px;
      text-decoration: none;
    height: 38px;
      border-radius: 10px;
    padding: 0 12px;
      transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    border-radius: 999px;
      white-space: nowrap;
    text-decoration: none !important;
    }
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.4px;
    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;
    white-space: nowrap;
}


    .oroza-nav-link:hover {
.oroza-lang-pill:hover {
      background: var(--oroza-hover);
    transform: translateY(-1px);
      transform: translateY(-1px);
    background: rgba(255,255,255,0.08);
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border-color: rgba(214,169,29,0.55);
     }
     color: #ffe078 !important;
}


    .oroza-lang {
.oroza-lang-pill.is-active {
      display: inline-flex;
    color: #1d2a38 !important;
      align-items: center;
    background: linear-gradient(180deg, #ffe15c 0%, #f3c928 100%);
      justify-content: center;
    border-color: rgba(214,169,29,0.95);
      padding: 4px;
    box-shadow: 0 6px 14px rgba(214,169,29,0.22), inset 0 1px 0 rgba(255,255,255,0.5);
      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-flag {
      display: block;
    font-size: 16px;
      width: 24px;
    line-height: 1;
      height: 18px;
}
      border-radius: 4px;
    }


    .oroza-lang:hover {
.oroza-lang-text {
      background: rgba(255, 255, 255, 0.12);
    line-height: 1;
      transform: translateY(-1px);
}
      opacity: 1;
    }


    .oroza-lang.active {
.oroza-navbar a,
      background: rgba(241, 196, 15, 0.18);
.oroza-navbar a:visited,
      box-shadow: inset 0 0 0 1px rgba(241, 196, 15, 0.45);
.oroza-navbar a:hover,
      opacity: 1;
.oroza-navbar a:active,
    }
.oroza-navbar a:focus {
    text-decoration: none !important;
}


    @media (max-width: 980px) {
@media (max-width: 1180px) {
      .oroza-navbar {
    .oroza-navbar-inner {
        flex-wrap: wrap;
         justify-content: center;
         justify-content: center;
         text-align: center;
         padding: 18px 20px;
      }
    }


      .oroza-navbar-left,
    .oroza-navbar-brand-wrap,
      .oroza-navbar-center,
    .oroza-navbar-lang {
      .oroza-navbar-right {
         width: 100%;
         width: 100%;
        display: flex;
         justify-content: center;
         justify-content: center;
      }
    }


      .oroza-navbar-center {
    .oroza-navbar-links {
         order: 2;
         width: 100%;
      }
 
      .oroza-navbar-right {
         order: 3;
         order: 3;
      }
        flex-wrap: wrap;
     }
     }
  </style>
}


  <div class="oroza-navbar">
@media (max-width: 780px) {
    .oroza-navbar-inner {
        gap: 14px;
        border-radius: 20px;
    }


     <!-- Logo -->
     .oroza-navbar-brand-top {
    <div class="oroza-navbar-left">
         font-size: 22px;
      <a class="oroza-logo" href="https://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 -->
     .oroza-navbar-brand-bottom {
    <div class="oroza-navbar-center">
        font-size: 12px;
      <a class="oroza-nav-link" href="https://orozaro.com/?module=main" target="_blank" rel="noopener noreferrer">🏠 Página Web</a>
        letter-spacing: 1.8px;
      <a class="oroza-nav-link" href="https://orozaro.com/?module=account&action=create" target="_blank" rel="noopener noreferrer">📝 Crea tu Cuenta</a>
     }
      <a class="oroza-nav-link" href="https://orozaro.com/?module=main&action=download" target="_blank" rel="noopener noreferrer">⬇️ Descargas</a>
      <a class="oroza-nav-link" href="https://orozaro.com/?module=ranking&action=pvp" target="_blank" rel="noopener noreferrer">🏆 Rankings</a>
      <a class="oroza-nav-link" href="https://orozaro.com/?module=paypal&action=como_donar" target="_blank" rel="noopener noreferrer">💰 Donaciones</a>
      <a class="oroza-nav-link" href="https://orozaro.com/vcp/login.php" target="_blank" rel="noopener noreferrer">🗳️ Vota por el Server</a>
     </div>


     <!-- Languages -->
     .oroza-navbar-links {
    <div class="oroza-navbar-right">
         gap: 10px;
      <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">
    .oroza-navbar-link {
         <img src="https://flagcdn.com/24x18/us.png" alt="EN">
        width: 100%;
      </a>
         max-width: 320px;
     </div>
        min-height: 44px;
  </div>
     }


  <script>
     .oroza-navbar-lang {
     (function () {
        order: 4;
      var currentUrl = new URL(window.location.href);
    }
      var isEnglish = currentUrl.hostname === 'en.orozaro.com';
}
 
</style>
      var esLink = document.getElementById('oroza-lang-es');
      var enLink = document.getElementById('oroza-lang-en');
 
      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();


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

Revisión del 09:48 4 abr 2026