Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
23-064
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
23-064
23-064
Commits
cda28cef
Commit
cda28cef
authored
Aug 30, 2023
by
Yashmika Anusara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
frontend dev
parent
1d3cf1b6
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1242 additions
and
12 deletions
+1242
-12
Frontend/admin/package-lock.json
Frontend/admin/package-lock.json
+1102
-5
Frontend/admin/package.json
Frontend/admin/package.json
+3
-0
Frontend/admin/src/css/actor-marketing-analysis.css
Frontend/admin/src/css/actor-marketing-analysis.css
+72
-1
Frontend/admin/src/images/channa.png
Frontend/admin/src/images/channa.png
+0
-0
Frontend/admin/src/images/mashi.png
Frontend/admin/src/images/mashi.png
+0
-0
Frontend/admin/src/images/menna.jpg
Frontend/admin/src/images/menna.jpg
+0
-0
Frontend/admin/src/images/nadeeka.jpg
Frontend/admin/src/images/nadeeka.jpg
+0
-0
Frontend/admin/src/pages/actor-marketing-analysis.jsx
Frontend/admin/src/pages/actor-marketing-analysis.jsx
+65
-6
No files found.
Frontend/admin/package-lock.json
View file @
cda28cef
This diff is collapsed.
Click to expand it.
Frontend/admin/package.json
View file @
cda28cef
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
"version"
:
"0.1.0"
,
"version"
:
"0.1.0"
,
"private"
:
true
,
"private"
:
true
,
"dependencies"
:
{
"dependencies"
:
{
"@amcharts/amcharts4"
:
"^4.10.38"
,
"@emotion/react"
:
"^11.11.1"
,
"@emotion/react"
:
"^11.11.1"
,
"@emotion/styled"
:
"^11.11.0"
,
"@emotion/styled"
:
"^11.11.0"
,
"@mui/icons-material"
:
"^5.14.6"
,
"@mui/icons-material"
:
"^5.14.6"
,
...
@@ -11,9 +12,11 @@
...
@@ -11,9 +12,11 @@
"@testing-library/react"
:
"^13.4.0"
,
"@testing-library/react"
:
"^13.4.0"
,
"@testing-library/user-event"
:
"^13.5.0"
,
"@testing-library/user-event"
:
"^13.5.0"
,
"axios"
:
"^1.5.0"
,
"axios"
:
"^1.5.0"
,
"chart.js"
:
"^4.4.0"
,
"install"
:
"^0.13.0"
,
"install"
:
"^0.13.0"
,
"npm"
:
"^9.8.1"
,
"npm"
:
"^9.8.1"
,
"react"
:
"^18.2.0"
,
"react"
:
"^18.2.0"
,
"react-chartjs-2"
:
"^5.2.0"
,
"react-dom"
:
"^18.2.0"
,
"react-dom"
:
"^18.2.0"
,
"react-router"
:
"^6.15.0"
,
"react-router"
:
"^6.15.0"
,
"react-router-dom"
:
"^6.15.0"
,
"react-router-dom"
:
"^6.15.0"
,
...
...
Frontend/admin/src/css/actor-marketing-analysis.css
View file @
cda28cef
...
@@ -18,4 +18,75 @@
...
@@ -18,4 +18,75 @@
.actor-marketing-button-container
{
.actor-marketing-button-container
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
}
}
\ No newline at end of file
.actor-marketing-results-contend-container
{
display
:
flex
;
justify-content
:
space-around
;
padding-top
:
2%
;
width
:
100%
;
height
:
auto
;
}
.actor-marketing-results-actor-container
{
width
:
50%
;
display
:
flex
;
gap
:
5%
;
flex-wrap
:
wrap
;
}
.card
{
width
:
11rem
;
height
:
15rem
;
border-radius
:
10px
;
overflow
:
hidden
;
cursor
:
pointer
;
position
:
relative
;
color
:
rgb
(
240
,
240
,
240
);
box-shadow
:
0
10px
30px
5px
rgba
(
0
,
0
,
0
,
0.2
);
}
.card-img
{
position
:
absolute
;
object-fit
:
cover
;
width
:
100%
;
height
:
100%
;
top
:
0
;
left
:
0
;
opacity
:
0.8
;
transition
:
opacity
0.2s
ease-out
;
}
.card-content-topic
{
position
:
absolute
;
inset
:
auto
auto
30px
20px
;
margin
:
0
;
transition
:
inset
0.3s
0.3s
ease-out
;
font-family
:
"Roboto Condensed"
,
sans-serif
;
font-weight
:
bold
;
text-transform
:
uppercase
;
color
:
#ffffff
;
-webkit-text-stroke
:
0.5px
#282828
;
text-shadow
:
0px
4px
4px
#282828
;
}
.card-content-para
{
position
:
absolute
;
opacity
:
0
;
max-width
:
80%
;
transition
:
opacity
0.3s
ease-out
;
inset
:
auto
auto
25px
20px
;
}
.card
:hover
.card-content-topic
{
inset
:
auto
auto
50px
20px
;
transition
:
inset
0.3s
ease-out
;
}
.card
:hover
.card-content-para
{
opacity
:
1
;
transition
:
opacity
0.5s
0.1s
ease-in
;
}
.card
:hover
.card-img
{
transition
:
opacity
0.3s
ease-in
;
opacity
:
1
;
}
.actor-marketing-results-pie-chart-container
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
width
:
50%
;
height
:
40vh
;
}
Frontend/admin/src/images/channa.png
0 → 100644
View file @
cda28cef
728 KB
Frontend/admin/src/images/mashi.png
0 → 100644
View file @
cda28cef
617 KB
Frontend/admin/src/images/menna.jpg
0 → 100644
View file @
cda28cef
123 KB
Frontend/admin/src/images/nadeeka.jpg
0 → 100644
View file @
cda28cef
88.3 KB
Frontend/admin/src/pages/actor-marketing-analysis.jsx
View file @
cda28cef
...
@@ -8,8 +8,30 @@ import FormControl from "@mui/material/FormControl";
...
@@ -8,8 +8,30 @@ import FormControl from "@mui/material/FormControl";
import
Select
from
"
@mui/material/Select
"
;
import
Select
from
"
@mui/material/Select
"
;
import
{
Button
}
from
"
@mui/material
"
;
import
{
Button
}
from
"
@mui/material
"
;
import
Loader
from
"
../components/Loader
"
;
import
Loader
from
"
../components/Loader
"
;
import
SendIcon
from
"
@mui/icons-material/Send
"
;
import
MovieFilterIcon
from
"
@mui/icons-material/MovieFilter
"
;
import
{
createTheme
,
ThemeProvider
}
from
"
@mui/material/styles
"
;
import
{
createTheme
,
ThemeProvider
}
from
"
@mui/material/styles
"
;
import
{
Chart
as
ChartJS
,
ArcElement
,
Tooltip
,
Legend
}
from
"
chart.js
"
;
import
{
Pie
}
from
"
react-chartjs-2
"
;
import
Channa
from
"
../images/nadeeka.jpg
"
;
ChartJS
.
register
(
ArcElement
,
Tooltip
,
Legend
);
export
const
data
=
{
labels
:
[
"
Romantic
"
,
"
Action
"
],
datasets
:
[
{
label
:
"
# of Votes
"
,
data
:
[
12
,
19
],
backgroundColor
:
[
"
rgba(255, 99, 132, 0.2)
"
,
"
rgba(54, 162, 235, 0.2)
"
,
,
],
borderColor
:
[
"
rgba(255, 99, 132, 1)
"
,
"
rgba(54, 162, 235, 1)
"
],
borderWidth
:
1
,
},
],
};
export
default
function
ActorMarketingAnalysis
()
{
export
default
function
ActorMarketingAnalysis
()
{
const
[
loaderState
,
setLoaderState
]
=
useState
(
false
);
const
[
loaderState
,
setLoaderState
]
=
useState
(
false
);
...
@@ -44,7 +66,7 @@ export default function ActorMarketingAnalysis() {
...
@@ -44,7 +66,7 @@ export default function ActorMarketingAnalysis() {
autoComplete=
"off"
autoComplete=
"off"
>
>
<
div
>
<
div
>
<
TextField
label=
"Film Trail Name"
color=
"primary"
required
/>
<
TextField
label=
"Film Trail
er
Name"
color=
"primary"
required
/>
<
TextField
label=
"Film Director Name"
color=
"primary"
required
/>
<
TextField
label=
"Film Director Name"
color=
"primary"
required
/>
<
TextField
label=
"Film Director Email"
color=
"primary"
required
/>
<
TextField
label=
"Film Director Email"
color=
"primary"
required
/>
</
div
>
</
div
>
...
@@ -52,7 +74,10 @@ export default function ActorMarketingAnalysis() {
...
@@ -52,7 +74,10 @@ export default function ActorMarketingAnalysis() {
<
Box
<
Box
component=
"form"
component=
"form"
sx=
{
{
sx=
{
{
"
& .MuiTextField-root
"
:
{
m
:
1
,
width
:
"
47.2%
"
},
"
& .MuiTextField-root
"
:
{
m
:
1
,
width
:
"
47.2%
"
,
},
}
}
}
}
noValidate
noValidate
autoComplete=
"off"
autoComplete=
"off"
...
@@ -92,15 +117,49 @@ export default function ActorMarketingAnalysis() {
...
@@ -92,15 +117,49 @@ export default function ActorMarketingAnalysis() {
onClick=
{
submitHandler
}
onClick=
{
submitHandler
}
variant=
"contained"
variant=
"contained"
color=
"primary"
color=
"primary"
endIcon=
{
<
Send
Icon
/>
}
endIcon=
{
<
MovieFilter
Icon
/>
}
>
>
Send
Analysis
</
Button
>
</
Button
>
</
Box
>
</
Box
>
</
center
>
</
center
>
</
ThemeProvider
>
</
ThemeProvider
>
</
div
>
</
div
>
<
div
className=
"actor-marketing-title"
>
Results
</
div
>
<
div
className=
"actor-marketing-results-container"
>
<
div
className=
"actor-marketing-title"
>
Film Trailer Name Results
</
div
>
<
div
className=
"actor-marketing-results-contend-container"
>
<
div
className=
"actor-marketing-results-actor-container"
>
{
/* --------------------------------- */
}
<
div
className=
"card"
>
<
img
src=
{
Channa
}
alt=
""
className=
"card-img"
/>
<
div
className=
"card-content"
>
<
div
className=
"card-content-topic"
>
Channa Perera
</
div
>
<
div
className=
"card-content-para"
>
Sir lankan Actress
</
div
>
</
div
>
</
div
>
{
/* ---------------------------------------- */
}
<
div
className=
"card"
>
<
img
src=
{
Channa
}
alt=
""
className=
"card-img"
/>
<
div
className=
"card-content"
>
<
div
className=
"card-content-topic"
>
Channa Perera
</
div
>
<
div
className=
"card-content-para"
>
Sir lankan Actress
</
div
>
</
div
>
</
div
>
{
/* ---------------------------------------- */
}
<
div
className=
"card"
>
<
img
src=
{
Channa
}
alt=
""
className=
"card-img"
/>
<
div
className=
"card-content"
>
<
div
className=
"card-content-topic"
>
Channa Perera
</
div
>
<
div
className=
"card-content-para"
>
Sir lankan Actress
</
div
>
</
div
>
</
div
>
{
/* ---------------------------------------- */
}
</
div
>
<
div
className=
"actor-marketing-results-pie-chart-container"
>
<
Pie
data=
{
data
}
/>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
);
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment