Resized images

This commit is contained in:
Vince 2021-02-18 15:44:53 +11:00
parent 05c849b15c
commit dc280d224a
5 changed files with 6 additions and 8 deletions

1
.nvmrc
View file

@ -1 +0,0 @@
v14.15.0

0
assets/style.scss Normal file → Executable file
View file

View file

@ -40,7 +40,7 @@ export function ArticleCard(props: IPost): JSX.Element {
{featureImage?.imageUrl && (
<img
className="object-cover cursor-pointer"
src={featureImage?.imageUrl}
src={`${featureImage?.imageUrl}?w=300`}
alt={featureImage?.description}
/>
)}

View file

@ -35,7 +35,10 @@ export function ArticleCardFeature(props: IPost) {
style={{ minHeight: '100%' }}
className="bg-opacity-25 cursor-pointer bg-primary aspect-w-14 aspect-h-8"
>
<img className="object-cover" src={featureImage?.imageUrl} />
<img
className="object-cover"
src={`${featureImage?.imageUrl}?w=600`}
/>
</div>
</div>

View file

@ -24,8 +24,4 @@ const nextConfig = {
},
};
const withTM = require('next-transpile-modules')(['react-use'], {
unstable_webpack5: true,
});
module.exports = withPlugins([withFonts, withSvgr, withTM], nextConfig);
module.exports = withPlugins([withFonts, withSvgr], nextConfig);