File tree Expand file tree Collapse file tree 11 files changed +79
-679
lines changed
Expand file tree Collapse file tree 11 files changed +79
-679
lines changed Original file line number Diff line number Diff line change 1313 flex-direction : row;
1414 overflow-x : auto;
1515 gap : 24px ;
16- padding : 16px 24 px 16px 24 px ;
16+ padding : 16px 0 px 16px 0 px ;
1717 -ms-overflow-style : none;
1818 overflow : -moz-scrollbars-none;
1919}
Original file line number Diff line number Diff line change 11import React from "react" ;
2+ import "./NewsSection.css" ;
23import VideoThumbnailCard from "./VideoThumbnailCard" ;
34import { VideoEntry } from "../types" ;
45
Original file line number Diff line number Diff line change 11.modal-content {
2+ outline : none;
3+ background : # 181818 ;
4+ color : # fff ;
5+ border-radius : 16px ;
6+ padding : 0 0 16px 0 ;
7+ max-width : 640px ;
8+ max-height : 96vh ;
9+ min-width : 320px ;
10+ width : 90vw ;
11+ box-sizing : border-box;
12+ margin : 2vh auto;
213 display : flex;
314 flex-direction : column;
415 align-items : center;
5- justify-content : center;
6- height : 100% ;
7- background : # 181818 ;
816}
917.yt-player-container {
10- width : 640px ;
11- height : 360px ;
18+ width : 100% ;
19+ max-width : 600px ;
20+ min-width : 280px ;
21+ aspect-ratio : 16 / 9 ;
22+ display : flex;
23+ justify-content : center;
24+ align-items : center;
25+ margin : 0 auto;
26+ }
27+ .yt-player-container iframe {
28+ width : 100% ;
29+ height : 100% ;
30+ border-radius : 12px ;
1231 background : # 000 ;
13- margin-bottom : 16px ;
1432}
1533.close-btn {
1634 min-width : 100px ;
5371 vertical-align : middle;
5472 fill : # fff ;
5573}
74+ @media (max-width : 900px ) {
75+ .modal-content {
76+ max-width : 96vw ;
77+ min-width : 0 ;
78+ width : 100vw ;
79+ border-radius : 0 ;
80+ margin : 0 ;
81+ padding : 0 0 8px 0 ;
82+ }
83+ .yt-player-container {
84+ max-width : 100vw ;
85+ min-width : 0 ;
86+ aspect-ratio : 16 / 9 ;
87+ padding : 0 4vw ;
88+ }
89+ }
Original file line number Diff line number Diff line change 11import React from "react" ;
22import { VideoInfo } from "../types" ;
3+ import "./VideoThumbnailCard.css" ;
34
45interface VideoThumbnailCardProps {
56 video : VideoInfo ;
Original file line number Diff line number Diff line change 66 color: #ffffff;
77} */
88
9+ .logo {
10+ width : 28px ;
11+ height : 28px ;
12+ vertical-align : middle;
13+ margin-right : 8px ;
14+ border-radius : 6px ;
15+ }
16+
917.category {
1018 margin-bottom : 20px ;
1119 padding-left : 16px ;
1624 margin : 0 ;
1725 text-transform : capitalize;
1826}
27+
Original file line number Diff line number Diff line change 4646 flex-direction : row;
4747 overflow-x : auto;
4848 gap : 24px ;
49- padding : 16px 24 px 16px 24 px ;
49+ padding : 16px 0 px 16px 0 px ;
5050 -ms-overflow-style : none;
5151 overflow : -moz-scrollbars-none;
5252}
Original file line number Diff line number Diff line change @@ -52,7 +52,14 @@ const Channels: React.FC = () => {
5252 < IonPage >
5353 < IonHeader >
5454 < IonToolbar >
55- < IonTitle > Channels</ IonTitle >
55+ < IonTitle >
56+ < img
57+ src = { `${ BASE_PATH } assets/icon/supertube-32x32.png` }
58+ alt = "SuperTube Logo"
59+ className = "logo"
60+ />
61+ Channels
62+ </ IonTitle >
5663 </ IonToolbar >
5764 </ IonHeader >
5865 < IonContent fullscreen >
You can’t perform that action at this time.
0 commit comments