Skip to content

Commit

Permalink
Merge pull request #6 from zephex-alt/master
Browse files Browse the repository at this point in the history
Fixes and Improvements - 2
  • Loading branch information
real-zephex authored Apr 30, 2024
2 parents fdc6b60 + b9059d9 commit df1e72a
Show file tree
Hide file tree
Showing 33 changed files with 165 additions and 144 deletions.
8 changes: 4 additions & 4 deletions src/app/anime/[id]/buttons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ export default function Button({ data2: info }) {
className={styles.VideoPlayer}
playsInline
id="videoPlayer"
volume={0.2}
onQualityChange={(event) =>
console.log("changed qualities", event)
}
volume={0.8}
// onQualityChange={(event) =>
// console.log("changed qualities", event)
// }
>
<MediaProvider />
<PlyrLayout icons={plyrLayoutIcons} />
Expand Down
15 changes: 6 additions & 9 deletions src/app/anime/[id]/info.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@

.buttonContainer button {
transition: transform 200ms ease-in-out;

}

.buttonContainer button:focus {
Expand All @@ -65,11 +64,11 @@
transform: scale(0.9);
}

.buttonContainer::-webkit-scrollbar{
.buttonContainer::-webkit-scrollbar {
width: 5px;
}

.buttonContainer::-webkit-scrollbar-thumb{
.buttonContainer::-webkit-scrollbar-thumb {
background-color: var(--soft-purple);
border-radius: 1rem;
}
Expand All @@ -92,7 +91,7 @@

.dramaButton:hover {
background-color: #1f1f1f;
transition: background-color 200ms ease-in
transition: background-color 200ms ease-in;
}

.infoPageContainer p {
Expand All @@ -110,7 +109,6 @@
border-radius: 5px;
color: var(--neon-green);
background-color: #303030;
cursor: pointer;
font-family: "Atkinson Hyperlegible", serif;
}

Expand All @@ -119,7 +117,7 @@
}

.animeRelease span {
color: var(--soft-purple)
color: var(--soft-purple);
}

.videoPopUp {
Expand All @@ -138,7 +136,6 @@
overflow-y: auto;
}


.closeButton {
font-family: "Poppins", serif;
font-size: 16px;
Expand All @@ -153,14 +150,14 @@

.video {
width: 60vw;
font-family: "Lexend Deca", serif;
}

.VideoPlayer {
width: 100%;
}

@media screen and (max-width: 768px) {

.titleContainer p {
font-size: 28px;
}
Expand All @@ -172,4 +169,4 @@
.video {
width: 100%;
}
}
}
6 changes: 3 additions & 3 deletions src/app/anime/[id]/loading.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
height: 50px;
border-radius: 50%;
border: 8px solid;
border-color: #F4F4F4 #0000;
border-color: #f4f4f4 #0000;
animation: s1 1s infinite;
}

@keyframes s1 {
to {
transform: rotate(.5turn)
transform: rotate(0.5turn);
}
}
}
2 changes: 1 addition & 1 deletion src/app/anime/anime.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.main {
margin: 50px auto;
max-width: 98%;
}
}
2 changes: 1 addition & 1 deletion src/app/anime/history/continueWatching/cw.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
.animeEntry img {
width: 35%;
}
}
}
2 changes: 1 addition & 1 deletion src/app/anime/history/continueWatching/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const ContinueWatching = () => {
</p>
<p className={styles.date}>
Last watched on: {item.date} at{" "}
{item.time}
{item.time} hours
</p>
</div>
<Image
Expand Down
9 changes: 9 additions & 0 deletions src/app/anime/history/storeData.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use client";

export function storeLocal(watchData) {
const currentDate = new Date();
const jsonData = localStorage.getItem("data");
const dataObject = jsonData ? JSON.parse(jsonData) : {};

Expand All @@ -12,7 +13,15 @@ export function storeLocal(watchData) {
dataObject.watchHis.forEach((element) => {
if (element.name === watchData.name) {
let episode = watchData.episode;
let date = `${currentDate.getDate()}-${String(
currentDate.getMonth() + 1
).padStart(2, "0")}`;
let time = `${currentDate.getHours()}:${String(
currentDate.getMinutes()
).padStart(2, "0")}`;
element.episode = episode;
element.date = date;
element.time = time;
found = true;
}
});
Expand Down
9 changes: 6 additions & 3 deletions src/app/anime/recent/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ export default async function Releases() {
href={`/anime/${item.id}`}
style={{ textDecoration: "none", color: "white" }}
>
<div className={styles.RecentEntries}>
<div
className={styles.RecentEntries}
title={item.title}
>
<Image
src={`https://sup-proxy.zephex0-f6c.workers.dev/api-content?url=${item.image}`}
className={styles.RecentImage}
width={150}
height={280}
width={190}
height={270}
alt="Drama"
priority
/>
Expand Down
23 changes: 8 additions & 15 deletions src/app/anime/recent/recent.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@

.RecentText p {
font-size: 28px;
margin: 5px;
margin: 0;
color: var(--soft-purple);
font-family: "Poppins";
font-weight: 500;
font-family: "Lexend Deca", serif;
}

.RecentText span {
Expand All @@ -20,11 +19,6 @@
overflow-x: auto;
}

.Recent img {
width: auto;
height: 280px;
}

.RecentContainer:hover .RecentEntries {
opacity: 0.4;
}
Expand All @@ -48,16 +42,16 @@
margin: 4px;
background-color: #1f1f1fbb;
padding: 0.5rem;
border-radius: 1rem;
border-radius: 0.5rem;
transition: opacity 400ms ease, transform 400ms ease;

}

.RecentEntries p {
text-align: center;
margin: 5px auto;
width: 140px;
font-family: "Atkinson Hyperlegible";
width: auto;
max-width: 180px;
font-family: "Lexend Deca", serif;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
Expand All @@ -74,6 +68,5 @@
}

.RecentImage {
border-radius: 1rem;
aspect-ratio: auto;
}
border-radius: 0.5rem;
}
1 change: 0 additions & 1 deletion src/app/anime/search/components/fetchedInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export default async function fetchedInfo(data) {
<p
style={{
color: "white",
fontFamily: "Kanit",
fontSize: 18,
}}
>
Expand Down
15 changes: 7 additions & 8 deletions src/app/anime/search/search.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.waitWhileLoading {
font-size: 18px;
font-family: "Atkinson Hyperlegible";
font-family: "Lexend Deca", serif;
text-align: center;
color: white;
}
Expand All @@ -18,7 +18,7 @@
outline: none;
border: none;
color: white;
font-family: "Atkinson Hyperlegible";
font-family: "Lexend Deca", serif;
}

.inputContainer button a {
Expand All @@ -33,7 +33,7 @@
outline: none;
background: none;
width: 100%;
font-family: "Atkinson Hyperlegible", serif;
font-family: "Lexend Deca", serif;
font-size: 16px;
}

Expand All @@ -55,6 +55,7 @@
.animeEntry {
display: flex;
overflow-x: auto;
margin-bottom: 1rem;
}

.animeEntry .anime {
Expand All @@ -78,25 +79,23 @@
.animeEntry::-webkit-scrollbar-thumb {
background-color: rgba(196, 196, 196, 0.692);
border-radius: 5px;

}

.anime {
display: flex;
justify-content: space-between;
align-items: center;
padding: 5px;
margin: 10px 10px 0px 0px;
margin: 0 10px 0 0;
border-radius: 0.5rem;
transition: opacity 200ms ease-in, background-color 200ms linear;
background-color: #242424d0;

}

.anime p {
color: white;
width: 20dvw;
font-family: "Atkinson Hyperlegible", serif;
font-family: "Lexend Deca", serif;
font-size: 18px;
}

Expand All @@ -112,4 +111,4 @@
.anime p {
width: 50dvw;
}
}
}
6 changes: 3 additions & 3 deletions src/app/anime/top-airing/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ export default async function Trending() {
href={`/anime/${item.id}`}
style={{ textDecoration: "none", color: "white" }}
>
<div className={styles.trendingEntries}>
<div className={styles.trendingEntries} title={item.title}>
<Image
src={`https://sup-proxy.zephex0-f6c.workers.dev/api-content?url=${item.image}`}
className={styles.trendingImage}
width={150}
height={280}
width={190}
height={270}
alt="Drama"
priority
/>
Expand Down
22 changes: 8 additions & 14 deletions src/app/anime/top-airing/trending.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@

.TrendingText p {
font-size: 28px;
margin: 5px;
margin: 0px;
color: var(--soft-purple);
font-family: "Poppins";
font-weight: 500;
font-family: "Lexend Deca", serif;
}

.TrendingText span {
Expand All @@ -20,11 +19,6 @@
overflow-x: auto;
}

.trending img {
width: auto;
height: 280px;
}

.TrendingContainer:hover .trendingEntries {
opacity: 0.5;
}
Expand All @@ -49,15 +43,16 @@
transition: transform 400ms ease;
background-color: #1f1f1fbb;
padding: 0.5rem;
border-radius: 1rem;
border-radius: 0.5rem;
transition: opacity 400ms ease, transform 400ms ease;
}

.trendingEntries p {
text-align: center;
margin: 5px auto;
width: 140px;
font-family: "Atkinson Hyperlegible";
width: auto;
max-width: 180px;
font-family: "Lexend Deca", serif;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
Expand All @@ -73,6 +68,5 @@
}

.trendingImage {
border-radius: 1rem;
aspect-ratio: auto;
}
border-radius: 0.5rem;
}
Loading

0 comments on commit df1e72a

Please sign in to comment.