Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PB138 - Film Database Group Project
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tomáš Havlíček
PB138 - Film Database Group Project
Commits
9c7f44a4
There was an error fetching the commit references. Please try again later.
Commit
9c7f44a4
authored
2 years ago
by
Tomáš Havlíček
Browse files
Options
Downloads
Patches
Plain Diff
feat: added colors to home and movies
parent
7d29843b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
frontend/src/App.tsx
+3
-1
3 additions, 1 deletion
frontend/src/App.tsx
frontend/src/components/BrowseMovies.tsx
+3
-2
3 additions, 2 deletions
frontend/src/components/BrowseMovies.tsx
frontend/src/components/PreviewBox.tsx
+3
-3
3 additions, 3 deletions
frontend/src/components/PreviewBox.tsx
with
9 additions
and
6 deletions
frontend/src/App.tsx
+
3
−
1
View file @
9c7f44a4
...
@@ -11,7 +11,9 @@ import { MoviePage } from "./components/MoviePage";
...
@@ -11,7 +11,9 @@ import { MoviePage } from "./components/MoviePage";
import
{
DirectorPage
}
from
"
./components/DirectorPage
"
;
import
{
DirectorPage
}
from
"
./components/DirectorPage
"
;
import
{
BrowseDirectors
}
from
"
./components/BrowseDirectors
"
;
import
{
BrowseDirectors
}
from
"
./components/BrowseDirectors
"
;
export
const
mainColor
=
"
#bae7ff
"
export
const
mainColor
=
"
#69c0ff
"
export
const
middleColor
=
"
#bae7ff
"
export
const
sideColor
=
"
#e6f7ff
"
function
App
()
{
function
App
()
{
return
(
return
(
...
...
This diff is collapsed.
Click to expand it.
frontend/src/components/BrowseMovies.tsx
+
3
−
2
View file @
9c7f44a4
...
@@ -8,6 +8,7 @@ import {
...
@@ -8,6 +8,7 @@ import {
import
Meta
from
"
antd/lib/card/Meta
"
;
import
Meta
from
"
antd/lib/card/Meta
"
;
import
{
useEffect
,
useState
}
from
"
react
"
;
import
{
useEffect
,
useState
}
from
"
react
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
{
mainColor
,
middleColor
,
sideColor
}
from
"
../App
"
;
import
axiosConfig
from
"
../axios-config
"
;
import
axiosConfig
from
"
../axios-config
"
;
import
{
CategoryDTO
}
from
"
../dto
"
;
import
{
CategoryDTO
}
from
"
../dto
"
;
import
{
ErrorPage
}
from
"
./ErrorPage
"
;
import
{
ErrorPage
}
from
"
./ErrorPage
"
;
...
@@ -39,7 +40,7 @@ export const BrowseMovies = () => {
...
@@ -39,7 +40,7 @@ export const BrowseMovies = () => {
return
(
return
(
<
div
className
=
"browse-container"
>
<
div
className
=
"browse-container"
>
<
Space
direction
=
"vertical"
style
=
{
{
padding
:
"
3rem
"
,
display
:
"
flex
"
}
}
>
<
Space
direction
=
"vertical"
style
=
{
{
padding
:
"
3rem
"
,
display
:
"
flex
"
}
}
>
<
Collapse
>
<
Collapse
style
=
{
{
background
:
sideColor
}
}
>
{
categories
.
map
((
category
)
=>
{
{
categories
.
map
((
category
)
=>
{
return
(
return
(
<
Panel
header
=
{
category
.
name
}
key
=
{
category
.
id
}
>
<
Panel
header
=
{
category
.
name
}
key
=
{
category
.
id
}
>
...
@@ -74,7 +75,7 @@ export const BrowseMovies = () => {
...
@@ -74,7 +75,7 @@ export const BrowseMovies = () => {
cover
=
{
cover
=
{
<
Image
<
Image
width
=
{
"
16rem
"
}
width
=
{
"
16rem
"
}
style
=
{
{
objectFit
:
"
cover
"
}
}
style
=
{
{
objectFit
:
"
cover
"
}
}
src
=
{
movie
.
picture
}
src
=
{
movie
.
picture
}
></
Image
>
></
Image
>
}
}
...
...
This diff is collapsed.
Click to expand it.
frontend/src/components/PreviewBox.tsx
+
3
−
3
View file @
9c7f44a4
import
{
Card
,
Col
,
Row
}
from
"
antd
"
;
import
{
Card
,
Col
,
Row
}
from
"
antd
"
;
import
Meta
from
"
antd/lib/card/Meta
"
;
import
Meta
from
"
antd/lib/card/Meta
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
{
Link
}
from
"
react-router-dom
"
;
import
{
mainColor
}
from
"
../App
"
;
import
{
mainColor
,
middleColor
,
sideColor
}
from
"
../App
"
;
import
{
MovieDTO
}
from
"
../dto
"
;
import
{
MovieDTO
}
from
"
../dto
"
;
interface
IPreviewBoxProps
{
interface
IPreviewBoxProps
{
...
@@ -13,7 +13,7 @@ export const PreviewBox: React.FC<IPreviewBoxProps> = ({ title, movies }) => {
...
@@ -13,7 +13,7 @@ export const PreviewBox: React.FC<IPreviewBoxProps> = ({ title, movies }) => {
return
(
return
(
<
Card
title
=
{
title
}
style
=
{
{
borderWidth
:
4
,
borderColor
:
mainColor
}
}
>
<
Card
title
=
{
title
}
style
=
{
{
borderWidth
:
4
,
borderColor
:
mainColor
,
background
:
sideColor
}
}
>
<
Row
justify
=
"space-evenly"
align
=
"bottom"
gutter
=
{
50
}
>
<
Row
justify
=
"space-evenly"
align
=
"bottom"
gutter
=
{
50
}
>
{
movies
.
map
((
movie
)
=>
{
{
movies
.
map
((
movie
)
=>
{
return
(
return
(
...
@@ -24,7 +24,7 @@ export const PreviewBox: React.FC<IPreviewBoxProps> = ({ title, movies }) => {
...
@@ -24,7 +24,7 @@ export const PreviewBox: React.FC<IPreviewBoxProps> = ({ title, movies }) => {
style
=
{
{
style
=
{
{
width
:
"
240px
"
,
width
:
"
240px
"
,
borderWidth
:
"
2px
"
,
borderWidth
:
"
2px
"
,
borderColor
:
m
ain
Color
borderColor
:
m
iddle
Color
}
}
}
}
cover
=
{
<
img
alt
=
{
movie
.
name
}
src
=
{
movie
.
picture
}
/>
}
cover
=
{
<
img
alt
=
{
movie
.
name
}
src
=
{
movie
.
picture
}
/>
}
>
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment