Skip to content

Commit a2ec419

Browse files
committed
Update the color pallet of the app
1 parent 8f67c3a commit a2ec419

File tree

11 files changed

+41
-26
lines changed

11 files changed

+41
-26
lines changed

netflix-create-react-vite-app/src/components/card/card.styles.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,12 @@ export const CardBackContainer = styled.div`
4242
display: flex;
4343
flex-direction: column;
4444
align-items: center;
45-
justify-content: flex-start;
45+
justify-content: center;
4646
height: 350px;
4747
width: 250px;
4848
overflow: visible;
49-
background: ${(props) => props.theme.colors.grey};
49+
background: ${(props) => props.theme.colors.lightPurple};
50+
color: ${(props) => props.theme.colors.white};
5051
border-radius: ${(props) => props.theme.borderRadius[3]};
5152
`;
5253

@@ -101,7 +102,6 @@ export const MotionCardBack = styled.div`
101102
backface-visibility: hidden;
102103
transform: rotateY(180deg);
103104
z-index: 1;
104-
background: ${({ theme }) => theme.colors.black};
105105
border-radius: ${(props) => props.theme.borderRadius[3]};
106106
`;
107107

@@ -112,7 +112,7 @@ export const BackCardButton = styled.button<{ isAdded: boolean }>`
112112
margin-right: auto;
113113
margin-bottom: ${(props) => props.theme.space[2]};
114114
background: ${({ isAdded, theme }) =>
115-
isAdded ? theme.colors.black : theme.colors.blue};
115+
isAdded ? theme.colors.black : theme.colors.purple};
116116
color: ${(props) => props.theme.colors.white};
117117
border: none;
118118
border-radius: 4px;

netflix-create-react-vite-app/src/components/details/details-styles.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import styled from 'styled-components';
22

33
export const GoBackButton = styled.button`
4-
background: ${(props) => props.theme.colors.blue};
4+
background: ${(props) => props.theme.colors.purple};
55
color: ${(props) => props.theme.colors.white};
66
border: none;
77
border-radius: ${(props) => props.theme.borderRadius[1]};
@@ -11,7 +11,7 @@ export const GoBackButton = styled.button`
1111
transition: background 0.2s;
1212
margin-bottom: ${(props) => props.theme.space[4]};
1313
&:hover {
14-
background: ${(props) => props.theme.colors.white};
14+
background: ${(props) => props.theme.colors.lightPurple};
1515
color: ${(props) => props.theme.colors.black};
1616
}
1717
`;
@@ -54,13 +54,14 @@ export const InfoColumn = styled.div`
5454
min-width: 0;
5555
line-height:${({ theme }) => theme.lineHeight[3]};
5656
padding: ${({ theme }) => theme.space[3]};
57-
border: 1px solid ${({ theme }) => theme.colors.grey[2]};
57+
5858
5959
`;
6060

6161
export const InfoText = styled.p`
6262
margin:${({ theme }) => theme.space[1]} ;
6363
font-size: ${({ theme }) => theme.fontSize[3]};
64+
6465
`;
6566

6667
export const InfoLabel = styled.span`
@@ -124,6 +125,7 @@ export const Title = styled.h2`
124125
word-break: break-word;
125126
text-align: center;
126127
margin: 8px auto;
128+
127129
`;
128130

129131
export const CastCard = styled.div`
@@ -132,6 +134,7 @@ export const CastCard = styled.div`
132134
display: flex;
133135
flex-direction: column;
134136
align-items: center;
137+
135138
`;
136139

137140
export const CastImage = styled.img`
@@ -148,10 +151,11 @@ export const CastImage = styled.img`
148151
export const CastName = styled.div`
149152
font-weight: bold;
150153
margin-top: ${({ theme }) => theme.space[2]};
154+
151155
`;
152156

153157
export const CastCharacter = styled.div`
154-
font-size: 12px;
158+
font-size: ${({ theme }) => theme.fontSize[2]};
155159
color: ${({ theme }) => theme.colors.white};
156160
`;
157161

@@ -164,7 +168,7 @@ export const CastImageFallback = styled.div`
164168
display: flex;
165169
align-items: center;
166170
justify-content: center;
167-
color: ${({ theme }) => theme.colors.blue};
171+
color: ${({ theme }) => theme.colors.purple};
168172
font-size: 14px;
169173
`;
170174

netflix-create-react-vite-app/src/components/hero-banner/hero-banner.styles.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const BannerButtons = styled.div`
5454
`;
5555

