NO JS

by davidxmartins

HTML

<div class="no-js-message">
        <span class="warning-icon">!</span>
        O seu Browser tem o JavaScript desactivado. Active o JavaScript para uma melhor experiĂŞncia no nosso site.
        <button class="close-button" onclick="this.parentElement.style.display='none';">&times;</button>
    </div>

CSS

.no-js-message {
    background-color: #00694a ;
    color: #fff;
    padding: 25px;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 600px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    font-family: Arial, sans-serif;
    font-size: 16px;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

/* Styles for the warning icon */
.no-js-message .warning-icon {
    display: inline-block;
    margin-right: 10px;
    width: 24px;
    height: 24px;
    background-color: #ffcc00;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    color: #000;
    font-size: 18px;
}

/* Styles for the close button */
.no-js-message .close-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
}