mirror of
https://github.com/oxen-io/oxen-website.git
synced 2023-12-13 21:00:18 +01:00
Resized images
This commit is contained in:
parent
05c849b15c
commit
dc280d224a
5 changed files with 6 additions and 8 deletions
1
.nvmrc
1
.nvmrc
|
@ -1 +0,0 @@
|
|||
v14.15.0
|
0
assets/style.scss
Normal file → Executable file
0
assets/style.scss
Normal file → Executable 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}
|
||||
/>
|
||||
)}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue