Jump to content

Wikimedia Czech Republic/Banners/Senior Month 2024

From Meta, a Wikimedia project coordination wiki

CentralNotice/Request/Senior Month 2024

<style>
  #wlm-de {
    display: flex;
    align-items: center;
    background-color: #3b5998; /* Set background color to match the blue tone */
    padding: 10px 20px;
    color: white;
    font-family: Arial, sans-serif;
    position: relative; /* Needed to position the close button */
  }
  #wlm-de a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
  }
  #wlm-de .wlm-text {
    flex: 1;
    font-size: 1.2em;
    font-weight: bold;
    margin-right: 20px;
    line-height: 1.4;
  }
  #wlm-de .wlm-text em {
    font-style: italic;
  }
  #wlm-de .wlm-button {
    background-color: #d9e1e8; /* Light gray for the button */
    color: #3b5998;
    padding: 8px 16px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 1em;
    text-align: center;
    white-space: nowrap;
  }
  #wlm-de .wlm-logo {
    margin-left: 20px;
    border-radius: 4px;
    height: 100%; /* Set full height to cover banner height */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #wlm-de .wlm-logo img {
    max-width: 100px; /* Set maximum width for the logo image */
    height: auto;
    display: block;
  }
  #wlm-de .wlm-close {
    position: absolute;
    right: 10px;
    top: 10px;
  }
  #wlm-de .wlm-close a {
    display: block;
    width: 20px;
    height: 20px;
  }
  #wlm-de .wlm-close img {
    width: 100%;
    height: auto;
  }
  /* Hide the button on screens smaller than 950px */
  @media screen and (max-width: 950px) {
    #wlm-de .wlm-button {
      display: none;
    }
  }
</style>
<div id="wlm-de">
  <a href="https://cs.wikipedia.org/wiki/Wikipedie:M%C4%9Bs%C3%ADc_senior%C5%AF" target="_blank">
    <div class="wlm-text">
      Přihlaste sebe nebo své blízké na kurzy <em>Senioři píší Wikipedii.</em><br>
      Zjistěte více o Měsíci seniorů. #BuďWikiSenior
    </div>
    <div class="wlm-button">Zjistit více</div>
    <div class="wlm-logo">
      <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/78/Logo_Senio%C5%99i_p%C3%AD%C5%A1%C3%AD_Wikipedii_%28b%C3%ADl%C3%A9%2C_vektor%29.svg/480px-Logo_Senio%C5%99i_p%C3%AD%C5%A1%C3%AD_Wikipedii_%28b%C3%ADl%C3%A9%2C_vektor%29.svg.png" alt="Senioři píší Wikipedii logo" />
    </div>
  </a>
  <div class="wlm-close">
    <a href="#" title="Close banner" onclick="mw.centralNotice.hideBanner();return false;">
      <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/0b/OOjs_UI_icon_close-ltr-invert.svg/20px-OOjs_UI_icon_close-ltr-invert.svg.png" alt="Close banner" />
    </a>
  </div>
</div>