xxxxxxxxxx
// html to react converter
https://magic.reactjs.net/htmltojsx.htm
xxxxxxxxxx
let searchBtn = document.querySelector('#search-btn');
let searchBar = document.querySelector('.search-bar-container');
let formBtn = document.querySelector('#login-btn');
let loginForm = document.querySelector('.login-form-container');
let formClose = document.querySelector('#form-close');
let menu = document.querySelector('#menu-bar');
let navbar = document.querySelector('.navbar');
let videoBtn = document.querySelectorAll('.vid-btn');
window.onscroll = () =>{'{'}
searchBtn.classList.remove('fa-times');
searchBar.classList.remove('active');
menu.classList.remove('fa-times');
navbar.classList.remove('active');
loginForm.classList.remove('active');
{'}'}
menu.addEventListener('click', () =>{'{'}
menu.classList.toggle('fa-times');
navbar.classList.toggle('active');
{'}'});
searchBtn.addEventListener('click', () =>{'{'}
searchBtn.classList.toggle('fa-times');
searchBar.classList.toggle('active');
{'}'});
formBtn.addEventListener('click', () =>{'{'}
loginForm.classList.add('active');
{'}'});
formClose.addEventListener('click', () =>{'{'}
loginForm.classList.remove('active');
{'}'});
xxxxxxxxxx
<!DOCTYPE html PUBLIC>
<link rel="stylesheet" type="text/css" href="Welcome.css"title="default">
<head>
<title>Welcome</title>
<body>
<div id="Top_header">
<div id="chart_top"><img src="images.png" width="500" /></div>
<h1>Data Informed</h1><h1>Insights To Prove Your</h1>
<h3>Team's Success</h3>
<p>Find Your High-Points & prove It with Data in One Day</p>
</div>
<div id="Menu_content">
<input type="text" name="t1" value="Your work email" onfocus=
"if(this.value=='Your work email'){this.value='';}"onBlur="if(this.value==''){this.value='Your work email';}"/>
<input name="sub" type="submit" class="button" id="sub" value="See How it Work" />
</div>
<div id="Top_header1">
<div id="Leaf_top"><img src="images (1).jpeg" width="25" /></div>
<p>Create Free Account</p>
</div><br><br><br><br><br><br><br>
</body>
</head>
</html>