Skip to content

Commit

Permalink
feat(image): use optimized images (webp) and thumbnails
Browse files Browse the repository at this point in the history
- use thumbnails in `ChapterViewCard`
- add i18n content for thumbnails
  • Loading branch information
SimonGolms committed Jan 9, 2021
1 parent 1f35995 commit 3530b88
Show file tree
Hide file tree
Showing 3 changed files with 611 additions and 101 deletions.
2 changes: 1 addition & 1 deletion src/components/Chapters/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const Chapter: React.FC<ContainerProps> = (props) => {
return (
<ChapterViewCard
color={color}
imgSrc={image}
imgSrc={image.thumbnail.medium}
routerLink={url}
subTitle={title.chapter}
title={title.section}
Expand Down
Loading

0 comments on commit 3530b88

Please sign in to comment.