+
Family Movies
{/* Swiper configuration settings for carousel */}
{loading ? (
@@ -51,34 +51,22 @@ function FamilyMovieCarousel() {
) : (
@@ -86,7 +74,7 @@ function FamilyMovieCarousel() {
{trendingFamilyData.map(({ id, poster_path, original_title, vote_average }) => (
-
) : (
-
-
Welcome
-
Grab some popcorn and
-
- Browse
- through your favorite movies and shows
-
-
- Create your own
- Watchlist
-
-
+
+
+
+
Your Ticket to the Best Films!
+
Join Our Exclusive Movie Watchlist
+
+
+
+
)}
diff --git a/frontend/src/components/home components/NowPlaying.jsx b/frontend/src/views/NowPlaying.jsx
similarity index 98%
rename from frontend/src/components/home components/NowPlaying.jsx
rename to frontend/src/views/NowPlaying.jsx
index 06399e9..bf5e83c 100644
--- a/frontend/src/components/home components/NowPlaying.jsx
+++ b/frontend/src/views/NowPlaying.jsx
@@ -6,7 +6,7 @@ import 'swiper/css';
import 'swiper/css/scrollbar';
import 'swiper/css/effect-fade';
import { EffectFade, Autoplay, Scrollbar } from 'swiper';
-import HeroSkeleton from './HeroSkeleton';
+import HeroSkeleton from './skeletons/HeroSkeleton';
function NowPlaying() {
const API_NOW_PLAYING_URL = 'https://api.themoviedb.org/3/movie/now_playing';
diff --git a/frontend/src/components/home components/ScifiMovieCarousel.jsx b/frontend/src/views/ScifiMovieCarousel.jsx
similarity index 81%
rename from frontend/src/components/home components/ScifiMovieCarousel.jsx
rename to frontend/src/views/ScifiMovieCarousel.jsx
index bfc37f6..0e8726b 100644
--- a/frontend/src/components/home components/ScifiMovieCarousel.jsx
+++ b/frontend/src/views/ScifiMovieCarousel.jsx
@@ -1,12 +1,12 @@
import React, { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
import axios from 'axios';
-import { ReviewBarABS } from '../../util/utils';
+import { ReviewBarABS } from '../util/utils';
import { Swiper, SwiperSlide } from 'swiper/react';
import 'swiper/css';
import 'swiper/css/navigation';
import { Navigation } from 'swiper';
-import CardSkeleton from './CardSkeleton';
+import CardSkeleton from './skeletons/CardSkeleton';
function ScifiMovieCarousel() {
const API_KEY = process.env.REACT_APP_TMDB_KEY;
@@ -43,8 +43,8 @@ function ScifiMovieCarousel() {
};
return (
-
-
{'Trending Movies'}
+
+
SciFi Movies
{/* Swiper configuration settings for carousel */}
{loading ? (
@@ -52,34 +52,22 @@ function ScifiMovieCarousel() {
) : (
@@ -87,7 +75,7 @@ function ScifiMovieCarousel() {
{trendingScifiData.map(({ id, poster_path, original_title, vote_average }) => (
-
+
+
diff --git a/frontend/src/components/home components/TrendingMovieCarousel.jsx b/frontend/src/views/TrendingMovieCarousel.jsx
similarity index 81%
rename from frontend/src/components/home components/TrendingMovieCarousel.jsx
rename to frontend/src/views/TrendingMovieCarousel.jsx
index 7e20461..206b4d1 100644
--- a/frontend/src/components/home components/TrendingMovieCarousel.jsx
+++ b/frontend/src/views/TrendingMovieCarousel.jsx
@@ -1,12 +1,12 @@
import React, { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
import axios from 'axios';
-import { ReviewBarABS } from '../../util/utils';
+import { ReviewBarABS } from '../util/utils';
import { Swiper, SwiperSlide } from 'swiper/react';
import 'swiper/css';
import 'swiper/css/navigation';
import { Navigation } from 'swiper';
-import CardSkeleton from './CardSkeleton';
+import CardSkeleton from './skeletons/CardSkeleton';
function TrendingMovieCarousel() {
const API_KEY = process.env.REACT_APP_TMDB_KEY;
@@ -41,8 +41,8 @@ function TrendingMovieCarousel() {
};
return (
-
-
{'Trending Movies'}
+
+
Trending Movies
{/* Swiper configuration settings for carousel */}
{loading ? (
@@ -50,34 +50,22 @@ function TrendingMovieCarousel() {
) : (
@@ -85,7 +73,7 @@ function TrendingMovieCarousel() {
{trendingMovieData.map(({ id, poster_path, original_title, vote_average }) => (
-
+
+
diff --git a/frontend/src/components/home components/TrendingTvCarousel.jsx b/frontend/src/views/TrendingTvCarousel.jsx
similarity index 76%
rename from frontend/src/components/home components/TrendingTvCarousel.jsx
rename to frontend/src/views/TrendingTvCarousel.jsx
index 349c21c..d45f22e 100644
--- a/frontend/src/components/home components/TrendingTvCarousel.jsx
+++ b/frontend/src/views/TrendingTvCarousel.jsx
@@ -1,12 +1,12 @@
import React, { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
-import { ReviewBarABS } from '../../util/utils';
+import { ReviewBarABS } from '../util/utils';
import { Swiper, SwiperSlide } from 'swiper/react';
import axios from 'axios';
import 'swiper/css';
import 'swiper/css/navigation';
import { Navigation } from 'swiper';
-import CardSkeleton from './CardSkeleton';
+import CardSkeleton from './skeletons/CardSkeleton';
function TrendingTvCarousel() {
const API_KEY = process.env.REACT_APP_TMDB_KEY;
@@ -41,8 +41,8 @@ function TrendingTvCarousel() {
};
return (
-
-
Trending Shows
+
+
Trending Shows
{/* Swiper configuration settings for carousel */}
{loading ? (
@@ -50,42 +50,30 @@ function TrendingTvCarousel() {
) : (
- {trendingTvData.map(({ id, poster_path, title, vote_average }) => (
+ {trendingTvData.map(({ id, poster_path, original_name, vote_average }) => (
-
+
+
diff --git a/frontend/src/components/WatchlistMovies.jsx b/frontend/src/views/WatchlistMovies.jsx
similarity index 100%
rename from frontend/src/components/WatchlistMovies.jsx
rename to frontend/src/views/WatchlistMovies.jsx
diff --git a/frontend/src/components/home components/CardSkeleton.jsx b/frontend/src/views/skeletons/CardSkeleton.jsx
similarity index 100%
rename from frontend/src/components/home components/CardSkeleton.jsx
rename to frontend/src/views/skeletons/CardSkeleton.jsx
diff --git a/frontend/src/components/home components/HeroSkeleton.jsx b/frontend/src/views/skeletons/HeroSkeleton.jsx
similarity index 100%
rename from frontend/src/components/home components/HeroSkeleton.jsx
rename to frontend/src/views/skeletons/HeroSkeleton.jsx
diff --git a/frontend/src/components/MediaSkeleton.jsx b/frontend/src/views/skeletons/MediaSkeleton.jsx
similarity index 100%
rename from frontend/src/components/MediaSkeleton.jsx
rename to frontend/src/views/skeletons/MediaSkeleton.jsx