From da322760c742c31fe3480f9901cf86cf711bfbd6 Mon Sep 17 00:00:00 2001 From: Yiannis Christodoulou Date: Thu, 18 Sep 2025 10:30:32 +0300 Subject: [PATCH] feat: Improve chapters' body --- .../src/components/chapter/ChapterList.jsx | 339 ++++++++++-------- 1 file changed, 195 insertions(+), 144 deletions(-) diff --git a/frontend-tools/video-js/src/components/chapter/ChapterList.jsx b/frontend-tools/video-js/src/components/chapter/ChapterList.jsx index 51d1c2ed..ee06f37a 100644 --- a/frontend-tools/video-js/src/components/chapter/ChapterList.jsx +++ b/frontend-tools/video-js/src/components/chapter/ChapterList.jsx @@ -1,156 +1,207 @@ import React from 'react'; function ChapterList() { - const playlistData = [ - { - id: 1, - title: "Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge", - channel: "Physics Wallah - Alakh Pandey", - duration: "40:13", - thumbnail: "https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw", - selected: true - }, - { - id: 2, - title: "Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge", - channel: "Physics Wallah - Alakh Pandey", - duration: "40:13", - thumbnail: "https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw", - selected: false - }, - { - id: 3, - title: "Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge", - channel: "Physics Wallah - Alakh Pandey", - duration: "40:13", - thumbnail: "https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw", - selected: false - }, - { - id: 4, - title: "Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge", - channel: "Physics Wallah - Alakh Pandey", - duration: "40:13", - thumbnail: "https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw", - selected: false - }, - { - id: 5, - title: "Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge", - channel: "Physics Wallah - Alakh Pandey", - duration: "40:13", - thumbnail: "https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw", - selected: false - }, - { - id: 6, - title: "Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge", - channel: "Physics Wallah - Alakh Pandey", - duration: "40:13", - thumbnail: "https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw", - selected: false - } - , - { - id: 7, - title: "Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge", - channel: "Physics Wallah - Alakh Pandey", - duration: "40:13", - thumbnail: "https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw", - selected: false - } - , - { - id: 8, - title: "Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge", - channel: "Physics Wallah - Alakh Pandey", - duration: "40:13", - thumbnail: "https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw", - selected: false - } - , - { - id: 9, - title: "Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge", - channel: "Physics Wallah - Alakh Pandey", - duration: "40:13", - thumbnail: "https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw", - selected: false - } + const playlistData = [ + { + id: 1, + title: 'Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge', + channel: 'Physics Wallah - Alakh Pandey', + duration: '40:13', + thumbnail: + 'https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw', + selected: true, + }, + { + id: 2, + title: 'Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge', + channel: 'Physics Wallah - Alakh Pandey', + duration: '40:13', + thumbnail: + 'https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw', + selected: false, + }, + { + id: 3, + title: 'Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge', + channel: 'Physics Wallah - Alakh Pandey', + duration: '40:13', + thumbnail: + 'https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw', + selected: false, + }, + { + id: 4, + title: 'Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge', + channel: 'Physics Wallah - Alakh Pandey', + duration: '40:13', + thumbnail: + 'https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw', + selected: false, + }, + { + id: 5, + title: 'Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge', + channel: 'Physics Wallah - Alakh Pandey', + duration: '40:13', + thumbnail: + 'https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw', + selected: false, + }, + { + id: 6, + title: 'Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge', + channel: 'Physics Wallah - Alakh Pandey', + duration: '40:13', + thumbnail: + 'https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw', + selected: false, + }, + { + id: 7, + title: 'Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge', + channel: 'Physics Wallah - Alakh Pandey', + duration: '40:13', + thumbnail: + 'https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw', + selected: false, + }, + { + id: 8, + title: 'Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge', + channel: 'Physics Wallah - Alakh Pandey', + duration: '40:13', + thumbnail: + 'https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw', + selected: false, + }, + { + id: 9, + title: 'Class 12 Chapter 1 || Electric Charges and Fields 01 || Quantisation and Conservation of Charge', + channel: 'Physics Wallah - Alakh Pandey', + duration: '40:13', + thumbnail: + 'https://i.ytimg.com/vi/m5VbK66a254/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLCt2rMJW2jZAYkcDi9wLQOGVkLSTw', + selected: false, + }, + ]; -]; - - - return ( -
-
-
-
-

12 chapter 1 II Electri charges and Fields JEE MAINS/NEET

-

Physics Wallah - Alakh Pandey 1 / 17

+ return ( +
+
+ -
- +
+
+ + +
+
+ +
-
-
- - -
-
- -
+
- -
- ); + ); } export default ChapterList; -