Skip to content

Commit 0f2f550

Browse files
UI/UX imporvements
1 parent 9d8dd4f commit 0f2f550

File tree

11 files changed

+79
-679
lines changed

11 files changed

+79
-679
lines changed

src/components/NewsSection.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
flex-direction: row;
1414
overflow-x: auto;
1515
gap: 24px;
16-
padding: 16px 24px 16px 24px;
16+
padding: 16px 0px 16px 0px;
1717
-ms-overflow-style: none;
1818
overflow: -moz-scrollbars-none;
1919
}

src/components/NewsSection.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react";
2+
import "./NewsSection.css";
23
import VideoThumbnailCard from "./VideoThumbnailCard";
34
import { VideoEntry } from "../types";
45

src/components/VideoModal.css

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,34 @@
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;
@@ -53,3 +71,19 @@
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+
}

src/components/VideoThumbnailCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from "react";
22
import { VideoInfo } from "../types";
3+
import "./VideoThumbnailCard.css";
34

45
interface VideoThumbnailCardProps {
56
video: VideoInfo;

src/global.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
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;
@@ -16,3 +24,4 @@
1624
margin: 0;
1725
text-transform: capitalize;
1826
}
27+

src/pages/Channels.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
flex-direction: row;
4747
overflow-x: auto;
4848
gap: 24px;
49-
padding: 16px 24px 16px 24px;
49+
padding: 16px 0px 16px 0px;
5050
-ms-overflow-style: none;
5151
overflow: -moz-scrollbars-none;
5252
}

src/pages/Channels.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)