Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions imdb_frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Logo } from './Logo';
import Homepage from "./components/Homepage/homepage"
import { Video } from './trailor&FooterComponent/video'
import { Footer } from './trailor&FooterComponent/footer'
import { Search } from './searchBar/search';
// import { Search } from './searchBar/search';
import {Routes, Route} from "react-router-dom"
import SignUp from './components/Signup/singup';
import Createaccount from './components/Createaccount/createaccount';
Expand All @@ -20,7 +20,7 @@ function App() {
<ChakraProvider theme={theme}>

{/* { video()} */}
<Search />
{/* <Search /> */}
<Routes>
<Route path='/' element={<Homepage/>} > </Route>
<Route path='/trailer/:id' element={<Video/>} ></Route>
Expand All @@ -32,7 +32,7 @@ function App() {


{ Footer() }

</ChakraProvider>
);
}
Expand Down
2 changes: 2 additions & 0 deletions imdb_frontend/src/Components/Homepage/homepage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useNavigate } from "react-router";
import { topPicks,users } from "../../Redux/state";
import {Video} from "../../trailor&FooterComponent/video"
import css from "./homepage.css"
import Search from "../../searchBar/search"
const Homepage =() => {
const user = useSelector((store)=>store.user)
// console.log("user",user.subscribed)
Expand Down Expand Up @@ -139,6 +140,7 @@ useEffect(()=>{
let idx = Math.floor(Math. random () * (11 - 1) + 1)
return(
<>
<Search/>
<HStack alignItems="flex-start" marginTop="5vh" margin="5vh 7%">
<div>
<img className="courouselImg" src={currentSlide} alt="" />
Expand Down
5 changes: 5 additions & 0 deletions imdb_frontend/src/components/Createaccount/createaccount.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

.all_conatiner{
background-color: white;
margin-top: 50px;
}

.container_creareaccount{
height: 600px;
Expand All @@ -11,6 +15,7 @@
justify-content: center;
/* z-index: 1; */



}
.fromcontainer{
Expand Down
3 changes: 3 additions & 0 deletions imdb_frontend/src/components/Createaccount/createaccount.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import { useToast } from '@chakra-ui/react'
import { IconButton } from '@chakra-ui/icons'
import { Routes, Route ,useNavigate,Link} from "react-router-dom";
import Search from "../../searchBar/search"
import { useState } from "react";


Expand Down Expand Up @@ -227,6 +228,7 @@ handletogocreate()
}

return (
<div className="all_conatiner">
<div className="container_creareaccount">
<div className="fromcontainer">
<img src={imdblogo} alt="" />
Expand Down Expand Up @@ -279,6 +281,7 @@ handletogocreate()
</div>
</div>
</div>
</div>
)
}

Expand Down
2 changes: 1 addition & 1 deletion imdb_frontend/src/components/Login/login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function Login() {
.then((res)=>{
console.log(res)
dispatch(users(res))

navigate("/")
})
.catch((error)=>console.log(error))
}
Expand Down
4 changes: 2 additions & 2 deletions imdb_frontend/src/components/Signup/signup.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ body{
height: 650px;
width: 100%;
background-color: rgb(235, 225, 212);
border: 1px solid red;
/* border: 1px solid red; */
margin: 0% !important;
padding: 0%;
}
Expand Down Expand Up @@ -183,7 +183,7 @@ color: black;
}
.recenthistory{
height: 50px;
border: 1px solid green;
/* border: 1px solid green; */
width: 95%;
margin: auto;
display: flex;
Expand Down
2 changes: 2 additions & 0 deletions imdb_frontend/src/components/Signup/singup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import google from './googlelogo.png';
import apple from './apple.png';
import amazon from './amazonlogo.png';
import { useNavigate } from 'react-router-dom';
import Search from "../../searchBar/search"

import { Link } from 'react-router-dom';

Expand All @@ -16,6 +17,7 @@ const SignUp = () => {

return (
<div>
<Search/>
<div className="container">
<div className="Middle_container">
<div className="sigup_container">
Expand Down
5 changes: 3 additions & 2 deletions imdb_frontend/src/searchBar/search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { useEffect, useState, useRef } from 'react';
import { InputContent } from './inputContent';
import Login from '../components/Login/login';
// import abc from ''
export function Search() {
function Search() {
// const initialFocusRef = useRef()
const [inputGiven, setInputGiven] = useState('');
const [movieList, setMovieList] = useState([]);
Expand Down Expand Up @@ -137,4 +137,5 @@ export function Search() {
</Box>
</>
)
}
}
export default Search
3 changes: 3 additions & 0 deletions imdb_frontend/src/trailor&FooterComponent/Footer.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@


.footerFirstLine{
display: grid;
grid-template-columns: repeat(4,1fr);
width: 15vw;
margin: auto;
margin-top: 5vh;

}
.footerFirstLine > img, .footerFirstLine > a{
width: 2vw;
Expand Down
4 changes: 2 additions & 2 deletions imdb_frontend/src/trailor&FooterComponent/footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import './Footer.css'
export const Footer = () => {
return (
<>
<div className='footer_container'>

<div className='footerFirstLine'>
<a href='https://facebook.com/imdb'> <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFGUlEQVR4nOWb+28UVRTHBwz+5At0d7aE+CTR8JNGQeKfYDREBCX+gFFMEw2RiO3cIUAXiA8sFv3BH0wkJpBWiDEYEvyBGGGtVEBAK48mNZEYKoQKbefe6T6m3en1nNmltnbZncedOzvdk5xkX3P3fL5zz9y3ooRs6rtmMqWxVeDpFKH7VcLOpgi7pGpsGN6PoZdew2f4nca+gtdt4C/itWHHF4qldGMpQO1OafQ8AE4ADPfncC2UAcJ0pFqNp6LmqmoL0jfugmBbVEL7/ANXd1WjF/E/7m29fmfUvJO26B1jAQS2vVyNQwGfKQQbBqG33a8b8yNE53Ogiq4F+H9kgc8QgrChJKEblDSfKxU9oRuLIYCeqMArpMbxRIvxiBT4JsJeAOVHooau4EzVzDXhkUM1A/BP6gC0Vlp0CE+JJWl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4YhwK74iIArvlhzELgJ610YGJX3Qvg5LzL5s6PBTkyE6oAGqPhHpmZYthPwL239SIAPOx+lHZo6j9zDlOsA78RlQD433AjXg+1ytcyHECpOiNudpkKFIBBd31n1X2/sg2DwUkV53hraALQC1D+2/PJ8N1R81a1pEaX46Tj/7ff+ROAngP/QNXp01Fz+bJEy2gK8vR5PF8MbF+DnwS/Aj7MSydEiuXX+NkJ/I1zFrmVPofXhh3fv5fxLIi8D7TvAAAAAElFTkSuQmCC" alt="" /></a>
Expand All @@ -28,7 +28,7 @@ export const Footer = () => {
</div>
<h2 className='FooterH2'>an amazon company</h2>
<p className='FooterP2'>©1990-2022 by IMDb.com, Inc.</p>
</>
</div>
)
}

Expand Down
2 changes: 2 additions & 0 deletions imdb_frontend/src/trailor&FooterComponent/video.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
import './video.css';
import { useNavigate, useParams } from 'react-router';
import { useSelector } from 'react-redux';
import Search from '../searchBar/search';

export const Video = () => {
let { id } = useParams();
Expand All @@ -24,6 +25,7 @@ export const Video = () => {
console.log(data);
return (
<>
<Search />
{/* <Box bg='tomato' w='100%' p={4} color='white'>
This is the Box
</Box> */}
Expand Down