fix: update image aspect ratios in carousel and category sections
This commit is contained in:
parent
0b6327e2fb
commit
ecd1900acc
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,7 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
/node_modules/
|
/node_modules/
|
||||||
|
.vscode/cspell.json
|
||||||
|
.vscode/.cspell/
|
||||||
.env
|
.env
|
||||||
|
|
||||||
# React Router
|
# React Router
|
||||||
|
|||||||
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -26,6 +26,5 @@
|
|||||||
"buttonClassName",
|
"buttonClassName",
|
||||||
"leftNodeClassName",
|
"leftNodeClassName",
|
||||||
"rightNodeClassName"
|
"rightNodeClassName"
|
||||||
],
|
]
|
||||||
"cSpell.words": []
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -84,7 +84,7 @@ export const CarouselSection = (properties: TNews) => {
|
|||||||
>
|
>
|
||||||
<div className="flex flex-col justify-between">
|
<div className="flex flex-col justify-between">
|
||||||
<img
|
<img
|
||||||
className="aspect-[5/4] max-h-[280px] w-full rounded-md object-cover"
|
className="aspect-[174/100] max-h-[280px] w-full rounded-md object-cover sm:aspect-[5/4]"
|
||||||
src={featured}
|
src={featured}
|
||||||
alt={title}
|
alt={title}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -46,7 +46,7 @@ export const CategorySection = (properties: TNews) => {
|
|||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
className={twMerge(
|
className={twMerge(
|
||||||
'aspect-[5/4] w-full rounded-md object-cover',
|
'aspect-[174/100] w-full rounded-md object-cover sm:aspect-[5/4]',
|
||||||
)}
|
)}
|
||||||
src={featured}
|
src={featured}
|
||||||
alt={title}
|
alt={title}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user