<section class="section platforms" id="platforms">
    <div class="container">
        <div class="platforms__wrapper">
            <div class="platforms__header">
                <h2 class="platforms__title text-68">Platforms</h2>
                <h3 class="platforms__subtitle text-26">On which we publish your business material</h3>
            </div>
            <div class="platforms__block">
                <div class="platform__changer">
                    <ul class="changer__elements">
                        <li class="changer__platform" id="google">
                            <h5 class="platform__name text-16">Google drive</h5>
                        </li>
                        <li class="changer__platform" id="sharepoint">
                            <h5 class="platform__name text-16">SharePoint</h5>
                        </li>
                        <li class="changer__platform platform_choosed" id="notion">
                            <h5 class="platform__name text-16">notion.so</h5>
                        </li>
                        <li class="changer__platform" id="academyocean">
                            <h5 class="platform__name text-16">AcademyOcean</h5>
                        </li>
                        <li class="changer__platform platform_new" id="equeo">
                            <h5 class="platform__name text-16">e-queo</h5>
                        </li>
                        <li class="changer__platform" id="getcourse">
                            <h5 class="platform__name text-16">getcourse</h5>
                        </li>
                        <li class="changer__platform" id="teachbase">
                            <h5 class="platform__name text-16">teachbase</h5>
                        </li>
                    </ul>
                    <div class="changer__line"></div>
                </div>
                <div class="platform__description platform_google" id="google_desc">
                    <p class="description__text text-16">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mi amet id viverra tortor. Id eu id nisi, ridiculus feugiat a. Eu mi, nunc, mauris leo arcu libero nec neque. Vitae natoque a lectus in ornare lacus iaculis elit. Lectus venenatis proin lacus eget auctor turpis enim enim a. Augue aenean rhoncus dictum turpis in commodo risus sapien. Diam quam tellus eu senectus tellus diam, diam aliquet convallis. Enim ullamcorper nibh ac ullamcorper in sed quam.</p>
                    <a href="" class="link description__link text-16">Learn more about Google Drive --></a>
                </div>
                <div class="platform__description platform_sharepoint" id="sharepoint_desc">
                    <p class="description__text text-16">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mi amet id viverra tortor. Id eu id nisi, ridiculus feugiat a. Eu mi, nunc, mauris leo arcu libero nec neque. Vitae natoque a lectus in ornare lacus iaculis elit. Lectus venenatis proin lacus eget auctor turpis enim enim a. Augue aenean rhoncus dictum turpis in commodo risus sapien. Diam quam tellus eu senectus tellus diam, diam aliquet convallis. Enim ullamcorper nibh ac ullamcorper in sed quam.</p>
                    <a href="" class="link description__link text-16">Learn more about sharepoint --></a>
                </div>
                <div class="platform__description platform_notion platform__description_active" id="notion_desc">
                    <p class="description__text text-16">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mi amet id viverra tortor. Id eu id nisi, ridiculus feugiat a. Eu mi, nunc, mauris leo arcu libero nec neque. Vitae natoque a lectus in ornare lacus iaculis elit. Lectus venenatis proin lacus eget auctor turpis enim enim a. Augue aenean rhoncus dictum turpis in commodo risus sapien. Diam quam tellus eu senectus tellus diam, diam aliquet convallis. Enim ullamcorper nibh ac ullamcorper in sed quam.</p>
                    <a href="" class="link description__link text-16">Learn more about notion.so --></a>
                </div>
                <div class="platform__description platform_academyocean" id="academyocean_desc">
                    <p class="description__text text-16">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mi amet id viverra tortor. Id eu id nisi, ridiculus feugiat a. Eu mi, nunc, mauris leo arcu libero nec neque. Vitae natoque a lectus in ornare lacus iaculis elit. Lectus venenatis proin lacus eget auctor turpis enim enim a. Augue aenean rhoncus dictum turpis in commodo risus sapien. Diam quam tellus eu senectus tellus diam, diam aliquet convallis. Enim ullamcorper nibh ac ullamcorper in sed quam.</p>
                    <a href="" class="link description__link text-16">Learn more about academyocean --></a>
                </div>
                <div class="platform__description platform_e-queo" id="equeo_desc">
                    <p class="description__text text-16">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mi amet id viverra tortor. Id eu id nisi, ridiculus feugiat a. Eu mi, nunc, mauris leo arcu libero nec neque. Vitae natoque a lectus in ornare lacus iaculis elit. Lectus venenatis proin lacus eget auctor turpis enim enim a. Augue aenean rhoncus dictum turpis in commodo risus sapien. Diam quam tellus eu senectus tellus diam, diam aliquet convallis. Enim ullamcorper nibh ac ullamcorper in sed quam.</p>
                    <a href="" class="link description__link text-16">Learn more about e-queo --></a>
                </div>
                <div class="platform__description platform_getcourse" id="getcourse_desc">
                    <p class="description__text text-16">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mi amet id viverra tortor. Id eu id nisi, ridiculus feugiat a. Eu mi, nunc, mauris leo arcu libero nec neque. Vitae natoque a lectus in ornare lacus iaculis elit. Lectus venenatis proin lacus eget auctor turpis enim enim a. Augue aenean rhoncus dictum turpis in commodo risus sapien. Diam quam tellus eu senectus tellus diam, diam aliquet convallis. Enim ullamcorper nibh ac ullamcorper in sed quam.</p>
                    <a href="" class="link description__link text-16">Learn more about Getcourse --></a>
                </div>
                <div class="platform__description platform_teachbase" id="teachbase_desc">
                    <p class="description__text text-16">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mi amet id viverra tortor. Id eu id nisi, ridiculus feugiat a. Eu mi, nunc, mauris leo arcu libero nec neque. Vitae natoque a lectus in ornare lacus iaculis elit. Lectus venenatis proin lacus eget auctor turpis enim enim a. Augue aenean rhoncus dictum turpis in commodo risus sapien. Diam quam tellus eu senectus tellus diam, diam aliquet convallis. Enim ullamcorper nibh ac ullamcorper in sed quam.</p>
                    <a href="" class="link description__link text-16">Learn more about TeachBase --></a>
                </div>
            </div>
        </div>
    </div>
