@@ -206,6 +205,6 @@ export default function Account() {
);
}else{
- {window.location.href='/login'}
+ {window.location.href='/'}
}
}
\ No newline at end of file
diff --git a/flask-react/src/components/AddReview.js b/flask-react/src/components/AddReview.js
index 2acd6f2a..b3034e5c 100644
--- a/flask-react/src/components/AddReview.js
+++ b/flask-react/src/components/AddReview.js
@@ -163,7 +163,11 @@ const useStyles = makeStyles((theme) => ({
position: 'fixed',
right: '40px',
bottom: '40px',
- cursor: 'pointer'
+ cursor: 'pointer',
+ '&:hover': {
+ transform: 'scale(1.8)',
+ transition:'transform .25s ease-in-out',
+ },
}
}));
@@ -174,7 +178,7 @@ export default function AddReview() {
const [userReview,setUserReview] = useState("");
var today = new Date();
var dd = String(today.getDate()).padStart(2, '0');
- var mm = String(today.getMonth() + 1).padStart(2, '0'); //January is 0!
+ var mm = String(today.getMonth() + 1).padStart(2, '0');
var yyyy = today.getFullYear();
today = dd + '/' + mm + '/' + yyyy;
const userID=localStorage.getItem('userid')
diff --git a/flask-react/src/components/MoviesRecommended.js b/flask-react/src/components/MoviesRecommended.js
new file mode 100644
index 00000000..ee317ddc
--- /dev/null
+++ b/flask-react/src/components/MoviesRecommended.js
@@ -0,0 +1,78 @@
+import React, {useEffect,useState} from 'react';
+import NavBar from './NavBar.js';
+import { List, Header, Rating } from "semantic-ui-react";
+import { fade, makeStyles } from '@material-ui/core/styles';
+
+const useStyles = makeStyles((theme) => ({
+ title: {
+ color: 'red',
+ fontSize: '12pt',
+ position: 'relative',
+ top: '0px',
+ textAlign: 'center',
+ letterSpacing: '3px',
+ },
+ container: {
+ width: 'auto',
+ height: '300px',
+ display: 'flex',
+ flexWrap: 'wrap',
+ marginLeft: '2.5px',
+ rowGap: '5px',
+ },
+ cover: {
+ width:'200px',
+ height:'280px',
+ position: 'relative',
+ },
+ movieCard: {
+ marginBottom: '40px',
+ marginRight: '2.5px',
+ marginLeft: '2.5px',
+ width: '200px',
+ height: '280px',
+ position: 'relative',
+ '&:hover>div': {
+ opacity:1,
+ transition:'opacity .25s ease-in-out',
+ },
+ '&:hover>img': {
+ opacity:0.1,
+ transition:'opacity .25s ease-in-out',
+ },
+ },
+ movieCardHover: {
+ textAlign: 'justify',
+ position: 'absolute',
+ top: '3px',
+ color: 'white',
+ margin: '0px 10px',
+ fontSize: '10pt',
+ opacity: '0',
+ cursor:'pointer'
+ }
+}));
+
+export const MoviesRecommended = ({ movies }) => {
+ const classes = useStyles();
+ return (
+
+ {movies.map(movie => {
+ return (
+
{window.location.href='/movies/'+movie.id}}>
+
+
+
+
Length: {movie.movieLength}
+
Release: {movie.release}
+
Category: {movie.category}
+
{movie.description}
+
+
+
+ )
+ })}
+
+
+ )
+}
diff --git a/flask-react/src/components/NavBar.js b/flask-react/src/components/NavBar.js
index fdd99d70..416ca627 100644
--- a/flask-react/src/components/NavBar.js
+++ b/flask-react/src/components/NavBar.js
@@ -100,7 +100,11 @@ const useStyles = makeStyles((theme) => ({
marginTop: '20px',
fontSize: '15pt',
textAlign: 'center',
- cursor:'pointer'
+ cursor:'pointer',
+ '&:hover': {
+ textDecoration: 'underline',
+ transition:'backgroundColor color .25s ease-in-out',
+ },
},
categories: {
fontSize: '17pt',
@@ -127,6 +131,18 @@ const useStyles = makeStyles((theme) => ({
zIndex: '1',
top: '0'
},
+ menuIcon: {
+ '&:hover': {
+ transform: 'scale(1.4)',
+ transition:'transform .25s ease-in-out',
+ },
+ },
+ accountIcon: {
+ '&:hover': {
+ transform: 'scale(1.4)',
+ transition:'transform .25s ease-in-out',
+ },
+ },
sideAccountdiv: {
width: '280px',
height: '185px',
@@ -134,14 +150,18 @@ const useStyles = makeStyles((theme) => ({
position: 'absolute',
right: '0',
zIndex: '1',
- top: '0'
+ top: '0',
},
accountOptions: {
color: 'white',
marginTop: '20px',
fontSize: '15pt',
textAlign: 'center',
- cursor:'pointer'
+ cursor:'pointer',
+ '&:hover': {
+ textDecoration: 'underline',
+ transition:'textDecoration .25s ease-in-out',
+ },
},
closeIcon: {
color: 'white',
@@ -149,7 +169,11 @@ const useStyles = makeStyles((theme) => ({
marginTop: '20px',
marginRight: '20px',
transform: 'scale(1.8)',
- cursor:'pointer'
+ cursor:'pointer',
+ '&:hover': {
+ transform: 'scale(2.4)',
+ transition:'transform .15s ease-in-out',
+ },
},
closeIconAccount: {
color: 'white',
@@ -157,7 +181,11 @@ const useStyles = makeStyles((theme) => ({
marginLeft: '20px',
marginTop: '5px',
transform: 'scale(1.8)',
- cursor:'pointer'
+ cursor:'pointer',
+ '&:hover': {
+ transform: 'scale(2.4)',
+ transition:'transform .15s ease-in-out',
+ },
},
title: {
'&:hover': {
@@ -298,6 +326,9 @@ export default function NavBar() {
input: classes.inputInput,
}}
inputProps={{ 'aria-label': 'search' }}
+ onKeyDown={(event) => {
+ if (event.key === 'Enter'){
+ window.location=('/search/'+event.target.value)}}}
/>