-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Add border radius in tags #1116
Merged
NiallJoeMaher
merged 9 commits into
codu-code:develop
from
CarolinaCobo:1115-tags-in-home-page-not-matching-style
Oct 16, 2024
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
02edef0
Add border radius in tags
CarolinaCobo 6433f7d
Comments
CarolinaCobo dde2239
Change rounded to only right
CarolinaCobo 7bdce4e
Fixes
CarolinaCobo 1d7f5ab
Merge remote-tracking branch 'upstream/develop' into 1115-tags-in-hom…
CarolinaCobo 7af6955
Flush lines top and bottom
CarolinaCobo 0ee6196
Change pink shade
CarolinaCobo 2b229ca
Remove file commited by mistake
CarolinaCobo 2f28f95
Merge branch 'develop' into 1115-tags-in-home-page-not-matching-style
NiallJoeMaher 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
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,71 @@ | ||
"use client"; | ||
import { FEATURE_FLAGS, isFlagEnabled } from "@/utils/flags"; | ||
import { CheckCircle, CircleCheck, PlayCircle, SquarePlay } from "lucide-react"; | ||
import { type Session } from "next-auth"; | ||
import { notFound } from "next/navigation"; | ||
import { mockContentList, mockVideoSrc } from "../../mock"; | ||
|
||
const Content = ({ session }: { session: Session | null }) => { | ||
const flagEnabled = isFlagEnabled(FEATURE_FLAGS.COURSE_VIDEO); | ||
|
||
if (!flagEnabled) { | ||
notFound(); | ||
} | ||
|
||
return ( | ||
<div className="flex w-full flex-grow flex-col"> | ||
<div className="w-full divide-x divide-gray-700 lg:grid lg:grid-cols-12"> | ||
{/* Video container */} | ||
<div className="col-span-9"> | ||
<div className="bg-black"> | ||
<iframe | ||
className="aspect-video w-full" | ||
src="https://www.youtube.com/embed/Q68wOyeG5lc" | ||
title="YouTube video" | ||
></iframe> | ||
</div> | ||
</div> | ||
|
||
{/* Sidebar */} | ||
<div className="col-span-3 flex w-full flex-col overflow-auto"> | ||
<ul className="divide-y divide-gray-700"> | ||
{mockContentList && mockContentList.length > 0 ? ( | ||
mockContentList.map((item, index) => ( | ||
<li | ||
key={index} | ||
className="flex flex-row items-center justify-between px-2 py-2 " | ||
> | ||
<div className="flex flex-row items-center"> | ||
<SquarePlay | ||
className="mr-4 h-5 w-5 text-white group-hover:text-white" | ||
aria-hidden="true" | ||
/> | ||
<p>{item.title}</p> | ||
</div> | ||
<CircleCheck | ||
className={ | ||
item.watched | ||
? "mr-2 h-5 w-5 text-pink-600" | ||
: "mr-2 h-5 w-5 text-white" | ||
} | ||
aria-hidden="true" | ||
/> | ||
</li> | ||
)) | ||
) : ( | ||
<li className="text-center text-gray-500"> | ||
No content available | ||
</li> | ||
)} | ||
</ul> | ||
</div> | ||
</div> | ||
<div className="flex-none"> | ||
<div>Video title</div> | ||
<div>descritpion</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Content; |
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Improve video information section.
The video information section is currently using placeholder text. Consider the following improvements:
Here's a suggested improvement:
Replace
videoTitle
andvideoDescription
with the actual data from your course content.