From bb50d08f5e0476fc302ca45aa2e377471d10b118 Mon Sep 17 00:00:00 2001 From: real-zephex Date: Sun, 17 Mar 2024 06:47:32 +0530 Subject: minor fixes and feature improvements: added an indicator which shows when the animes are being loaded and also indicates when no anime with given title is found --- src/app/kdrama/page.js | 52 ++++++++++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 23 deletions(-) (limited to 'src/app/kdrama/page.js') diff --git a/src/app/kdrama/page.js b/src/app/kdrama/page.js index fdd42c7..3877453 100644 --- a/src/app/kdrama/page.js +++ b/src/app/kdrama/page.js @@ -5,6 +5,7 @@ import "./kdrama.css" import { useState } from "react"; import ReactPlayer from "react-player"; import Image from 'next/image'; +import { FaSearch } from 'react-icons/fa'; // Import the search icon from react-icons library import { fetchAnimeInfo, @@ -48,8 +49,8 @@ export default function Kdrama() { return (
-
-

Dramaverse

+
+ setSearchTitle(event.target.value)} @@ -68,6 +69,32 @@ export default function Kdrama() {
+ + {videoLink && ( +
+ +
+ )} + {episodeNo && ( +

+ Episode {episodeNo} +

+ )} + {details && (
@@ -102,27 +129,6 @@ export default function Kdrama() { ))}
-

- Playing episode {episodeNo} -

- {videoLink && ( -
- -
- )}
)}
-- cgit v1.2.3