-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ui fixes * navbar and other * loading skeletons archive, schedule * stage ui * metadata fix * event metadata * fix build
- Loading branch information
Showing
37 changed files
with
22,826 additions
and
16,501 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains 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
This file contains 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,40 @@ | ||
import { | ||
Card, | ||
CardContent, | ||
CardDescription, | ||
CardHeader, | ||
CardTitle, | ||
} from '@/components/ui/card' | ||
|
||
const UpcomingLoader = () => ( | ||
<div className="max-w-screen border-none"> | ||
<CardHeader className="px-0 lg:px-0"> | ||
<CardTitle className=" ">Events</CardTitle> | ||
<CardDescription> | ||
Explore current and past events | ||
</CardDescription> | ||
</CardHeader> | ||
<CardContent className="px-0 lg:px-0 flex flex-row overflow-auto space-x-4 "> | ||
{[...Array(3)].map((_, index) => ( | ||
<div key={index}> | ||
<Card className="p-2 w-[350px] border-none text-foreground"> | ||
<div className=" min-h-full rounded-xl uppercase"> | ||
<div className="w-full animate-pulse bg-secondary aspect-video"></div> | ||
<CardHeader className=" px-2 lg:px-2 lg:py-2 rounded mt-1 bg-white bg-opacity-10 space-y-4"> | ||
<CardTitle className="truncate text-body text-white text-xl bg-secondary"></CardTitle> | ||
<CardDescription className="text-white flex flex-row space-x-2 "> | ||
<div className="w-full animate-pulse bg-secondary"></div> | ||
<div className="w-full animate-pulse bg-secondary"> | ||
Archive | ||
</div> | ||
</CardDescription> | ||
</CardHeader> | ||
</div> | ||
</Card> | ||
</div> | ||
))} | ||
</CardContent> | ||
</div> | ||
) | ||
|
||
export default UpcomingLoader |
This file contains 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
This file contains 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
This file contains 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,28 @@ | ||
import { CardTitle } from '@/components/ui/card' | ||
import Pagination from './pagination' | ||
import { fetchAllSessions } from '@/lib/data' | ||
import Videos from '@/components/misc/Videos' | ||
import { SearchPageProps } from '@/lib/types' | ||
|
||
const ArchiveVideos = async ({ searchParams }: SearchPageProps) => { | ||
const videos = await fetchAllSessions({ | ||
organizationSlug: searchParams.organization, | ||
event: searchParams.event, | ||
limit: 12, | ||
onlyVideos: true, | ||
searchQuery: searchParams.searchQuery, | ||
page: Number(searchParams.page || 1), | ||
}) | ||
|
||
return ( | ||
<div> | ||
<div className="flex flex-row items-center justify-between mb-4"> | ||
<CardTitle className="">Results</CardTitle> | ||
<Pagination {...videos.pagination} /> | ||
</div> | ||
<Videos videos={videos.sessions} /> | ||
</div> | ||
) | ||
} | ||
|
||
export default ArchiveVideos |
41 changes: 41 additions & 0 deletions
41
packages/app/app/(vod)/components/ArchiveVideosSkeleton.tsx
This file contains 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,41 @@ | ||
import PaginationSkeleton from './PaginationSkeleteon' | ||
import { | ||
Card, | ||
CardContent, | ||
CardDescription, | ||
CardHeader, | ||
CardTitle, | ||
} from '@/components/ui/card' | ||
|
||
const ArchiveVideoSkeleton = () => { | ||
return ( | ||
<div> | ||
<div className="flex flex-row items-center justify-between mb-4"> | ||
<CardTitle className="">Results</CardTitle> | ||
<PaginationSkeleton /> | ||
</div> | ||
<div className="flex flex-row overflow-auto space-x-4 "> | ||
{[...Array(8)].map((_, index) => ( | ||
<div key={index}> | ||
<Card className="p-2 w-[350px] border-none text-foreground"> | ||
<div className=" min-h-full rounded-xl uppercase"> | ||
<div className="w-full animate-pulse bg-secondary aspect-video"></div> | ||
<CardHeader className=" px-2 lg:px-2 lg:py-2 rounded mt-1 bg-white bg-opacity-10 space-y-4"> | ||
<CardTitle className="truncate text-body text-white text-xl bg-secondary"></CardTitle> | ||
<CardDescription className="text-white flex flex-row space-x-2 "> | ||
<div className="w-full animate-pulse bg-secondary"></div> | ||
<div className="w-full animate-pulse bg-secondary"> | ||
Archive | ||
</div> | ||
</CardDescription> | ||
</CardHeader> | ||
</div> | ||
</Card> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default ArchiveVideoSkeleton |
This file contains 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,24 @@ | ||
const PaginationSkeleton = () => { | ||
return ( | ||
<div className="flex flex-row justify-center items-center"> | ||
<div className="flex flex-row justify-center items-center"> | ||
{/* Left Arrow Skeleton */} | ||
<div className="p-2 rounded-full hover:bg-gray-100 animate-pulse"> | ||
<div className="h-6 w-6 bg-gray-300 rounded-full"></div> | ||
</div> | ||
|
||
{/* Page Number Skeleton */} | ||
<div className="mx-2 animate-pulse"> | ||
<div className="h-6 w-24 bg-gray-300 rounded"></div> | ||
</div> | ||
|
||
{/* Right Arrow Skeleton */} | ||
<div className="p-2 rounded-full hover:bg-gray-100 animate-pulse"> | ||
<div className="h-6 w-6 bg-gray-300 rounded-full"></div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default PaginationSkeleton |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.