|
1 | 1 | <div class="relative"> |
2 | 2 | <div class="w-full h-full absolute inset-0 bg-gray-900 rounded-xl translate-y-2 translate-x-2"></div> |
3 | | - <div class="rounded-xl relative z-20 pl-8 sm:pl-10 pr-8 sm:pr-16 py-8 border-[3px] border-gray-900 bg-[#fff4da]"> |
| 3 | + <div class="rounded-xl relative z-20 pl-8 sm:pl-10 pr-8 sm:pr-16 py-8 border-[3px] border-gray-900 dark:border-gray-600 bg-[#fff4da] dark:bg-gray-800"> |
4 | 4 | <img src="https://cdn.devdojo.com/images/january2023/shape-1.png" |
5 | 5 | class="absolute md:block hidden left-0 h-[4.5rem] w-[4.5rem] bottom-0 -translate-x-full ml-3"> |
6 | 6 | <form class="flex md:flex-row flex-col w-full h-full justify-center items-stretch space-y-5 md:space-y-0 md:space-x-5" |
|
14 | 14 | placeholder="https://github.com/..." |
15 | 15 | value="{{ github_url if github_url else '' }}" |
16 | 16 | required |
17 | | - class="border-[3px] w-full relative z-20 border-gray-900 placeholder-gray-600 text-lg font-medium focus:outline-none py-3.5 px-6 rounded"> |
| 17 | + class="border-[3px] w-full relative z-20 border-gray-900 dark:border-gray-600 placeholder-gray-600 dark:placeholder-gray-400 text-gray-900 dark:text-white bg-white dark:bg-gray-700 text-lg font-medium focus:outline-none py-3.5 px-6 rounded"> |
18 | 18 | </div> |
19 | 19 | <div class="relative w-auto flex-shrink-0 h-full group"> |
20 | 20 | <div class="w-full h-full rounded bg-gray-800 translate-y-1 translate-x-1 absolute inset-0 z-10"></div> |
21 | 21 | <button type="submit" |
22 | | - class="py-3.5 rounded px-6 group-hover:-translate-y-px group-hover:-translate-x-px ease-out duration-300 z-20 relative w-full border-[3px] border-gray-900 font-medium bg-[#ffc480] tracking-wide text-lg flex-shrink-0 text-gray-900"> |
| 22 | + class="py-3.5 rounded px-6 group-hover:-translate-y-px group-hover:-translate-x-px ease-out duration-300 z-20 relative w-full border-[3px] border-gray-900 dark:border-gray-600 font-medium bg-[#ffc480] dark:bg-[#fca847] tracking-wide text-lg flex-shrink-0 text-gray-900"> |
23 | 23 | Ingest |
24 | 24 | </button> |
25 | 25 | </div> |
|
31 | 31 | <div class="w-[200px] sm:w-[250px] mr-9 mt-4"> |
32 | 32 | <div class="relative"> |
33 | 33 | <div class="w-full h-full rounded bg-gray-900 translate-y-1 translate-x-1 absolute inset-0 z-10"></div> |
34 | | - <div class="flex relative z-20 border-[3px] border-gray-900 rounded bg-white"> |
| 34 | + <div class="flex relative z-20 border-[3px] border-gray-900 dark:border-gray-600 rounded bg-white dark:bg-gray-700"> |
35 | 35 | <div class="relative flex items-center"> |
36 | 36 | <select id="pattern_type" |
37 | 37 | name="pattern_type" |
38 | | - class="w-21 py-2 pl-2 pr-6 appearance-none bg-[#e6e8eb] focus:outline-none border-r-[3px] border-gray-900"> |
| 38 | + class="w-21 py-2 pl-2 pr-6 appearance-none bg-[#e6e8eb] dark:bg-gray-600 dark:text-white focus:outline-none border-r-[3px] border-gray-900 dark:border-gray-600"> |
39 | 39 | <option value="exclude" |
40 | 40 | {% if pattern_type == 'exclude' or not pattern_type %}selected{% endif %}> |
41 | 41 | Exclude |
42 | 42 | </option> |
43 | 43 | <option value="include" {% if pattern_type == 'include' %}selected{% endif %}>Include</option> |
44 | 44 | </select> |
45 | | - <svg class="absolute right-2 w-4 h-4 pointer-events-none" |
| 45 | + <svg class="absolute right-2 w-4 h-4 pointer-events-none dark:text-white" |
46 | 46 | xmlns="http://www.w3.org/2000/svg" |
47 | 47 | viewBox="0 0 24 24" |
48 | 48 | fill="none" |
|
58 | 58 | name="pattern" |
59 | 59 | placeholder="*.md, src/ " |
60 | 60 | value="{{ pattern if pattern else '' }}" |
61 | | - class=" py-2 px-2 bg-[#E8F0FE] focus:outline-none w-full"> |
| 61 | + class="py-2 px-2 bg-[#E8F0FE] dark:bg-gray-600 dark:text-white focus:outline-none w-full"> |
62 | 62 | </div> |
63 | 63 | </div> |
64 | 64 | </div> |
65 | 65 | <div class="w-[200px] sm:w-[200px] mt-3"> |
66 | | - <label for="file_size" class="block text-gray-700 mb-1"> |
| 66 | + <label for="file_size" class="block text-gray-700 dark:text-gray-300 mb-1"> |
67 | 67 | Include files under: <span id="size_value" class="font-bold">50kb</span> |
68 | 68 | </label> |
69 | 69 | <input type="range" |
|
73 | 73 | max="500" |
74 | 74 | required |
75 | 75 | value="{{ default_file_size }}" |
76 | | - class="w-full h-3 bg-[#FAFAFA] bg-no-repeat bg-[length:50%_100%] bg-[#ebdbb7] appearance-none border-[3px] border-gray-900 rounded-sm focus:outline-none bg-gradient-to-r from-[#FE4A60] to-[#FE4A60] [&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-7 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:rounded-sm [&::-webkit-slider-thumb]:cursor-pointer [&::-webkit-slider-thumb]:border-solid [&::-webkit-slider-thumb]:border-[3px] [&::-webkit-slider-thumb]:border-gray-900 [&::-webkit-slider-thumb]:shadow-[3px_3px_0_#000] "> |
| 76 | + class="w-full h-3 bg-[#FAFAFA] dark:bg-gray-600 bg-no-repeat bg-[length:50%_100%] bg-[#ebdbb7] appearance-none border-[3px] border-gray-900 dark:border-gray-600 rounded-sm focus:outline-none bg-gradient-to-r from-[#FE4A60] to-[#FE4A60] [&::-webkit-slider-thumb]:w-5 [&::-webkit-slider-thumb]:h-7 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:dark:bg-gray-300 [&::-webkit-slider-thumb]:rounded-sm [&::-webkit-slider-thumb]:cursor-pointer [&::-webkit-slider-thumb]:border-solid [&::-webkit-slider-thumb]:border-[3px] [&::-webkit-slider-thumb]:border-gray-900 [&::-webkit-slider-thumb]:dark:border-gray-600 [&::-webkit-slider-thumb]:shadow-[3px_3px_0_#000]"> |
77 | 77 | </div> |
78 | 78 | </div> |
79 | 79 | {% if show_examples %} |
80 | 80 | <!-- Example repositories section --> |
81 | 81 | <div class="mt-4"> |
82 | | - <p class="opacity-70 mb-1">Try these example repositories:</p> |
| 82 | + <p class="opacity-70 dark:text-gray-300 mb-1">Try these example repositories:</p> |
83 | 83 | <div class="flex flex-wrap gap-2"> |
84 | 84 | {% for example in examples %} |
85 | 85 | <button onclick="submitExample('{{ example.url }}')" |
86 | | - class="px-4 py-1 bg-[#EBDBB7] hover:bg-[#FFC480] text-gray-900 rounded transition-colors duration-200 border-[3px] border-gray-900 relative hover:-translate-y-px hover:-translate-x-px"> |
| 86 | + class="px-4 py-1 bg-[#EBDBB7] dark:bg-gray-700 hover:bg-[#FFC480] dark:hover:bg-[#fca847] text-gray-900 dark:text-white rounded transition-colors duration-200 border-[3px] border-gray-900 dark:border-gray-600 relative hover:-translate-y-px hover:-translate-x-px"> |
87 | 87 | {{ example.name }} |
88 | 88 | </button> |
89 | 89 | {% endfor %} |
|
0 commit comments