</section>
.platforms {
    padding: 160px 0;
}

.platforms__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 0;
    background: $grey-5;
}

.platforms__header {
    max-width: 360px;
}

.platforms__block {
    max-width: 760px;
    margin-top: 40px;
}

.platform__changer {
    width: 760px;
}
.changer__elements {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

.changer__platform {
    position: relative;
    cursor: pointer;
}

.changer__line {
    margin-top: 20px;
    width: 100%;
    height: 2px;
    background: $grey-20;
}

.platform__description {
    margin: auto;
    margin-top: 40px;
    max-width: 560px;
    display: none;
}

.platform__description_active {
    display: block;
}

.description__link {
    display: block;
    margin-top: 10px;
}
const google = document.getElementById("google")
const sharepoint = document.getElementById("sharepoint")
const notion = document.getElementById("notion")
const academyocean = document.getElementById("academyocean")
const equeo = document.getElementById("equeo")
const getcourse = document.getElementById("google")
const teachbase = document.getElementById("teachbase")

const google_desc = document.getElementById("google_desc")
const sharepoint_desc = document.getElementById("sharepoint_desc")
const notion_desc = document.getElementById("notion_desc")
const academyocean_desc = document.getElementById("academyocean_desc")
const equeo_desc = document.getElementById("equeo_desc")
const getcourse_desc = document.getElementById("google_desc")
const teachbase_desc = document.getElementById("teachbase_desc")

const platformButtons = document.querySelectorAll(".changer__platform");

platformButtons[0].addEventListener("click", () => {
    document.querySelector(".platform__description_active").classList.remove("platform__description_active");
    google_desc.classList.add("platform__description_active");
});

platformButtons[1].addEventListener("click", () => {
    document.querySelector(".platform__description_active").classList.remove("platform__description_active");
    sharepoint_desc.classList.add("platform__description_active")
});

platformButtons[2].addEventListener("click", () => {
    document.querySelector(".platform__description_active").classList.remove("platform__description_active");
    notion_desc.classList.add("platform__description_active")
});

platformButtons[3].addEventListener("click", () => {
    document.querySelector(".platform__description_active").classList.remove("platform__description_active");
    academyocean_desc.classList.add("platform__description_active")
});

platformButtons[4].addEventListener("click", () => {
    document.querySelector(".platform__description_active").classList.remove("platform__description_active");
    equeo_desc.classList.add("platform__description_active")
});

platformButtons[5].addEventListener("click", () => {
    document.querySelector(".platform__description_active").classList.remove("platform__description_active");
    getcourse_desc.classList.add("platform__description_active")
});

platformButtons[6].addEventListener("click", () => {
    document.querySelector(".platform__description_active").classList.remove("platform__description_active");
    teachbase_desc.classList.add("platform__description_active")
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.