This repository was archived by the owner on Aug 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 108
feat: add BeanScan mobile interface component #531
Closed
devin-ai-integration
wants to merge
1
commit into
master
from
devin/1737047180-implement-beanscan-interface
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,84 @@ | ||
| import Icon from '../Icon'; | ||
| import { styled } from '../../styles'; | ||
| import React from 'react'; | ||
|
|
||
| const Container = styled('div', { | ||
| minHeight: '100vh', | ||
| background: 'white', | ||
| display: 'flex', | ||
| flexDirection: 'column', | ||
| alignItems: 'center', | ||
| justifyContent: 'center', | ||
| padding: '1rem', | ||
| }); | ||
|
|
||
| const LogoContainer = styled('div', { | ||
| position: 'relative', | ||
| marginBottom: '2rem', | ||
| }); | ||
|
|
||
| const MainIcon = styled(Icon, { | ||
| width: '6rem', | ||
| height: '6rem', | ||
| color: '$stone800', | ||
| }); | ||
|
|
||
| const SmallIcon = styled(Icon, { | ||
| width: '3rem', | ||
| height: '3rem', | ||
| color: '$stone600', | ||
| position: 'absolute', | ||
| '&.top': { | ||
| top: '-1rem', | ||
| right: '-1rem', | ||
| transform: 'rotate(45deg)', | ||
| }, | ||
| '&.bottom': { | ||
| bottom: '-1rem', | ||
| left: '-1rem', | ||
| transform: 'rotate(-45deg)', | ||
| }, | ||
| }); | ||
|
|
||
| const Title = styled('h1', { | ||
| fontSize: '1.875rem', | ||
| fontWeight: 'bold', | ||
| marginBottom: '0.5rem', | ||
| color: '$gray900', | ||
| }); | ||
|
|
||
| const Subtitle = styled('p', { | ||
| fontSize: '1rem', | ||
| color: '$gray600', | ||
| marginBottom: '4rem', | ||
| }); | ||
|
|
||
| const Button = styled('button', { | ||
| backgroundColor: '$gray900', | ||
| color: 'white', | ||
| padding: '0.75rem', | ||
| borderRadius: '9999px', | ||
| '&:hover': { | ||
| backgroundColor: '$gray800', | ||
| transition: 'background-color 0.2s', | ||
| }, | ||
| }); | ||
|
|
||
| export const BeanScan: React.FC = () => { | ||
| return ( | ||
| <Container> | ||
| <LogoContainer> | ||
| <MainIcon svg="coffee" /> | ||
| <SmallIcon svg="coffee" className="top" /> | ||
| <SmallIcon svg="coffee" className="bottom" /> | ||
| </LogoContainer> | ||
| <Title>BeanScan</Title> | ||
| <Subtitle>Scan & Explore Origins</Subtitle> | ||
| <Button> | ||
| <Icon svg="arrowRight" /> | ||
| </Button> | ||
| </Container> | ||
| ); | ||
| }; | ||
|
|
||
| export default BeanScan; | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The
Buttoncomponent needs anaria-labelattribute since it only contains an icon with no text content. Addingaria-label="Start Scan"(or similar descriptive text) would ensure screen reader users can understand the button's purpose. This is an important accessibility requirement for icon-only buttons.Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.