Skip to content

Commit

Permalink
FIX: hamburger flipped, cahpter title not visible on white mode, and …
Browse files Browse the repository at this point in the history
…animated on hover cards
  • Loading branch information
siinghd committed Feb 2, 2024
1 parent bef4641 commit 15f7dbc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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

0 comments on commit 15f7dbc

Please sign in to comment.