aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorreal-zephex <[email protected]>2024-03-26 13:21:55 +0530
committerreal-zephex <[email protected]>2024-03-26 13:21:55 +0530
commit3acac648ad6f7c220a48ff9f92f42e814c2097ab (patch)
tree894bd3085ca1021566ff68577136305c79bd2ea5 /src
parentidek (diff)
downloaddramalama-3acac648ad6f7c220a48ff9f92f42e814c2097ab.tar.xz
dramalama-3acac648ad6f7c220a48ff9f92f42e814c2097ab.zip
restructured files
Diffstat (limited to 'src')
-rw-r--r--src/app/anime/[id]/[animeId]/page.jsx (renamed from src/app/video/[animeId]/page.jsx)2
-rw-r--r--src/app/anime/[id]/[animeId]/video.css (renamed from src/app/video/video.css)0
-rw-r--r--src/app/anime/[id]/info.css (renamed from src/app/info/info.css)0
-rw-r--r--src/app/anime/[id]/loading.css (renamed from src/app/info/loading.css)0
-rw-r--r--src/app/anime/[id]/loading.jsx (renamed from src/app/info/loading.jsx)0
-rw-r--r--src/app/anime/[id]/page.jsx (renamed from src/app/info/[id]/page.jsx)4
-rw-r--r--src/app/anime/page.jsx6
-rw-r--r--src/app/anime/recent/page.jsx (renamed from src/app/recent/page.jsx)2
-rw-r--r--src/app/anime/recent/recent.css (renamed from src/app/recent/recent.css)0
-rw-r--r--src/app/anime/search/components/fetchInfo.js (renamed from src/app/search/components/fetchInfo.js)0
-rw-r--r--src/app/anime/search/components/fetchedInfo.js (renamed from src/app/search/components/fetchedInfo.js)2
-rw-r--r--src/app/anime/search/page.jsx (renamed from src/app/search/page.jsx)0
-rw-r--r--src/app/anime/search/search.css (renamed from src/app/search/search.css)0
-rw-r--r--src/app/anime/top-airing/page.jsx (renamed from src/app/top-airing/page.jsx)2
-rw-r--r--src/app/anime/top-airing/trending.css (renamed from src/app/top-airing/trending.css)0
-rw-r--r--src/app/anime/video/loading.css (renamed from src/app/video/loading.css)0
-rw-r--r--src/app/anime/video/loading.jsx (renamed from src/app/video/loading.jsx)0
-rw-r--r--src/app/components/footer/footer.module.css (renamed from src/app/footer/footer.module.css)0
-rw-r--r--src/app/components/footer/page.jsx (renamed from src/app/footer/page.jsx)21
-rw-r--r--src/app/components/header/header.jsx (renamed from src/app/header/header.jsx)0
-rw-r--r--src/app/info/page.jsx11
-rw-r--r--src/app/layout.jsx2
-rw-r--r--src/app/manga/page.jsx1
-rw-r--r--src/app/page.jsx2
24 files changed, 32 insertions, 23 deletions
diff --git a/src/app/video/[animeId]/page.jsx b/src/app/anime/[id]/[animeId]/page.jsx
index c0339f7..d59b0a0 100644
--- a/src/app/video/[animeId]/page.jsx
+++ b/src/app/anime/[id]/[animeId]/page.jsx
@@ -5,7 +5,7 @@ import {
PlyrLayout,
plyrLayoutIcons,
} from "@vidstack/react/player/layouts/plyr";
-import "../video.css";
+import "./video.css";
import { redirect } from "next/navigation";
export default async function Video({ params }) {
diff --git a/src/app/video/video.css b/src/app/anime/[id]/[animeId]/video.css
index 5ccb58f..5ccb58f 100644
--- a/src/app/video/video.css
+++ b/src/app/anime/[id]/[animeId]/video.css
diff --git a/src/app/info/info.css b/src/app/anime/[id]/info.css
index 2b070d0..2b070d0 100644
--- a/src/app/info/info.css
+++ b/src/app/anime/[id]/info.css
diff --git a/src/app/info/loading.css b/src/app/anime/[id]/loading.css
index aa3a519..aa3a519 100644
--- a/src/app/info/loading.css
+++ b/src/app/anime/[id]/loading.css
diff --git a/src/app/info/loading.jsx b/src/app/anime/[id]/loading.jsx
index dfa397c..dfa397c 100644
--- a/src/app/info/loading.jsx
+++ b/src/app/anime/[id]/loading.jsx
diff --git a/src/app/info/[id]/page.jsx b/src/app/anime/[id]/page.jsx
index dda7a49..3e2b1f0 100644
--- a/src/app/info/[id]/page.jsx
+++ b/src/app/anime/[id]/page.jsx
@@ -1,4 +1,4 @@
-import "../info.css";
+import "./info.css";
import Image from "next/image";
import Link from "next/link";
@@ -28,7 +28,7 @@ export default async function AnimeInfo({ params }) {
<div className="buttonContainer">
{info &&
info.episodes.map((item, index) => (
- <Link href={`/video/${item.id}`} key={index}>
+ <Link href={`/anime/watch/${item.id}`} key={index}>
<button className="dramaButton">
{item.number}
</button>
diff --git a/src/app/anime/page.jsx b/src/app/anime/page.jsx
index 759619d..625dd83 100644
--- a/src/app/anime/page.jsx
+++ b/src/app/anime/page.jsx
@@ -1,7 +1,7 @@
import "./anime.css";
-import Trending from "../top-airing/page";
-import Releases from "../recent/page";
-import Input from "../search/page";
+import Trending from "./top-airing/page";
+import Releases from "./recent/page";
+import Input from "./search/page";
export default async function Anime() {
return (
diff --git a/src/app/recent/page.jsx b/src/app/anime/recent/page.jsx
index 7081e46..779f0d4 100644
--- a/src/app/recent/page.jsx
+++ b/src/app/anime/recent/page.jsx
@@ -14,7 +14,7 @@ export default async function Releases() {
data.results.map((item, index) => (
<Link
key={index}
- href={`/info/${item.id}`}
+ href={`/anime/${item.id}`}
style={{ textDecoration: "none" }}
>
<div className="trendingEntries">
diff --git a/src/app/recent/recent.css b/src/app/anime/recent/recent.css
index 7d17143..7d17143 100644
--- a/src/app/recent/recent.css
+++ b/src/app/anime/recent/recent.css
diff --git a/src/app/search/components/fetchInfo.js b/src/app/anime/search/components/fetchInfo.js
index 07b203d..07b203d 100644
--- a/src/app/search/components/fetchInfo.js
+++ b/src/app/anime/search/components/fetchInfo.js
diff --git a/src/app/search/components/fetchedInfo.js b/src/app/anime/search/components/fetchedInfo.js
index aa03437..17c9673 100644
--- a/src/app/search/components/fetchedInfo.js
+++ b/src/app/anime/search/components/fetchedInfo.js
@@ -10,7 +10,7 @@ export default async function fetchedInfo(data) {
data.results.map((item, index) => (
<Link
key={index}
- href={`/info/${item.id}`}
+ href={`/anime/${item.id}`}
style={{ textDecoration: "none" }}
>
<div className="anime">
diff --git a/src/app/search/page.jsx b/src/app/anime/search/page.jsx
index 75f09bd..75f09bd 100644
--- a/src/app/search/page.jsx
+++ b/src/app/anime/search/page.jsx
diff --git a/src/app/search/search.css b/src/app/anime/search/search.css
index 8afb508..8afb508 100644
--- a/src/app/search/search.css
+++ b/src/app/anime/search/search.css
diff --git a/src/app/top-airing/page.jsx b/src/app/anime/top-airing/page.jsx
index e68010f..5536870 100644
--- a/src/app/top-airing/page.jsx
+++ b/src/app/anime/top-airing/page.jsx
@@ -14,7 +14,7 @@ export default async function Trending() {
data.results.map((item, index) => (
<Link
key={index}
- href={`/info/${item.id}`}
+ href={`/anime/${item.id}`}
style={{ textDecoration: "none" }}
>
<div className="trendingEntries">
diff --git a/src/app/top-airing/trending.css b/src/app/anime/top-airing/trending.css
index e69de29..e69de29 100644
--- a/src/app/top-airing/trending.css
+++ b/src/app/anime/top-airing/trending.css
diff --git a/src/app/video/loading.css b/src/app/anime/video/loading.css
index aa3a519..aa3a519 100644
--- a/src/app/video/loading.css
+++ b/src/app/anime/video/loading.css
diff --git a/src/app/video/loading.jsx b/src/app/anime/video/loading.jsx
index dfa397c..dfa397c 100644
--- a/src/app/video/loading.jsx
+++ b/src/app/anime/video/loading.jsx
diff --git a/src/app/footer/footer.module.css b/src/app/components/footer/footer.module.css
index 8547873..8547873 100644
--- a/src/app/footer/footer.module.css
+++ b/src/app/components/footer/footer.module.css
diff --git a/src/app/footer/page.jsx b/src/app/components/footer/page.jsx
index 34d6101..f3c9fc7 100644
--- a/src/app/footer/page.jsx
+++ b/src/app/components/footer/page.jsx
@@ -16,6 +16,27 @@ export default async function Footer() {
>
Github
</a>
+ <a
+ style={{ color: "#A3BE8C" }}
+ href="https://dramalama-zephex.koyeb.app"
+ target="_new"
+ >
+ Koyeb
+ </a>
+ <a
+ style={{ color: "#EBCB8B" }}
+ href="https://dramalama.vercel.app"
+ target="_new"
+ >
+ Vercel
+ </a>
+ <a
+ style={{ color: "#BF616A" }}
+ href="https://dramalama.netlify.app"
+ target="_new"
+ >
+ Netlify
+ </a>
</p>
</div>
);
diff --git a/src/app/header/header.jsx b/src/app/components/header/header.jsx
index 22798b4..22798b4 100644
--- a/src/app/header/header.jsx
+++ b/src/app/components/header/header.jsx
diff --git a/src/app/info/page.jsx b/src/app/info/page.jsx
deleted file mode 100644
index 9004ade..0000000
--- a/src/app/info/page.jsx
+++ /dev/null
@@ -1,11 +0,0 @@
-import "./info.css";
-
-export default function Info() {
- return (
- <div className="infoPageContainer">
- <p>
- This is the anime info page. This page will display information about the queried anime when anime id is passed along the url.
- </p>
- </div>
- );
-}
diff --git a/src/app/layout.jsx b/src/app/layout.jsx
index 3fe6724..26d573d 100644
--- a/src/app/layout.jsx
+++ b/src/app/layout.jsx
@@ -1,6 +1,6 @@
import { Inter } from "next/font/google";
import "./globals.css";
-import Header from "./header/header";
+import Header from "./components/header/header";
import { SpeedInsights } from "@vercel/speed-insights/next";
import { Analytics } from "@vercel/analytics/react";
diff --git a/src/app/manga/page.jsx b/src/app/manga/page.jsx
index 762ae7f..7f1f9cb 100644
--- a/src/app/manga/page.jsx
+++ b/src/app/manga/page.jsx
@@ -19,7 +19,6 @@ export default async function Manga() {
width={480}
height={260}
alt="Haikyu"
- unoptimized
/>
</div>
<div className={styles.VerticalImageContainer}>
diff --git a/src/app/page.jsx b/src/app/page.jsx
index f9c0e51..31391ad 100644
--- a/src/app/page.jsx
+++ b/src/app/page.jsx
@@ -1,6 +1,6 @@
import Image from "next/image";
import styles from "./page.module.css";
-import Footer from "./footer/page";
+import Footer from "./components/footer/page";
export default function Home() {
return (