Skip to content

Commit 6e97e3c

Browse files
committed
add examples buttons
1 parent 8d97d7b commit 6e97e3c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

templates/index.jinja

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
<input
117117
type="url"
118118
name="repo_url"
119+
id="repo_url"
119120
value="{{ repo_url }}"
120121
placeholder="https://github.com/username/repository"
121122
required
@@ -132,6 +133,21 @@
132133
</button>
133134
</div>
134135
</form>
136+
137+
<!-- Example repositories section -->
138+
<div class="mt-6">
139+
<p class="text-gray-700 mb-3 font-medium">Try these example repositories:</p>
140+
<div class="flex flex-wrap gap-2">
141+
<button onclick="submitExample('https://github.com/cyclotruc/gitingest')"
142+
class="px-4 py-2 bg-[#E6F2FF] hover:bg-[#5A9BF5] text-gray-900 rounded transition-colors duration-200 border-[3px] border-gray-900 relative hover:-translate-y-px hover:-translate-x-px text-sm font-medium">
143+
Gitingest
144+
</button>
145+
<button onclick="submitExample('https://github.com/cyclotruc/gitcontainer')"
146+
class="px-4 py-2 bg-[#E6F2FF] hover:bg-[#5A9BF5] text-gray-900 rounded transition-colors duration-200 border-[3px] border-gray-900 relative hover:-translate-y-px hover:-translate-x-px text-sm font-medium">
147+
Gitcontainer
148+
</button>
149+
</div>
150+
</div>
135151
</div>
136152
</div>
137153

@@ -324,6 +340,15 @@
324340
</footer>
325341

326342
<script>
343+
// Example submission function
344+
function submitExample(repoUrl) {
345+
const input = document.getElementById('repo_url');
346+
input.value = repoUrl;
347+
input.focus();
348+
// Optionally auto-submit the form
349+
// input.form.submit();
350+
}
351+
327352
// Monaco Editor setup
328353
let dockerfileEditor = null;
329354
let composeEditor = null;

0 commit comments

Comments
 (0)