Skip to content

Commit a18e2b1

Browse files
committed
style: enhance design to improve visibility and contrast
1 parent 094e58a commit a18e2b1

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/app/generator/repo-tree-generator.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ import {
3232
Download,
3333
Github,
3434
GitlabIcon as GitLab,
35-
Loader2,
3635
Maximize,
3736
Minimize,
37+
RefreshCw,
3838
Search,
3939
Settings,
4040
} from "lucide-react"
@@ -302,7 +302,7 @@ export default function RepoProjectStructure() {
302302

303303
<div className="flex flex-col space-y-3 sm:flex-row sm:space-y-0 sm:space-x-4">
304304
<Select value={repoType} onValueChange={(value: RepoType) => setRepoType(value)}>
305-
<SelectTrigger className="w-[180px]" aria-label="Repository Type">
305+
<SelectTrigger className="w-[180px] bg-white dark:bg-gray-800 text-black dark:text-white border-blue-500" aria-label="Repository Type">
306306
<SelectValue placeholder="Select repo type" />
307307
</SelectTrigger>
308308
<SelectContent>
@@ -320,7 +320,7 @@ export default function RepoProjectStructure() {
320320
placeholder={`Enter ${repoType === "github" ? "GitHub" : "GitLab"} repository URL`}
321321
value={repoUrl}
322322
onChange={handleUrlChange}
323-
className={`p-3 pr-10 text-base sm:text-lg text-black dark:text-white ${validation.isError ? "border-red-500" : ""}`}
323+
className={`p-3 pr-10 text-base sm:text-lg text-black dark:text-white border-blue-500 ${validation.isError ? "border-red-500" : ""}`}
324324
ref={inputRef}
325325
/>
326326
{repoUrl && (
@@ -336,17 +336,17 @@ export default function RepoProjectStructure() {
336336
<Button
337337
onClick={() => handleFetchStructure()}
338338
disabled={loading || validation.isError}
339-
className="w-full sm:w-auto flex items-center justify-center py-3 px-6 bg-blue-600 hover:bg-blue-700 text-white text-base sm:text-lg transition-colors duration-300"
339+
className="w-full sm:w-auto flex items-center justify-center gap-2 py-3 px-6 bg-blue-600 hover:bg-blue-700 text-white text-base sm:text-lg transition-colors duration-300"
340340
aria-label={`Generate ${repoType === "github" ? "GitHub" : "GitLab"} structure`}
341341
>
342342
{loading ? (
343-
<Loader2 className="h-5 w-5 animate-spin" />
343+
<RefreshCw className="h-5 w-5 animate-spin" />
344344
) : repoType === "github" ? (
345345
<Github className="h-5 w-5" />
346346
) : (
347347
<GitLab className="h-5 w-5" />
348348
)}
349-
Generate
349+
{loading ? "Generating..." : "Generate"}
350350
</Button>
351351
</div>
352352

@@ -390,7 +390,7 @@ export default function RepoProjectStructure() {
390390
placeholder="Search files/folders"
391391
value={searchTerm}
392392
onChange={(e) => setSearchTerm(e.target.value)}
393-
className="pl-8 w-full"
393+
className="pl-8 w-full border-blue-500"
394394
/>
395395
<Search className="absolute left-2 top-1/2 transform -translate-y-1/2 text-gray-400" size={16} />
396396
</div>
@@ -453,7 +453,7 @@ export default function RepoProjectStructure() {
453453
aria-label="Download Format"
454454
>
455455
<SelectTrigger
456-
className="w-[180px] bg-white dark:bg-gray-800 text-black dark:text-white"
456+
className="w-[180px] bg-white dark:bg-gray-800 text-black dark:text-white border-blue-500"
457457
aria-label="Select download format"
458458
>
459459
<SelectValue placeholder="Select format" />

src/components/github-help.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export default function GitHubHelp() {
1717
className="flex items-center gap-2 px-3 py-2 rounded-full bg-blue-900 text-white hover:bg-blue-700 transition-colors duration-200 ease-in-out"
1818
aria-label="Help"
1919
>
20-
<HelpCircle className="h-5 w-5" />
21-
Help
20+
<HelpCircle className="h-5 w-5 text-white" />
21+
<span className="text-white">Help</span>
2222
</Button>
2323
</DialogTrigger>
2424
<DialogContent className="sm:max-w-[600px] max-h-[80vh] overflow-y-auto">

src/components/private-repos-dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default function PrivateReposDialog() {
4242
return (
4343
<Dialog open={isOpen} onOpenChange={setIsOpen}>
4444
<DialogTrigger asChild>
45-
<Button variant="outline" size="sm" className="flex items-center gap-2 bg-transparent">
45+
<Button variant="outline" size="sm" className="flex items-center gap-2 bg-white dark:bg-gray-800 text-black dark:text-white border-blue-500">
4646
{hasToken ? (
4747
<>
4848
<Unlock className="h-4 w-4 text-green-600" />

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy