Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfater committed Dec 17, 2023
1 parent 92648ee commit c80506f
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 17 deletions.
Binary file removed public/examples/bag.thumb.jpeg
Binary file not shown.
Binary file added public/examples/bird.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/examples/car.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/examples/dog.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/examples/jacket.thumb.jpeg
Binary file not shown.
Binary file removed public/examples/paris.thumb.jpeg
Binary file not shown.
Binary file removed public/examples/shoe.thumb.jpeg
Binary file not shown.
Binary file removed public/examples/table.thumb.jpeg
Binary file not shown.
33 changes: 18 additions & 15 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,24 @@ function App() {
Try it:
</span>
<div className="flex space-x-2 sm:space-x-4 px-4">
{['bag', 'jacket', 'table', 'shoe', 'paris'].map(image => (
<div
key={image}
onClick={() => startWithDemoImage(image)}
role="button"
onKeyDown={() => startWithDemoImage(image)}
tabIndex={-1}
>
<img
className="rounded-md hover:opacity-75"
src={`examples/${image}.thumb.jpeg`}
alt={image}
/>
</div>
))}
{['dog', 'car', 'bird', 'bag', 'jacket', 'shoe', 'paris'].map(
image => (
<div
key={image}
onClick={() => startWithDemoImage(image)}
role="button"
onKeyDown={() => startWithDemoImage(image)}
tabIndex={-1}
>
<img
className="rounded-md hover:opacity-75 w-auto h-25"
src={`examples/${image}.jpeg`}
alt={image}
style={{ height: '100px' }}
/>
</div>
)
)}
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ export default function Editor(props: EditorProps) {
style={{
width: `${scaledBrushSize}px`,
height: `${scaledBrushSize}px`,
transform: `translate3d(-1px, -1px, 0)`,
transform: `translate3d(-100px, -100px, 0)`,
}}
ref={brushRef}
/>
Expand Down Expand Up @@ -697,7 +697,7 @@ export default function Editor(props: EditorProps) {
>
Original
</Button>
{!showOriginal && <Button onUp={onSuperRsolution}>IMG X 4</Button>}
{!showOriginal && <Button onUp={onSuperRsolution}>4x-upscaling</Button>}

<Button
primary
Expand Down

0 comments on commit c80506f

Please sign in to comment.