-
Notifications
You must be signed in to change notification settings - Fork 109
Enable multi-language repo search and selection #244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
3f0f462
Enable multi-language repo search and selection
offbeatjs bafa1dd
Update src/app/(public)/_components/hero.tsx
offbeatjs 7a276ec
fix: as per req
offbeatjs 4284a5b
Merge branch 'main' of https://github.com/offbeatjs/hacktoberfest-pro…
offbeatjs 6e7bd4b
Update page.tsx
offbeatjs f907abc
send array as url search Params
offbeatjs 89070fe
Update src/app/(public)/repos/page.tsx
offbeatjs 7917ddf
Refactor hero search and add repos loading skeleton
offbeatjs 3cdbbda
Merge branch 'main' of https://github.com/offbeatjs/hacktoberfest-pro…
offbeatjs 6eff959
Format code
max-programming 73b9b9d
Fix styling issues
max-programming ba450f6
Some visual changes in text display
max-programming bad6e9e
Show selected language names in the list
max-programming 12d24b3
Merge remote-tracking branch 'origin/main' into offbeatjs/main
max-programming 02a497c
Enable typedRoutes and update Next.js
max-programming 8106b7c
Fix type error
max-programming 5f1bbd3
fix type error
max-programming 218ae78
Remove default sort
max-programming File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
offbeatjs marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
max-programming marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,109 @@ | ||
| export default function Loading() { | ||
| return ( | ||
| <> | ||
| {/* Header Skeleton */} | ||
| <div className="border-b border-hacktoberfest-dark-green"> | ||
| <div className="container mx-auto px-4 py-4"> | ||
| <div className="flex items-center justify-between"> | ||
| <div className="h-8 w-32 bg-shimmer animate-shimmer rounded-md"></div> | ||
| <div className="flex space-x-4"> | ||
| <div className="h-8 w-20 bg-shimmer animate-shimmer rounded-md"></div> | ||
| <div className="h-8 w-24 bg-shimmer animate-shimmer rounded-md"></div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div className="container mx-auto"> | ||
| <div className="min-h-screen pt-5"> | ||
| {/* Title Section Skeleton */} | ||
| <div className="text-center"> | ||
| <div className="w-5/6 max-w-md mx-auto"> | ||
| <div className="mb-5 space-y-3"> | ||
| <div className="h-12 w-full bg-shimmer animate-shimmer rounded-lg"></div> | ||
| <div className="h-8 w-3/4 mx-auto bg-shimmer animate-shimmer rounded-lg"></div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| {/* Sorter Skeleton */} | ||
| <div className="flex justify-center mb-6"> | ||
| <div className="flex space-x-4"> | ||
| <div className="h-10 w-24 bg-shimmer animate-shimmer rounded-md"></div> | ||
| <div className="h-10 w-28 bg-shimmer animate-shimmer rounded-md"></div> | ||
| <div className="h-10 w-20 bg-shimmer animate-shimmer rounded-md"></div> | ||
| </div> | ||
| </div> | ||
|
|
||
| {/* Stars Filter Skeleton */} | ||
| <div className="flex justify-center mb-8"> | ||
| <div className="flex space-x-3"> | ||
| <div className="h-10 w-32 bg-shimmer animate-shimmer rounded-md"></div> | ||
| <div className="h-10 w-16 bg-shimmer animate-shimmer rounded-md"></div> | ||
| <div className="h-10 w-32 bg-shimmer animate-shimmer rounded-md"></div> | ||
| </div> | ||
| </div> | ||
|
|
||
| {/* Repository Cards Grid Skeleton */} | ||
| <div className="grid grid-cols-1 gap-8 p-4 md:grid-cols-2 lg:grid-cols-3"> | ||
| {Array.from({ length: 21 }).map((_, index) => ( | ||
| <div | ||
| key={index} | ||
| className="bg-hacktoberfest-black border border-hacktoberfest-dark-green rounded-lg p-6 shadow-sm hover:shadow-md transition-shadow duration-200" | ||
| > | ||
| {/* Repository Title */} | ||
| <div className="mb-4"> | ||
| <div className="h-6 w-3/4 bg-shimmer animate-shimmer rounded mb-2"></div> | ||
| <div className="h-4 w-full bg-shimmer animate-shimmer rounded"></div> | ||
| <div className="h-4 w-2/3 bg-shimmer animate-shimmer rounded mt-1"></div> | ||
| </div> | ||
|
|
||
| {/* Language and Stats */} | ||
| <div className="flex items-center justify-between mb-4"> | ||
| <div className="flex items-center space-x-2"> | ||
| <div className="h-3 w-3 bg-shimmer animate-shimmer rounded-full"></div> | ||
| <div className="h-4 w-16 bg-shimmer animate-shimmer rounded"></div> | ||
| </div> | ||
| <div className="flex space-x-4"> | ||
| <div className="flex items-center space-x-1"> | ||
| <div className="h-4 w-4 bg-shimmer animate-shimmer rounded"></div> | ||
| <div className="h-4 w-8 bg-shimmer animate-shimmer rounded"></div> | ||
| </div> | ||
| <div className="flex items-center space-x-1"> | ||
| <div className="h-4 w-4 bg-shimmer animate-shimmer rounded"></div> | ||
| <div className="h-4 w-8 bg-shimmer animate-shimmer rounded"></div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| {/* Topics */} | ||
| <div className="flex flex-wrap gap-2 mb-4"> | ||
| <div className="h-6 w-20 bg-shimmer animate-shimmer rounded-full"></div> | ||
| <div className="h-6 w-16 bg-shimmer animate-shimmer rounded-full"></div> | ||
| <div className="h-6 w-24 bg-shimmer animate-shimmer rounded-full"></div> | ||
| </div> | ||
|
|
||
| {/* Action Button */} | ||
| <div className="h-10 w-full bg-shimmer animate-shimmer rounded-md"></div> | ||
| </div> | ||
| ))} | ||
| </div> | ||
| </div> | ||
|
|
||
| {/* Pagination Skeleton */} | ||
| <div className="flex justify-center items-center space-x-2 py-8"> | ||
| <div className="h-10 w-20 bg-shimmer animate-shimmer rounded-md"></div> | ||
| <div className="flex space-x-1"> | ||
| {Array.from({ length: 5 }).map((_, index) => ( | ||
| <div | ||
| key={index} | ||
| className="h-10 w-10 bg-shimmer animate-shimmer rounded-md" | ||
| ></div> | ||
| ))} | ||
| </div> | ||
| <div className="h-10 w-20 bg-shimmer animate-shimmer rounded-md"></div> | ||
| </div> | ||
| </div> | ||
| </> | ||
| ); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.