Skip to content

Commit

Permalink
"Updated Masonry component's backgroundImage gradient opacity and ren…
Browse files Browse the repository at this point in the history
…amed BlogInitial interface to BlogSliceInitial"
  • Loading branch information
ucangun committed Sep 17, 2024
1 parent f7725ba commit 0ea90c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Masonry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function HomeMasonry({ firstThreeBlogs }: HomeMasonryProps) {
key={blog._id}
sx={{
height: heights[index] || 200,
backgroundImage: `linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(${blog.image})`,
backgroundImage: `linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)), url(${blog.image})`,
backgroundSize: "cover",
backgroundPosition: "center",
}}
Expand Down
4 changes: 2 additions & 2 deletions src/features/blogSlice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ export interface BlogPost {
__v: number;
}

interface BlogInitial {
interface BlogSliceInitial {
loading: boolean;
error: boolean;
blog: BlogPost[];
}

const initialState: BlogInitial = {
const initialState: BlogSliceInitial = {
loading: false,
error: false,
blog: [],
Expand Down

0 comments on commit 0ea90c1

Please sign in to comment.