From 76a9085717d1be1e187b69c18bebe35dd6253b5d Mon Sep 17 00:00:00 2001 From: f Date: Sun, 5 Jan 2025 22:03:00 +0300 Subject: [PATCH] fix ui --- _layouts/default.html | 74 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 72 insertions(+), 2 deletions(-) diff --git a/_layouts/default.html b/_layouts/default.html index 5d724b6..0b6bc13 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -5,6 +5,7 @@ + prompts.chat — awesome AI prompts {% seo %} {% include head-custom.html %} @@ -1061,8 +1101,17 @@ if (results.length === 0) { const li = document.createElement('li'); - li.className = 'search-result-item'; - li.textContent = 'No prompts found'; + li.className = 'search-result-item add-prompt'; + li.innerHTML = ` + + + + + + + Add this prompt + + `; searchResults.appendChild(li); return; } @@ -1149,6 +1198,27 @@ const promptsGrid = document.createElement('div'); promptsGrid.className = 'prompts-grid'; + // Add contribute box + const contributeCard = document.createElement('div'); + contributeCard.className = 'prompt-card contribute-card'; + contributeCard.innerHTML = ` + +
+ + + + + + Add Your Prompt +
+

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

+ Contribute Now +
+ `; + promptsGrid.appendChild(contributeCard); + const promptElements = document.querySelectorAll('h2[id^=act] + p + blockquote'); promptElements.forEach((blockquote) => {