diff --git a/vibe/script.js b/vibe/script.js index 4b3bf3f..394131e 100644 --- a/vibe/script.js +++ b/vibe/script.js @@ -45,31 +45,48 @@ async function renderMainPrompts() { const prompts = await loadPrompts(); const container = document.querySelector('#promptContent'); if (container) { - container.innerHTML = `
${prompts.map(({ app, prompt, contributor, techstack }) => ` -
-
- ${app} -
- + container.innerHTML = `
+ -

${prompt.replace(/\\n/g, '
')}

-
+

+ Share your vibe prompts with the community! Submit a pull request to add your prompts to the collection. +

+ Contribute Now +
- `).join('')}
`; + ${prompts.map(({ app, prompt, contributor, techstack }) => ` +
+
+ ${app} +
+ +
+
+

${prompt.replace(/\\n/g, '
')}

+ +
+ `).join('')}
`; // Add click handlers for modal - const cards = container.querySelectorAll('.prompt-card'); + const cards = container.querySelectorAll('.prompt-card:not(.contribute-card)'); cards.forEach((card, index) => { card.addEventListener('click', (e) => { // Don't open modal if clicking on buttons or links diff --git a/vibe/style.css b/vibe/style.css new file mode 100644 index 0000000..2afd5c4 --- /dev/null +++ b/vibe/style.css @@ -0,0 +1,43 @@ +.contribute-card { + background: linear-gradient(45deg, var(--accent-color) 0%, var(--accent-color-light) 100%); + color: white !important; + transition: transform 0.2s ease, box-shadow 0.2s ease; +} + +.contribute-card:hover { + transform: translateY(-2px); + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); +} + +.contribute-card .prompt-title { + color: white; + font-weight: 600; +} + +.contribute-card .prompt-content { + color: rgba(255, 255, 255, 0.9); + margin: 1rem 0; +} + +.contribute-card .contributor-badge { + background-color: rgba(255, 255, 255, 0.2); + color: white; + border: none; +} + +.contribute-card .contributor-badge:hover { + background-color: rgba(255, 255, 255, 0.3); +} + +.contribute-card svg { + stroke: white; +} + +/* Dark mode adjustments */ +.dark-mode .contribute-card { + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); +} + +.dark-mode .contribute-card:hover { + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); +} \ No newline at end of file