diff --git a/frontend/src/components/Footer.jsx b/frontend/src/components/Footer.jsx index e5ee49a..0ffd0c0 100644 --- a/frontend/src/components/Footer.jsx +++ b/frontend/src/components/Footer.jsx @@ -4,7 +4,7 @@ import { AiFillLinkedin, AiFillGithub, AiFillRocket } from 'react-icons/ai'; function Footer() { return ( -
+

-
+
@@ -170,7 +170,7 @@ function MediaCard({ mediaArr, genres, media, credits, suggested, addMedia, trai Overview: {mediaArr.overview ? mediaArr.overview : 'No overview found'}
-
+

User Rating

@@ -196,7 +196,7 @@ function MediaCard({ mediaArr, genres, media, credits, suggested, addMedia, trai
{/* Media cast */} -

Casting

+

Casting

{credits.length === 0 ? (

No Cast Members

@@ -236,7 +236,7 @@ function MediaCard({ mediaArr, genres, media, credits, suggested, addMedia, trai srcSet={`${credit.profile_path === null ? NOIMAGE : POSTER_IMG + credit.profile_path}.jpeg`} />
-

Suggestions

+

Suggestions

{suggested.length === 0 ? (

No Suggested Movies

@@ -314,7 +314,7 @@ function MediaCard({ mediaArr, genres, media, credits, suggested, addMedia, trai srcSet={`${media.backdrop_path === null ? NOIMAGE : BACKDROP_IMG + media.backdrop_path}.jpeg`} /> Home -
  • navigate('/')} - > +
  • Movies
  • -
  • navigate('/')} - > +
  • TV
    {movieData.map((data) => (
  • handleSearchRoute(`/${typeParam}/${data.id}`)} >
    diff --git a/frontend/src/index.css b/frontend/src/index.css index 75c0f44..ffe6b37 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -5,12 +5,21 @@ html { -webkit-tap-highlight-color: transparent; } - +.swiper-button-next { + background-color: white; + opacity: 70%; + border-radius: 100%; +} +.swiper-button-prev { + background-color: white; + opacity: 70%; + border-radius: 100%; +} .swiper-button-next::after { - font-size: 40px !important; - color: white; + font-size: 30px !important; + color: black; } .swiper-button-prev::after { - font-size: 40px !important; - color: white; + font-size: 30px !important; + color: black; } diff --git a/frontend/src/pages/Home.jsx b/frontend/src/pages/Home.jsx index dfc95e4..6d55d1a 100644 --- a/frontend/src/pages/Home.jsx +++ b/frontend/src/pages/Home.jsx @@ -1,10 +1,10 @@ import React from 'react'; -import Header from '../components/home components/Header'; -import NowPlaying from '../components/home components/NowPlaying'; -import TrendingMovieCarousel from '../components/home components/TrendingMovieCarousel'; -import TrendingTvCarousel from '../components/home components/TrendingTvCarousel'; -import ScifiMovieCarousel from '../components/home components/ScifiMovieCarousel'; -import FamilyMovieCarousel from '../components/home components/FamilyMovieCarousel'; +import Header from '../views/Header'; +import NowPlaying from '../views/NowPlaying'; +import TrendingMovieCarousel from '../views/TrendingMovieCarousel'; +import TrendingTvCarousel from '../views/TrendingTvCarousel'; +import ScifiMovieCarousel from '../views/ScifiMovieCarousel'; +import FamilyMovieCarousel from '../views/FamilyMovieCarousel'; function MovieHome() { return ( diff --git a/frontend/src/pages/Login.jsx b/frontend/src/pages/Login.jsx index 45dd74a..569e96f 100644 --- a/frontend/src/pages/Login.jsx +++ b/frontend/src/pages/Login.jsx @@ -16,7 +16,6 @@ function LogIn() { email: '', password: '', }); - const [showPassword, setShowPassword] = useState(false); const { email, password } = form; // Updates data if any fields are changed. @@ -64,25 +63,21 @@ function LogIn() { value={email} onChange={handleChange} placeholder="Email" + autoComplete="email" className="p-1.5" required /> - - - */} +
    + +
    +

    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 }) => ( - + +
    +

    {original_title}

    +
    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 }) => ( - + +
    +

    {original_title}

    +
    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 }) => ( - + {`${title +
    +

    {original_name}

    +
    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