JSFiddle - React, Tailwind, and code Playground

by Brandon

HTML

<div id="HeaderContainer">
    <div class="HeaderTitle">CDRL Management</div>
    <div class="CloseAll">X</div>
    <div class="HeaderTitleSmall">CDRL Management</div>
    <div class="GUI"></div>
    <div class="Background-Canvas"></div>
    <div class="Background-Image"></div>
    <!-- <DIV class="Background-Overlay"></DIV> -->
    <div class="Floating-Image"></div>
    <div class="Floating-Image2"></div>
    <div class="Floating-Image3"></div>
    <div class="diag-noselect"></div>
    <div class="TL toggle" id="ClickTL"></div>
    <div class="TL-popup hidden ShowTL">
        <a href="#">
            <div class="PopupTitle">EUHW CDRLs</div>
        </a>
        <div class="PopupText">
            <div class="PopupGoal">Manage contractually required data deliveries for End User Hardware; ensure quality and timely deliverables between contractor and Government, as well as ensure proper collaborative adjudication.</div>
            <div class="sp-button">
                <a href="#" class="NoLinkBoxes">
                    <div class="five-button">
                        <img src="https://navy.deps.mil/peoeis/sites/nen/ButRes/submissions-327aff-blue.png" />
                        <p>Submissions</p>
                    </div>
                </a>
                <a href="#" class="NoLinkBoxes">
                    <div class="five-button">
                        <img src="https://navy.deps.mil/peoeis/sites/nen/ButRes/tracker-327aff-blue.png" />
                        <p>CDRL Tracker</p>
                    </div>
                </a>
                <a href="#" class="NoLinkBoxes">
                    <div class="five-button">
                        <img src="https://navy.deps.mil/peoeis/sites/nen/ButRes/repeat-327aff-blue.png" />
                        <p>Government Requested Changes</p>
                    </div>
                </a>
                <a href="#" class="NoLinkBoxes">
                    <div class="five-button">
                        <img...

CSS

#preload,
.hidden {
    display: none;
}

#HeaderContainer {
    width: 100%;
    height: 308px;
    /*248px;*/
    overflow: hidden;
    border-radius: 4px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
    position: relative;
    min-width: 700px;
}

.CloseAll {
    display: none;
    position: absolute;
    right: 14px;
    width: 40px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    color: white;
    z-index: 11;
    margin-top: 13px;
    font-family: sans-serif;
    font-weight: 900;
    text-shadow: 0px 0px 11px rgba(1, 1, 1, 0.4);
    border-radius: 2px;
    cursor: pointer;
    transition: .1s;
}

.CloseAll:hover {
    border: 1px solid white !important;
    text-shadow: 0px 0px 11px white;
}

#HeaderContainer>.HeaderTitle {
    font-family: helvetica;
    position: absolute;
    z-index: 9;
    margin-top: 8px;
    padding-left: 56px;
    padding-top: 2px;
    width: calc(100% - 64px);
    height: 32px;
    color: white;
    vertical-align: middle;
    line-height: normal;
    font-size: 24px;
    background: #3E628F;
}

.HeaderTitle:before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    background: url('https://navy.deps.mil/peoeis/sites/nen/res/NEN-logo-v2-40x40.png');
    position: absolute;
    margin-left: -48px;
    margin-top: -6px;
}

@media screen and (min-width: 721px) {
    #HeaderContainer>.HeaderTitleSmall {
        display: none;
    }
}

@media screen and (max-width: 720px) {
    #HeaderContainer>.HeaderTitleSmall {
        font-family: helvetica;
        position: absolute;
        z-index: 9;
        margin-top: 8px;
        padding-left: 16px;
        padding-top: 2px;
        width: calc(100% - 24px);
        height: 32px;
        color: white;
        vertical-align: middle;
        line-height: normal;
        font-size: 24px;
        background: #3E628F;
    }
    #HeaderContainer>.HeaderTitle {
        display: none;
    }
}

#HeaderContainer>.HeaderSub...

JavaScript

$(document).ready(function() {

        function showPopupGoal(e) {
            $('.active').not(e).toggleClass('active').next('.hidden').fadeToggle(100);
            if ($(e).hasClass('active')) {
                $(".CloseAll").trigger('click');
                //$(e).toggleClass('active').next().fadeToggle(500);
            } else {
                $(e).toggleClass('active').next().fadeToggle(500);
            }
        }

        $(".toggle").click(function(e) {
            $('.CloseAll').not(':visible').show();
            showPopupGoal(this);
        });

        $(".CloseAll").click(function() {
            $(this).hide();
            $('.active').toggleClass('active').next().fadeToggle(500);
        });
    });