Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Shuffle Page Updates #3

wants to merge 6 commits into from

Conversation

AidanHibbard
Copy link
Collaborator

Will update this as PR comes along

Copy link

vercel bot commented Jan 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
skatehousemedia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 5:13pm

Comment on lines +116 to +123
style={{
display: 'flex',
flexDirection: 'row',
justifyContent: 'center',
width: '40%',
transition: fadeNextCard ? 'background 5s linear' : 'none',
background: fadeNextCard ? 'white' : 'transparent',
}}
Copy link
Owner

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

https://styled-components.com/docs/basics#passed-props

Comment on lines +96 to +101
style={{
display: 'flex',
justifyContent: currentIndex !== 0 ? 'space-between' : 'flex-end',
marginTop: '16px',
gridColumn: '1/4'
}}
Copy link
Owner

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.

Comment on lines +106 to +107
style={{ display: 'flex', flexDirection: 'row', justifyContent: 'center', width: '40%' }}
>
Copy link
Owner

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`
Copy link
Owner

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants