@@ -328,11 +335,69 @@
// Initialize with "All" selected
filterLinks[0].style.backgroundColor = '<%= @accent_color == "grey" ? "#9e9e9e" : "var(--#{@accent_color}-lighten-4)" %>';
filterLinks[0].style.fontWeight = '500';
+
+ // How to join modal
+ document.getElementById('how-to-join-btn').addEventListener('click', function() {
+ // Show modal
+ var modalHtml = `
+
+
+
info How to join this showcase
+
Want your content to appear on this page? Follow these steps:
+
+
Add the ArtFight2025 tag to your content
+
Set your content's privacy to Public in the privacy toggle
+
That's it! Your content will appear here automatically
+
+
Note: It may take a few minutes for new content to appear.
+
+
+
+ `;
+
+ // Add modal to DOM if it doesn't exist
+ if (!document.getElementById('how-to-join-modal')) {
+ document.body.insertAdjacentHTML('beforeend', modalHtml);
+ }
+
+ // Initialize and open modal
+ var modalElement = document.getElementById('how-to-join-modal');
+ var modalInstance = M.Modal.init(modalElement, {opacity: 0.6});
+ modalInstance.open();
+ });
});
<% end %>