Commit 0c42cc21 authored by Yashmika Anusara's avatar Yashmika Anusara

Merge branch 'IT20030230' of http://gitlab.sliit.lk/23-064/23-064

parents ec98c398 2caf3a45
import React from "react";
import Backdrop from "@mui/material/Backdrop";
import CircularProgress from "@mui/material/CircularProgress";
import Typography from "@mui/material/Typography";
export default function Loader({ openState, message }) {
return (
<div>
<Backdrop
sx={{ color: "#fff", zIndex: (theme) => theme.zIndex.drawer + 1 }}
open={openState}
>
<div style={{ textAlign: "center" }}>
<CircularProgress color="inherit" sx={{ fontWeight: "bold" }} />
<Typography variant="h5" sx={{ fontWeight: "bold" }}>
{message}
</Typography>
</div>
</Backdrop>
</div>
);
}
import React from "react"; import React from "react";
import "../css/side-navigation.css"; import "../css/side-navigation.css";
import { NavLink } from "react-router-dom"; import { NavLink } from "react-router-dom";
import HomeOutlinedIcon from "@mui/icons-material/HomeOutlined";
import DashboardOutlinedIcon from "@mui/icons-material/DashboardOutlined"; import DashboardOutlinedIcon from "@mui/icons-material/DashboardOutlined";
import MovieOutlinedIcon from "@mui/icons-material/MovieOutlined"; import MovieOutlinedIcon from "@mui/icons-material/MovieOutlined";
...@@ -20,10 +19,10 @@ function SideNavigation() { ...@@ -20,10 +19,10 @@ function SideNavigation() {
Movie Analysis Movie Analysis
</div> </div>
</NavLink> </NavLink>
<NavLink to="/home/actor-identify" className="side-nav-link"> <NavLink to="/home/actor-marketing-analysis" className="side-nav-link">
<div className="side-nav-link-wrapper"> <div className="side-nav-link-wrapper">
<MovieOutlinedIcon sx={{ marginRight: "15px" }} /> <MovieOutlinedIcon sx={{ marginRight: "15px" }} />
Actor Identify Actor & Marketing Analysis
</div> </div>
</NavLink> </NavLink>
<NavLink to="/home/pose-identify" className="side-nav-link"> <NavLink to="/home/pose-identify" className="side-nav-link">
......
.actor-marketing-container {
height: 88vh;
width: 79.5%;
margin-left: auto;
margin-right: 0;
overflow: auto;
/* background-color: yellowgreen; */
}
.actor-marketing-title {
padding-top: 3%;
font-size: 23px;
font-weight: 500;
font-family: system-ui;
}
.actor-marketing-input-container {
padding-top: 3%;
}
.actor-marketing-button-container {
display: flex;
justify-content: center;
}
\ No newline at end of file
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
margin-left: auto; margin-left: auto;
margin-right: 0; margin-right: 0;
} }
.movie-page-container-title { .movie-page-container-title {
font-size: 23px; font-size: 23px;
font-weight: 500; font-weight: 500;
......
...@@ -21,32 +21,31 @@ ...@@ -21,32 +21,31 @@
align-items: center; align-items: center;
margin-top: 50px; margin-top: 50px;
color: white; color: white;
font-weight:500; font-weight: 500;
font-size: 16px; font-size: 16px;
} }
.active .side-nav-link-wrapper { .active .side-nav-link-wrapper {
background-color: white; background-color: white;
color: #5143B8; color: #5143b8;
position: relative; position: relative;
} }
.active .side-nav-link-wrapper:before { .active .side-nav-link-wrapper:before {
content:''; content: "";
position: absolute; position: absolute;
top:-30px; top: -30px;
right:0; right: 0;
width: 30px; width: 30px;
height: 30px; height: 30px;
border-radius: 50%; border-radius: 50%;
box-shadow: 15px 15px 0 rgb(255, 255, 255); box-shadow: 15px 15px 0 rgb(255, 255, 255);
} }
.active .side-nav-link-wrapper:after { .active .side-nav-link-wrapper:after {
content:''; content: "";
position: absolute; position: absolute;
bottom:-30px; bottom: -30px;
right:0; right: 0;
width: 30px; width: 30px;
height: 30px; height: 30px;
border-radius: 50%; border-radius: 50%;
box-shadow: 15px -15px 0 rgb(255, 255, 255); box-shadow: 15px -15px 0 rgb(255, 255, 255);
} }
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
width: 100%; width: 100%;
height: 12vh; height: 12vh;
display: flex; display: flex;
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
} }
.top-nav-logo-container { .top-nav-logo-container {
width: 18%; width: 18%;
...@@ -18,7 +19,7 @@ ...@@ -18,7 +19,7 @@
gap: 50px; gap: 50px;
padding-left: 50px; padding-left: 50px;
} }
.top-nav-link-text { .top-nav-link-text {
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
...@@ -47,31 +48,30 @@ ...@@ -47,31 +48,30 @@
width: 30%; width: 30%;
background-color: #5143b8; background-color: #5143b8;
border-bottom-left-radius: 50px; border-bottom-left-radius: 50px;
display:flex; display: flex;
align-items:center; align-items: center;
justify-content:space-evenly justify-content: space-evenly;
} }
.top-nav-search-container-wrapper{ .top-nav-search-container-wrapper {
width: 280px; width: 280px;
height: 40px; height: 40px;
background-color: #46399E; background-color: #46399e;
border-radius: 20px; border-radius: 20px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content:space-evenly; justify-content: space-evenly;
} }
.top-nav-search{ .top-nav-search {
width: 200px; width: 200px;
height:30px; height: 30px;
border: none; border: none;
background-color: transparent; background-color: transparent;
outline: none; outline: none;
color:white; color: white;
} }
::placeholder{ ::placeholder {
color:white color: white;
} }
.profile-picture{ .profile-picture {
border-radius: 50%; border-radius: 50%;
} }
\ No newline at end of file
import React, { useState } from "react";
import "../css/actor-marketing-analysis.css";
import Box from "@mui/material/Box";
import TextField from "@mui/material/TextField";
import InputLabel from "@mui/material/InputLabel";
import MenuItem from "@mui/material/MenuItem";
import FormControl from "@mui/material/FormControl";
import Select from "@mui/material/Select";
import { Button } from "@mui/material";
import Loader from "../components/Loader";
import SendIcon from "@mui/icons-material/Send";
import { createTheme, ThemeProvider } from "@mui/material/styles";
export default function ActorMarketingAnalysis() {
const [loaderState, setLoaderState] = useState(false);
const [loaderMessage, setLoaderMessage] = useState(false);
const theme = createTheme({
palette: {
primary: {
main: "#5143b8",
},
},
});
const submitHandler = () => {
setLoaderState(true);
setLoaderMessage("Hi");
};
return (
<div className="actor-marketing-container">
<Loader openState={loaderState} message={loaderMessage} />
<div className="actor-marketing-title">
Actor & Film Marketing Analysis
</div>
<div className="actor-marketing-input-container">
<ThemeProvider theme={theme}>
<Box
component="form"
sx={{
"& .MuiTextField-root": { m: 1, width: "31%" },
}}
noValidate
autoComplete="off"
>
<div>
<TextField label="Film Trail Name" color="primary" required />
<TextField label="Film Director Name" color="primary" required />
<TextField label="Film Director Email" color="primary" required />
</div>
</Box>
<Box
component="form"
sx={{
"& .MuiTextField-root": { m: 1, width: "47.2%" },
}}
noValidate
autoComplete="off"
>
<div>
<FormControl sx={{ m: 1, width: "47.2%" }}>
<InputLabel color="primary">Film Analysis Type</InputLabel>
<Select
color="primary"
// value={age}
label="Film Analysis Type"
// onChange={handleChange}
required
>
<MenuItem value={"AAO"}>Actor Analysis Only</MenuItem>
<MenuItem value={"FMAO"}>
Film Marketing Analysis Only
</MenuItem>
<MenuItem value={"AFMA"}>
Actor & Film Marketing Analysis
</MenuItem>
</Select>
</FormControl>
<TextField
label="Film Director Name"
color="primary"
type="file"
InputLabelProps={{
shrink: true,
}}
/>
</div>
</Box>
<center>
<Box sx={{ "& > button": { m: 1, width: "50%" } }}>
<Button
onClick={submitHandler}
variant="contained"
color="primary"
endIcon={<SendIcon />}
>
Send
</Button>
</Box>
</center>
</ThemeProvider>
</div>
<div>
<h1>sdsdasdsadasdasda</h1>
</div>
</div>
);
}
...@@ -8,6 +8,7 @@ import Contact from "../pages/contact"; ...@@ -8,6 +8,7 @@ import Contact from "../pages/contact";
import Dashboard from "../pages/dashboard"; import Dashboard from "../pages/dashboard";
import MovieAnalysis from "../pages/movie-analysis"; import MovieAnalysis from "../pages/movie-analysis";
import ActorMarketingAnalysis from "../pages/actor-marketing-analysis";
function PageRoutes() { function PageRoutes() {
return ( return (
...@@ -21,6 +22,10 @@ function PageRoutes() { ...@@ -21,6 +22,10 @@ function PageRoutes() {
<Route path="/home" element={<SubApp />}> <Route path="/home" element={<SubApp />}>
<Route path="/home/dashboard" element={<Dashboard />} /> <Route path="/home/dashboard" element={<Dashboard />} />
<Route path="/home/movie-analysis" element={<MovieAnalysis />} /> <Route path="/home/movie-analysis" element={<MovieAnalysis />} />
<Route
path="/home/actor-marketing-analysis"
element={<ActorMarketingAnalysis />}
/>
</Route> </Route>
<Route path="/about" element={<Contact />} /> <Route path="/about" element={<Contact />} />
<Route path="/contact" element={<About />} /> <Route path="/contact" element={<About />} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment