Spaces:
Running
Running
making it dark mode
Browse files- index.html +77 -17
index.html
CHANGED
|
@@ -14,11 +14,71 @@
|
|
| 14 |
<meta property="og:type" content="website">
|
| 15 |
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
| 16 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
.directory-checkbox + button:focus {
|
| 18 |
outline: none;
|
| 19 |
}
|
| 20 |
.directory-checkbox + button:hover {
|
| 21 |
-
color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
}
|
| 23 |
</style>
|
| 24 |
<script src="https://cdn.tailwindcss.com"></script>
|
|
@@ -34,38 +94,38 @@
|
|
| 34 |
gtag('config', 'G-CYF86LN5WM');
|
| 35 |
</script>
|
| 36 |
</head>
|
| 37 |
-
<body class="bg-gray-
|
| 38 |
-
<div class="max-w-4xl mx-auto bg-
|
| 39 |
<a href="https://github.com/abinthomasonline/repo2txt" target="_blank" class="absolute top-2 right-2">
|
| 40 |
-
<i data-lucide="github" class="w-8 h-8 text-gray-
|
| 41 |
</a>
|
| 42 |
-
<h1 class="text-3xl font-bold mb-2 text-center text-gray-
|
| 43 |
-
<p class="text-lg text-center text-gray-
|
| 44 |
<form id="repoForm" class="space-y-4">
|
| 45 |
<div>
|
| 46 |
-
<label for="repoUrl" class="block text-sm font-medium text-gray-
|
| 47 |
-
<input type="text" id="repoUrl" name="repoUrl" required class="mt-1 block w-full rounded-md border border-gray-
|
| 48 |
</div>
|
| 49 |
<div class="hidden">
|
| 50 |
-
<label for="ref" class="block text-sm font-medium text-gray-
|
| 51 |
-
<input type="text" id="ref" name="ref" class="mt-1 block w-full rounded-md border border-gray-
|
| 52 |
</div>
|
| 53 |
<div class="hidden">
|
| 54 |
-
<label for="path" class="block text-sm font-medium text-gray-
|
| 55 |
-
<input type="text" id="path" name="path" class="mt-1 block w-full rounded-md border border-gray-
|
| 56 |
</div>
|
| 57 |
<div>
|
| 58 |
-
<label for="accessToken" class="block text-sm font-medium text-gray-
|
| 59 |
Personal Access Token (optional - for private repositories and higher rate limits):
|
| 60 |
-
<button type="button" id="showMoreInfo" class="ml-2 text-blue-500 hover:text-blue-
|
| 61 |
<i data-lucide="info" class="w-4 h-4"></i>
|
| 62 |
</button>
|
| 63 |
</label>
|
| 64 |
<div id="tokenInfo" class="hidden mt-2">
|
| 65 |
-
<p class="text-sm text-gray-
|
| 66 |
-
<p class="mt-1"><a href="https://github.com/settings/tokens/new?description=repo2file&scopes=repo" target="_blank" class="text-sm text-
|
| 67 |
</div>
|
| 68 |
-
<input type="text" id="accessToken" name="accessToken" class="mt-1 block w-full rounded-md border border-gray-
|
| 69 |
|
| 70 |
</div>
|
| 71 |
<button type="submit" class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline flex items-center justify-center">
|
|
|
|
| 14 |
<meta property="og:type" content="website">
|
| 15 |
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
| 16 |
<style>
|
| 17 |
+
body {
|
| 18 |
+
background-color: #1a202c; /* Dark background */
|
| 19 |
+
color: #e2e8f0; /* Light text color */
|
| 20 |
+
}
|
| 21 |
.directory-checkbox + button:focus {
|
| 22 |
outline: none;
|
| 23 |
}
|
| 24 |
.directory-checkbox + button:hover {
|
| 25 |
+
color: #cbd5e0; /* Lighter hover color */
|
| 26 |
+
}
|
| 27 |
+
.max-w-4xl {
|
| 28 |
+
background-color: #2d3748; /* Darker background for container */
|
| 29 |
+
color: #e2e8f0; /* Light text */
|
| 30 |
+
}
|
| 31 |
+
input, textarea {
|
| 32 |
+
background-color: #4a5568; /* Dark input background */
|
| 33 |
+
color: #edf2f7; /* Light input text color */
|
| 34 |
+
border: 1px solid #718096; /* Border matching the theme */
|
| 35 |
+
}
|
| 36 |
+
input:focus, textarea:focus {
|
| 37 |
+
border-color: #63b3ed; /* Focus border color (light blue) */
|
| 38 |
+
outline: none;
|
| 39 |
+
}
|
| 40 |
+
button {
|
| 41 |
+
transition: background-color 0.3s;
|
| 42 |
+
}
|
| 43 |
+
button.bg-blue-500 {
|
| 44 |
+
background-color: #4299e1; /* Blue for button */
|
| 45 |
+
}
|
| 46 |
+
button.bg-blue-500:hover {
|
| 47 |
+
background-color: #3182ce; /* Darker blue on hover */
|
| 48 |
+
}
|
| 49 |
+
button.bg-green-500 {
|
| 50 |
+
background-color: #48bb78; /* Green button */
|
| 51 |
+
}
|
| 52 |
+
button.bg-green-500:hover {
|
| 53 |
+
background-color: #38a169; /* Darker green on hover */
|
| 54 |
+
}
|
| 55 |
+
button.bg-indigo-500 {
|
| 56 |
+
background-color: #667eea; /* Indigo button */
|
| 57 |
+
}
|
| 58 |
+
button.bg-indigo-500:hover {
|
| 59 |
+
background-color: #5a67d8; /* Darker indigo on hover */
|
| 60 |
+
}
|
| 61 |
+
button.bg-purple-500 {
|
| 62 |
+
background-color: #9f7aea; /* Purple button */
|
| 63 |
+
}
|
| 64 |
+
button.bg-purple-500:hover {
|
| 65 |
+
background-color: #805ad5; /* Darker purple on hover */
|
| 66 |
+
}
|
| 67 |
+
.text-gray-600 {
|
| 68 |
+
color: #a0aec0; /* Adjust to lighter gray for text */
|
| 69 |
+
}
|
| 70 |
+
.text-gray-500 {
|
| 71 |
+
color: #cbd5e0; /* Lighter gray text */
|
| 72 |
+
}
|
| 73 |
+
a i {
|
| 74 |
+
color: #e2e8f0; /* Light color for icons */
|
| 75 |
+
}
|
| 76 |
+
a i:hover {
|
| 77 |
+
color: #edf2f7; /* Even lighter color on hover */
|
| 78 |
+
}
|
| 79 |
+
.rounded-md {
|
| 80 |
+
background-color: #2d3748; /* Dark background for output text */
|
| 81 |
+
border-color: #4a5568; /* Matching border */
|
| 82 |
}
|
| 83 |
</style>
|
| 84 |
<script src="https://cdn.tailwindcss.com"></script>
|
|
|
|
| 94 |
gtag('config', 'G-CYF86LN5WM');
|
| 95 |
</script>
|
| 96 |
</head>
|
| 97 |
+
<body class="bg-gray-900 min-h-screen p-4 md:p-8 text-gray-200">
|
| 98 |
+
<div class="max-w-4xl mx-auto bg-gray-800 rounded-lg shadow-md p-6 relative">
|
| 99 |
<a href="https://github.com/abinthomasonline/repo2txt" target="_blank" class="absolute top-2 right-2">
|
| 100 |
+
<i data-lucide="github" class="w-8 h-8 text-gray-400 hover:text-gray-300"></i>
|
| 101 |
</a>
|
| 102 |
+
<h1 class="text-3xl font-bold mb-2 text-center text-gray-200">GitHub to Plain Text</h1>
|
| 103 |
+
<p class="text-lg text-center text-gray-400 mb-6">Convert Code in GitHub to a Single Formatted Text File</p>
|
| 104 |
<form id="repoForm" class="space-y-4">
|
| 105 |
<div>
|
| 106 |
+
<label for="repoUrl" class="block text-sm font-medium text-gray-300">GitHub URL:</label>
|
| 107 |
+
<input type="text" id="repoUrl" name="repoUrl" required class="mt-1 block w-full rounded-md border border-gray-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 h-10 px-2">
|
| 108 |
</div>
|
| 109 |
<div class="hidden">
|
| 110 |
+
<label for="ref" class="block text-sm font-medium text-gray-300">Ref (branch/tag/commit sha):</label>
|
| 111 |
+
<input type="text" id="ref" name="ref" class="mt-1 block w-full rounded-md border border-gray-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 h-10 px-2">
|
| 112 |
</div>
|
| 113 |
<div class="hidden">
|
| 114 |
+
<label for="path" class="block text-sm font-medium text-gray-300">Path (subdirectory):</label>
|
| 115 |
+
<input type="text" id="path" name="path" class="mt-1 block w-full rounded-md border border-gray-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 h-10 px-2">
|
| 116 |
</div>
|
| 117 |
<div>
|
| 118 |
+
<label for="accessToken" class="block text-sm font-medium text-gray-300 flex items-center">
|
| 119 |
Personal Access Token (optional - for private repositories and higher rate limits):
|
| 120 |
+
<button type="button" id="showMoreInfo" class="ml-2 text-blue-500 hover:text-blue-400">
|
| 121 |
<i data-lucide="info" class="w-4 h-4"></i>
|
| 122 |
</button>
|
| 123 |
</label>
|
| 124 |
<div id="tokenInfo" class="hidden mt-2">
|
| 125 |
+
<p class="text-sm text-gray-400">[This code runs in your browser. We don't use or store your token.]</p>
|
| 126 |
+
<p class="mt-1"><a href="https://github.com/settings/tokens/new?description=repo2file&scopes=repo" target="_blank" class="text-sm text-blue-500 hover:text-blue-400"><i data-lucide="external-link" class="w-5 h-5 inline-block"></i> Get your token</a></p>
|
| 127 |
</div>
|
| 128 |
+
<input type="text" id="accessToken" name="accessToken" class="mt-1 block w-full rounded-md border border-gray-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 h-10 px-2">
|
| 129 |
|
| 130 |
</div>
|
| 131 |
<button type="submit" class="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline flex items-center justify-center">
|