5656
export const BannerButton = styled.button`
57-
background: ${(props) => props.theme.colors.black};
57+
background: ${(props) => props.theme.colors.purple};
5858
color: ${(props) => props.theme.colors.white};
5959
border: none;
6060
padding: 0.7rem 2rem;
@@ -64,7 +64,7 @@ export const BannerButton = styled.button`
6464
font-weight: 600;
6565
transition: background 0.2s;
6666
&:hover {
67-
background: ${(props) => props.theme.colors.blue};
68-
color: ${(props) => props.theme.colors.white};
67+
background: ${(props) => props.theme.colors.lightPurple};
68+
color: ${(props) => props.theme.colors.black};
6969
}
7070
`;

netflix-create-react-vite-app/src/components/movie-list/movie.styles.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const RowContainer = styled.section`
2424
`;
2525

2626
export const RowTitle = styled.h2`
27-
color: ${(props) => props.theme.colors.blue};
27+
color: ${(props) => props.theme.colors.lightPurple};
2828
font-size: ${(props) => props.theme.fontSize[5]};
2929
margin-left: ${(props) => props.theme.space[4]};
3030
margin-bottom: ${(props) => props.theme.space[4]};
@@ -50,7 +50,7 @@ export const ArrowButton = styled.button`
5050
z-index: 2;
5151
background: rgba(0, 0, 0, 0.6);
5252
border: none;
53-
color: ${(props) => props.theme.colors.white};
53+
color: ${(props) => props.theme.colors.lightPurple};
5454
font-size: ${(props) => props.theme.fontSize[6]};
5555
width: 48px;
5656
height: 64px;
@@ -66,8 +66,8 @@ export const ArrowButton = styled.button`
6666
right: -1.5rem;
6767
}
6868
&:hover {
69-
backgroundcolor: ${(props) => props.theme.colors.blue};
70-
color:;
69+
backgroundcolor: ${(props) => props.theme.colors.purple};
70+
7171
}
7272
&.active {
7373
opacity: 1;

netflix-create-react-vite-app/src/components/navbarmenu/navbarheader/navbar-styles.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { BackgroundColor } from './../../../../../netflix-create-next-app/styled-system/types/csstype.d';
12
import styled from 'styled-components';
23

34
export const NavbarMenu = styled.nav`
@@ -12,6 +13,7 @@ export const NavbarMenu = styled.nav`
1213
`;
1314

1415
export const NavList = styled.ul<{ $centered?: boolean }>`
16+
1517
display: flex;
1618
justify-content: center;
1719
flex-flow: wrap;
@@ -26,6 +28,7 @@ export const NavList = styled.ul<{ $centered?: boolean }>`
2628
padding: ${(props) => props.theme.space[8]};
2729
white-space: nowrap;
2830
font-size: ${(props) => props.theme.fontSize[4]};
31+
color: ${(props) => props.theme.colors.lightPurple};
2932
}
3033
3134
li:hover {
@@ -51,6 +54,8 @@ export const BrandContainer = styled.div<{ $centered?: boolean }>`
5154
font-size: ${(props) => props.theme.fontSize[5]};
5255
padding-left: ${(props) => props.theme.space[8]};
5356
list-style: none;
57+
color: ${(props) => props.theme.colors.lightPurple};
58+
5459
5560
@media (max-width: 768px) {
5661
justify-content: center;

netflix-create-react-vite-app/src/components/navbarmenu/navbarheader/navbarHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ export const NavbarHeader = ({ onChange, value }: navbarHeaderProps) => {
1616

1717
return (
1818
<NavbarMenu aria-label={t('site-navigation')} role='navigation'>
19-
<BrandContainer $centered={location.pathname === '/my-list'}>
19+
<BrandContainer>
2020
<NavItems aria-label={t('binge-watch')} to='/'>
2121
{t('binge-watch')}
2222
</NavItems>
2323
</BrandContainer>
24-
<NavList $centered={location.pathname === '/my-list'}>
24+
<NavList>
2525
<NavItems aria-label={t('home-page')} to='/'>
2626
{t('home-page')}
2727
</NavItems>

netflix-create-react-vite-app/src/components/navbarmenu/navbarheader/search-bar/searchbar.styles.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const SearchContainer = styled.div`
2121

2222
export const NavbarInput = styled.input`
2323
background-color: transparent;
24-
border: 1px solid ${(props) => props.theme.colors.blue};
24+
border: 1px solid ${(props) => props.theme.colors.lightPurple};
2525
border-radius: ${(props) => props.theme.borderRadius[2]};
2626
color: ${(props) => props.theme.colors.white};
2727
padding: ${(props) => props.theme.space[4]} ${(props) => props.theme.space[4]} ${(props) => props.theme.space[4]} 40px;
@@ -50,6 +50,6 @@ export const NavbarInput = styled.input`
5050
export const SearchIconWrapper = styled.div`
5151
position: absolute;
5252
left: 10px;
53-
color: ${(props) => props.theme.colors.white};
53+
color: ${(props) => props.theme.colors.lightPurple};
5454
pointer-events: none;
5555
`;

netflix-create-react-vite-app/src/pages/my-list/myList.styles.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const RemovalNotice = styled.div`
4545

4646
export const RemoveButton = styled.button`
4747
width: 100%;
48-
background: ${(props) => props.theme.colors.blue};
48+
background: ${(props) => props.theme.colors.purple};
4949
color: ${(props) => props.theme.colors.white};
5050
border: none;
5151
border-radius: ${(props) => props.theme.borderRadius[1]};
@@ -54,7 +54,7 @@ export const RemoveButton = styled.button`
5454
cursor: pointer;
5555
transition: background 0.2s;
5656
&:hover {
57-
background: ${(props) => props.theme.colors.white};
57+
background: ${(props) => props.theme.colors.lightPurple};
5858
color: ${(props) => props.theme.colors.black};
5959
}
6060
`;

netflix-create-react-vite-app/src/pages/my-list/myList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const MyList = () => {
6666
)
6767
) : (
6868
<>
69-
<h1>My List</h1>
69+
7070
{removalNotice && <RemovalNotice>{removalNotice}</RemovalNotice>}
7171
{failedItems.length > 0 && (
7272
<div style={{ color: 'red' }}>

netflix-create-react-vite-app/src/styles/global.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ body {
77
padding: ${(props) => props.theme.space[0]};
88
font-family:${(props) => props.theme.fontFamily};
99
background-color:${(props) => props.theme.colors.black};
10-
color:${(props) => props.theme.colors.blue}
10+
color:${(props) => props.theme.colors.purple}
1111
}
1212
a {
1313
text-decoration: none;
14-
color: ${(props) => props.theme.colors.blue};
14+
color: ${(props) => props.theme.colors.purple};
1515
}
1616
ul {
1717
list-style: none;

0 commit comments

Comments
 (0)