[WEB-3375] fix: project cover image (#6602)

* fix: project cover image

* chore: code refactor
This commit is contained in:
Anmol Singh Bhatia 2025-02-13 23:34:08 +05:30 committed by GitHub
parent a95864ba11
commit 39ecfbe7e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -160,7 +160,10 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
<div className="relative h-44 w-full">
<div className="absolute inset-0 bg-gradient-to-t from-black/50 to-transparent" />
<img
src={getFileURL(coverImage ?? "")}
src={getFileURL(
coverImage ??
"https://images.unsplash.com/photo-1672243775941-10d763d9adef?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80"
)}
alt="Project cover image"
className="h-44 w-full rounded-md object-cover"
/>