Responsive Web3 News Hub Homepage using vanilla HTML and Tailwind CSS

Solution retrospective
I'm especially proud of this js script I wrote, there's probably better ways to execute the onclick function for the hamburger menu but I'm proud mine works.
const burgerBtn = document.querySelector("#burger");
const menuBar = document.querySelector("#menu");
const closeBtn = document.querySelector("#close");
burger.addEventListener("click", () => {
menuBar.classList.add("flex");
menuBar.classList.remove("hidden");
});
closeBtn.addEventListener("click", () => {
menuBar.classList.add("hidden");
menuBar.classList.remove("flex");
});
What challenges did you encounter, and how did you overcome them?
So this is the first project I'm attempting with Tailwind CSS. I was unable to use custom colors with the Play CDN method but through series of NetNinja's YouTube videos, I eventually got the hang of using the Tailwind CLI.
What specific areas of your project would you like help with?If only I could lay my hands on some free but expository JavaScript Tutorials, I believe it would greatly improve my skills and the quality of my codes.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Stallion's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord