diff --git a/src/app/anime/[id]/buttons.jsx b/src/app/anime/[id]/buttons.jsx
index 5c99027..4f0aca4 100644
--- a/src/app/anime/[id]/buttons.jsx
+++ b/src/app/anime/[id]/buttons.jsx
@@ -89,9 +89,6 @@ export default function Button({ data2: info }) {
playsInline
id="videoPlayer"
volume={0.8}
- // onQualityChange={(event) =>
- // console.log("changed qualities", event)
- // }
>
diff --git a/src/app/kdrama/[id]/buttons.jsx b/src/app/kdrama/[id]/buttons.jsx
index 86110be..9f6145c 100644
--- a/src/app/kdrama/[id]/buttons.jsx
+++ b/src/app/kdrama/[id]/buttons.jsx
@@ -20,23 +20,6 @@ export default function EpisodesButtons({ data: episodeData, id: dramaId }) {
setEpisode(episodeText);
}
- // Auto loads the first episode
- useEffect(() => {
- const fetchData = async () => {
- try {
- let firstVideoLink = episodeData[0].id;
- let firstLink = await getVideoLink(firstVideoLink, dramaId);
- setVideoLink(firstLink);
- setEpisode("Episode 1");
- } catch (error) {
- console.log("Some error occured", error);
- return;
- }
- };
-
- fetchData();
- }, []);
-
return (
@@ -58,9 +41,17 @@ export default function EpisodesButtons({ data: episodeData, id: dramaId }) {
-
- {videoLink && (
-
+ {videoLink && (
+
+
+ )}
);
}
diff --git a/src/app/kdrama/styles/info.module.css b/src/app/kdrama/styles/info.module.css
index edac191..3ae0bef 100644
--- a/src/app/kdrama/styles/info.module.css
+++ b/src/app/kdrama/styles/info.module.css
@@ -101,33 +101,45 @@
transition: background-color 0.2s linear;
}
-.VideoContainer {
- margin-top: 20px;
-}
-
-.Video {
+.videoPopUp {
+ height: 100dvh;
+ width: 100dvw;
+ background-color: #1f1f1fd3;
+ position: fixed;
+ bottom: 0;
+ left: 0;
+ right: 0;
display: flex;
flex-direction: column;
align-items: center;
- width: 70dvw;
- margin: 0px auto;
+ justify-content: center;
+ z-index: 1;
+ overflow-y: auto;
}
-.Video p {
- color: white;
- font-family: "Atkinson Hyperlegible", serif;
- color: var(--pastel-red);
+.closeButton {
+ font-family: "Poppins", serif;
+ font-size: 16px;
+ background-color: var(--pastel-red);
+ padding: 0.5rem 1.5rem;
+ border: 0;
+ outline: 0;
+ border-radius: 0.5rem;
+ cursor: pointer;
+ margin: 5px;
}
-.VideoPlayer {
- margin: 0px auto;
- width: auto;
- height: auto;
+.video {
+ width: 60vw;
font-family: "Lexend Deca", serif;
}
+.VideoPlayer {
+ width: 100%;
+}
+
@media screen and (max-width: 768px) {
- .Video {
+ .video {
width: 100%;
}