JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>



<html>


<head>
    <meta charset="utf-8">
    <title>Kurumsal</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="//db.onlinewebfonts.com/c/b2932945dbc71a0a2a4c03dd305cfe3a?family=Bauhaus" rel="stylesheet"
        type="text/css" />
    <link href="pagepiling.min.css" rel="stylesheet" type="text/css" />
    <link href="style2.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="script2.js"></script>
    <script src="https://kit.fontawesome.com/bf29396537.js" crossorigin="anonymous"></script>
    

</head>




<body>




    <header>

        <div class="logo">

            <a href="index2.html">
                <h1>MERCAN MAKİNA</h1>
    
                
            </a>    


            <a href="#" class="toggle-button">
                <span class="bar"></span>
                <span class="bar"></span>
                <span class="bar"></span>
              </a>
        </div>
        


        



        <nav>
            <ul class="navbar-links">
                <li><a href="index2.html"> Ana Sayfa</a></li>
                <li><a href="kurumsal.html  "> Kurumsal</a></li>
                <a class="cta" href="iletisim.html"><button>İLETİŞİM</button></a>

            </ul>

        </nav>
    </header>

    




       

   
</body>

</html>

CSS

@import url("https://db.onlinewebfonts.com/c/b2932945dbc71a0a2a4c03dd305cfe3a?family=Bauhaus");
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }


header {   
    background-color:white;
    justify-content: space-between;
    display: flex;
    align-items: center;
    padding: 25px 15%;
    height: 100px;

   
}




li,a,button {
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: black;
    text-decoration: none;
}

header h1 {
    font-family: "Bauhaus";
    color:rgba(0, 136, 169, 1);
    font-size: 45px;
    
}

button {
    padding: 9px 25px;
    background-color: rgba(0, 136, 169, 1);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;

}

button:hover {

    background-color: rgba(0, 136, 169, 0.8);
}


html{

    overflow-y: scroll;
}







.navbar-links {
    list-style: none;
  }

.navbar-links li {
    display: inline-block;
    padding: 0px 20px;

}
.navbar-links li a {
    transition: all 0.3s ease 0s;
  }


.navbar-links li a:hover {
    color: rgba(0, 136, 169, 1);
}




.logo {
    width: 500px;
    display: flex;
    flex-direction: initial;
    align-items: center;
    justify-content: space-around;
}

.toggle-button {
    
    top: .75rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: black;
    border-radius: 10px;
}

  @media screen and (max-width:1210px) {
    header  {
        
        flex-direction: column;
    }
    .navbar-links {
        
        display: flex;
        flex-direction: column;
        
    }
    .toggle-button {
        display: flex;
    }
    .navbar-links.active {
        display: none;
    }
  }

JavaScript

const toggleButton = document.getElementsByClassName('toggle-button')[0]
const navbarLinks = document.getElementsByClassName('navbar-links')[0]

toggleButton.addEventListener('click', () => {
  navbarLinks.classList.toggle('active')
})