projectPayload = ({
files: {
"index.js": `${(menuButton) => {
menuButton.addEventListener("click", function () {
let classList = document.getElementById("nav").classList;
classList.toggle("hidden");
classList.toggle("block");
});
}}`,
"input.css": `@tailwind base; @tailwind components; @tailwind utilities;`,
"package.json": JSON.stringify({
scripts: {
start: "npx tailwindcss -i ./input.css -o ./output.css --minify"
},
dependencies: { tailwindcss: "^3.1.6" }
}),
"tailwind.config.js": `${(module) => {
module.exports = {
content: ["./index.js"],
theme: {
extend: {}
},
plugins: []
};
}}`
},
template: "node"
})