-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shuffle Page Updates #3
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
style={{ | ||
display: 'flex', | ||
flexDirection: 'row', | ||
justifyContent: 'center', | ||
width: '40%', | ||
transition: fadeNextCard ? 'background 5s linear' : 'none', | ||
background: fadeNextCard ? 'white' : 'transparent', | ||
}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can move this to the styled component. For example:
width: ${({ $fullWidth }) => ($fullWidth ? '100%' : 'min-content')};
Note the usage of $
for the prop to denote it as a transient prop and not pass it on to the DOM
style={{ | ||
display: 'flex', | ||
justifyContent: currentIndex !== 0 ? 'space-between' : 'flex-end', | ||
marginTop: '16px', | ||
gridColumn: '1/4' | ||
}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment about styled components and passed props.
style={{ display: 'flex', flexDirection: 'row', justifyContent: 'center', width: '40%' }} | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment about styled components and passed props.
@@ -55,4 +55,27 @@ export const EntryThumbnail = styled.div` | |||
aspect-ratio: 16 / 9; | |||
background: ${({ $backgroundImage }) => `no-repeat center / cover url(${$backgroundImage})`}; | |||
width: 150px; | |||
`; | |||
|
|||
export const ControlButton = styled.button` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll want to style our already existing Button
component here with
export const ControlButton = styled(Button)
Will update this as PR comes along