Skip to content

Commit

Permalink
Fix/youtube cards mobile (#601)
Browse files Browse the repository at this point in the history
* make youtube cards responsive

* make youtube videos responsive

* configure spacing in youtube videos

* fix responsive issues in youtube cards

---------

Co-authored-by: Rajneesh Verma <rajneeshverma@Rajneesh-MacBook-Air.local>
  • Loading branch information
RajVerma97 and Rajneesh Verma authored Oct 1, 2024
1 parent b203777 commit 55429fe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 13 additions & 0 deletions screens/home/youtube-panel/youtube-panel.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
.card {
width: 15%;
transition: all 0.3s ease;
}

.card:hover {
box-shadow: 0 0 5px #808080;
}

@media (max-width: 1000px) {
.card {
width: 18%;
}
}

@media (max-width: 900px) {
.card {
width: 40%;
}
}
3 changes: 1 addition & 2 deletions screens/home/youtube-panel/youtube-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ const YoutubePanel: React.FC<YoutubePanelProps> = ({ youtubeData }) => {
// we are OK with sending the referer header to youtube
rel=""
key={index}
w={225}
m={{ base: 5, sm: "xs" }}
m={{ base: 5, md: "sm" }}
className={classes.card}
radius={"md"}
withBorder={true}
Expand Down

0 comments on commit 55429fe

Please sign in to comment.