Skip to content
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

FIX: hamburger flipped, chapter title not visible on white mode, and … #53

Merged
merged 1 commit into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/ContentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const ContentCard = ({
onClick: () => void
}) => {
return (
<div onClick={onClick}>
<div onClick={onClick} className="hover:scale-105 ease-in duration-200">
<img src={image} alt={title} className="rounded-md" />
<div className="flex justify-between mt-2 text-gray-900 dark:text-white">
<div>{title}</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,18 @@ export function ToggleButton({
className="flex flex-col justify-center items-center"
>
<span
className={`dark:bg-white bg-black block transition-all duration-300 ease-out h-0.5 w-6 rounded-sm ${sidebarOpen ? 'rotate-45 translate-y-1' : '-translate-y-0.5'}`}
className={`dark:bg-white bg-black block transition-all duration-300 ease-out h-0.5 w-6 rounded-sm ${!sidebarOpen ? 'rotate-45 translate-y-1' : '-translate-y-0.5'}`}
></span>
<span
className={`dark:bg-white bg-black block transition-all duration-300 ease-out
h-0.5 w-6 rounded-sm my-0.5 ${
sidebarOpen ? 'opacity-0' : 'opacity-100'
!sidebarOpen ? 'opacity-0' : 'opacity-100'
}`}
></span>
<span
className={`dark:bg-white bg-black block transition-all duration-300 ease-out
h-0.5 w-6 rounded-sm ${
sidebarOpen
!sidebarOpen
? '-rotate-45 -translate-y-1'
: 'translate-y-0.5'
}`}
Expand Down
2 changes: 1 addition & 1 deletion src/components/VideoContentChapters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const VideoContentChapters = ({
return (
<>
<div
className={`p-2 py-3 flex items-center gap-3 justify-between cursor-pointer ${currentTime >= start && currentTime < end ? 'bg-[#27272A]' : ''}`}
className={`dark:text-white text-black p-2 py-3 flex items-center gap-3 justify-between cursor-pointer ${currentTime >= start && currentTime < end ? 'bg-[#27272A]' : ''}`}
onClick={() => {
player.currentTime(start);
player.play();
Expand Down
Loading