From 93029fea2bac89bf20dfcd930c95224ebb5cdfcb Mon Sep 17 00:00:00 2001
From: p <>
Date: Wed, 13 Sep 2023 22:34:46 +0530
Subject: [PATCH] sorting
---
Common/Card.js | 6 +++---
Common/CardCompact.js | 4 ++--
Common/CardExpanded.js | 6 +++---
Common/CardGrid.js | 4 ++--
Common/Header.js | 2 +-
Common/TorrentList.js | 2 +-
components/CardGenre.js | 2 +-
components/FilmGenres.js | 2 +-
components/FilmRating.js | 2 +-
components/FilmResources.js | 6 +++---
components/Heading.js | 6 +++---
components/Pagination.js | 8 ++++----
pages/post-detail/[id]/[slug].js | 2 +-
pages/search.js | 2 +-
pages/upload.js | 28 ++++++++++++++--------------
styles/globals.css | 9 +++++++--
16 files changed, 48 insertions(+), 43 deletions(-)
diff --git a/Common/Card.js b/Common/Card.js
index 399bfcb..2df4e7b 100644
--- a/Common/Card.js
+++ b/Common/Card.js
@@ -25,12 +25,12 @@ const Card = (props) => {
}
let slug = name.toLowerCase().trim().replace(/[^\w\s-]/g, '').replace(/[\s_-]+/g, '-').replace(/^-+|-+$/g, '');
router.push(`/post-detail/${props.item?.eid}/${slug}/`)
- }} key={props.index} style={{marginBottom:"10px"}} className={`my-2 overflow-hidden w-full ${props?.page ==="dashboard"?"":"cursor-pointer"} py-2 bg-card rounded-md flex justify-center hover:bg-primary/10 border border-off-white/10 hover:border-primary/50 flex-col md:flex-row `}>
+ }} key={props.index} style={{marginBottom:"10px"}} className={`my-2 overflow-hidden w-full ${props?.page ==="dashboard"?"":"cursor-pointer"} py-2 bg-card rounded-md flex justify-center hover:bg-primary/10 hover:border-primary/50 flex-col md:flex-row `}>
-
+
{props?.item?.name}
@@ -49,7 +49,7 @@ const Card = (props) => {
{formatBytes(props.item['size'])}
- {props?.page ==="dashboard"? {router.push(`/upload?data=${JSON.stringify(props?.item)}`)}} className='font-medium cursor-pointer text-primary' >Edit:null}
+ {props?.page ==="dashboard"? {router.push(`/upload?data=${JSON.stringify(props?.item)}`)}} className='font-light cursor-pointer text-primary' >Edit:null}
);
};
diff --git a/Common/CardCompact.js b/Common/CardCompact.js
index d9ce492..dc5fe69 100644
--- a/Common/CardCompact.js
+++ b/Common/CardCompact.js
@@ -22,13 +22,13 @@ const CardCompact = (props) => {
{
let slug = name.toLowerCase().trim().replace(/[^\w\s-]/g, '').replace(/[\s_-]+/g, '-').replace(/^-+|-+$/g, '');
router.push(`/post-detail/${props.item?.pk}/${slug}/`)
- }} key={props.index} style={{marginBottom:"10px"}} className={`my-2 overflow-hidden w-full ${props?.page ==="dashboard"?"":"cursor-pointer"} py-2 bg-card rounded-md flex justify-center hover:bg-primary/10 border border-off-white/10 hover:border-primary/50 flex-col md:flex-row`}>
+ }} key={props.index} style={{marginBottom:"10px"}} className={`my-2 overflow-hidden w-full ${props?.page ==="dashboard"?"":"cursor-pointer"} py-2 bg-card rounded-md flex justify-center hover:bg-primary/10 hover:border-primary/50 flex-col md:flex-row`}>
-
+
{name}
diff --git a/Common/CardExpanded.js b/Common/CardExpanded.js
index 2a71661..1e5e6ab 100644
--- a/Common/CardExpanded.js
+++ b/Common/CardExpanded.js
@@ -23,11 +23,11 @@ const CardExpanded = (props) => {
{
let slug = name.toLowerCase().trim().replace(/[^\w\s-]/g, '').replace(/[\s_-]+/g, '-').replace(/^-+|-+$/g, '');
router.push(`/post-detail/${props.item?.pk}/${slug}/`)
- }} key={props.index} className="my-3 overflow-hidden mt-6 cursor-pointer py-2 bg-card rounded-md flex-col justify-center inline-flex hover:bg-primary/10 border border-off-white/10 hover:border-primary/50 zoomcss" style={{width:"200px"}}>
-
+ }} key={props.index} className="my-3 overflow-hidden mt-6 cursor-pointer py-2 bg-card rounded-md flex-col justify-center inline-flex hoverCss zoomcss" style={{width:"200px"}}>
+
-
+
{name}
diff --git a/Common/CardGrid.js b/Common/CardGrid.js
index 65f6ac9..310e0a0 100644
--- a/Common/CardGrid.js
+++ b/Common/CardGrid.js
@@ -28,11 +28,11 @@ const CardExpanded = (props) => {
}
let slug = name.toLowerCase().trim().replace(/[^\w\s-]/g, '').replace(/[\s_-]+/g, '-').replace(/^-+|-+$/g, '');
router.push(`/post-detail/${props.item?.eid}/${slug}/`)
- }} key={props.index} className="my-3 mt-6 zoom overflow-hidden cursor-pointer py-2 bg-card rounded-md flex-col justify-center inline-flex hover:bg-primary/10 border border-off-white/10 hover:border-primary/50 zoomcss" style={{width:"200px"}}>
+ }} key={props.index} className="my-3 mt-6 zoom overflow-hidden cursor-pointer py-2 bg-card rounded-md flex-col justify-center inline-flex hover:bg-primary/10 hoverCss zoomcss" style={{width:"200px"}}>
-
+
{props?.item?.name}
diff --git a/Common/Header.js b/Common/Header.js
index ca70bb1..95a3dd9 100644
--- a/Common/Header.js
+++ b/Common/Header.js
@@ -46,7 +46,7 @@ useEffect(()=>{
},[])
return (
-
+
diff --git a/Common/TorrentList.js b/Common/TorrentList.js
index 58fcebe..0cb8183 100644
--- a/Common/TorrentList.js
+++ b/Common/TorrentList.js
@@ -227,7 +227,7 @@ const TorrentList = ({ setisTorrent, torrent_list, runtime }) => {
}} className={`my-3 cursor-pointer w-[] py-2 bg-card rounded-md flex justify-center hover:bg-primary/10 border border-off-white/5 hover:border-primary/50 flex-col md:flex-row`}>
-
+
diff --git a/components/CardGenre.js b/components/CardGenre.js
index 570021f..2ecf9c4 100644
--- a/components/CardGenre.js
+++ b/components/CardGenre.js
@@ -7,7 +7,7 @@ const CardGenre = React.forwardRef(
href={href}
onClick={onClick}
ref={ref}
- className={`card-hover-animation m-2 flex h-44 w-44 grow items-center justify-center rounded-lg p-8 text-center text-xl font-medium even:bg-app-semi-dark-blue ${oddBgColor}`}
+ className={`card-hover-animation m-2 flex h-44 w-44 grow items-center justify-center rounded-lg p-8 text-center text-xl font-light even:bg-app-semi-dark-blue ${oddBgColor}`}
>
{text}
diff --git a/components/FilmGenres.js b/components/FilmGenres.js
index cee876e..2783a0e 100644
--- a/components/FilmGenres.js
+++ b/components/FilmGenres.js
@@ -15,7 +15,7 @@ function renderGenres(arr) {
return (
{genre.name}
diff --git a/components/FilmRating.js b/components/FilmRating.js
index 46b7178..f0c478b 100644
--- a/components/FilmRating.js
+++ b/components/FilmRating.js
@@ -4,7 +4,7 @@ import Rating from 'react-rating'
export default function FilmRating({ number }) {
return (
-
{number}
+
{number}
{
handlegetLink()}
- className='mb-4 mr-4 flex w-40 cursor-pointer items-center justify-between rounded-md border-none bg-app-greyish-blue py-3 px-8 text-sm font-medium text-app-pure-white hover:bg-app-pure-white hover:text-app-dark-blue'
+ className='mb-4 mr-4 flex w-40 cursor-pointer items-center justify-between rounded-md border-none bg-app-greyish-blue py-3 px-8 text-sm font-light text-app-pure-white hover:bg-app-pure-white hover:text-app-dark-blue'
rel='noreferrer'
>
@@ -36,7 +36,7 @@ const handlegetLink =()=>{
{!props?.imdb ? null : (
@@ -46,7 +46,7 @@ const handlegetLink =()=>{
)}
{/*
+ className="mb-4 flex w-full cursor-pointer items-center justify-between rounded-md border-none bg-app-semi-dark-blue py-4 px-8 text-sm font-light text-app-pure-white hover:bg-app-greyish-blue">
Trailer
*/}
diff --git a/components/Heading.js b/components/Heading.js
index 525d4e4..d6d78a3 100644
--- a/components/Heading.js
+++ b/components/Heading.js
@@ -15,8 +15,8 @@ export default function Heading({
{media_type}
@@ -25,7 +25,7 @@ export default function Heading({
{title}
)}
-
+
See more
diff --git a/components/Pagination.js b/components/Pagination.js
index 0301f54..412300c 100644
--- a/components/Pagination.js
+++ b/components/Pagination.js
@@ -18,8 +18,8 @@ export default function Pagination({
onClick={goToPreviousPage}
className={
isFirst
- ? 'disabled-link flex cursor-not-allowed items-center justify-center rounded-lg rounded-r-none border-2 py-2 pl-4 pr-6 font-medium'
- : 'flex items-center justify-center rounded-lg rounded-r-none border-2 py-2 pl-4 pr-6 font-medium hover:bg-app-pure-white hover:text-app-dark-blue'
+ ? 'disabled-link flex cursor-not-allowed items-center justify-center rounded-lg rounded-r-none border-2 py-2 pl-4 pr-6 font-light'
+ : 'flex items-center justify-center rounded-lg rounded-r-none border-2 py-2 pl-4 pr-6 font-light hover:bg-app-pure-white hover:text-app-dark-blue'
}
>
@@ -34,8 +34,8 @@ export default function Pagination({
onClick={goToNextPage}
className={
isLast
- ? 'disabled-link flex cursor-not-allowed items-center justify-center rounded-lg rounded-l-none border-2 py-2 pr-4 pl-6 font-medium'
- : 'flex items-center justify-center rounded-lg rounded-l-none border-2 py-2 pr-4 pl-6 font-medium hover:bg-app-pure-white hover:text-app-dark-blue'
+ ? 'disabled-link flex cursor-not-allowed items-center justify-center rounded-lg rounded-l-none border-2 py-2 pr-4 pl-6 font-light'
+ : 'flex items-center justify-center rounded-lg rounded-l-none border-2 py-2 pr-4 pl-6 font-light hover:bg-app-pure-white hover:text-app-dark-blue'
}
>
Next
diff --git a/pages/post-detail/[id]/[slug].js b/pages/post-detail/[id]/[slug].js
index 67acc29..d7bd89f 100644
--- a/pages/post-detail/[id]/[slug].js
+++ b/pages/post-detail/[id]/[slug].js
@@ -193,7 +193,7 @@ const Details = () => {
{
trackers.map((item, index) => {
return (
-
+
{item}
)
diff --git a/pages/search.js b/pages/search.js
index 06fb9ef..362e165 100644
--- a/pages/search.js
+++ b/pages/search.js
@@ -49,7 +49,7 @@ const Home = () => {
console.log("pp",checkboxInput)
return (
-
+
{loader ?
: null}
This World.
At Your Fingertips.
diff --git a/pages/upload.js b/pages/upload.js
index 8114e81..36b2321 100644
--- a/pages/upload.js
+++ b/pages/upload.js
@@ -313,20 +313,20 @@ useEffect(()=>{
}} className='w-[85%]'>
-
+
{errors?.name}
-
+
{errors?.short_name}
-
+
-
+