Skip to content

Commit

Permalink
add BlogMain - enhancement_410_page_blog
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderMorugin committed Jun 16, 2024
1 parent c2420d1 commit 8e8a2d9
Show file tree
Hide file tree
Showing 26 changed files with 501 additions and 445 deletions.

This file was deleted.

49 changes: 0 additions & 49 deletions src/components/BlogItemForContainer/BlogItemForContainer.tsx

This file was deleted.

This file was deleted.

58 changes: 0 additions & 58 deletions src/components/BlogMainItem/BlogMainItem.tsx

This file was deleted.

110 changes: 0 additions & 110 deletions src/components/BlogMainItem/blog-main-item.module.scss

This file was deleted.

38 changes: 35 additions & 3 deletions src/entities/BlogCard/ui/BlogCard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,48 @@
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 15px;
gap: 8px;
width: 100%;
user-select: none;

@include media.respond-to('middle') {
width: 260px;
gap: 7px;
}

&_blog {
width: 100%;
}
}

.heading {
line-height: 22px;
font-size: 16px;
font-weight: 500;
padding-top: 12px;
transition: 0.5s;
}

.subheading {
font-size: 17px;
}

.imageContainer {
position: relative;
display: flex;
}

.image {
width: 100%;
border-radius: 10px;
object-fit: cover;
transition: 0.25s ease-in-out;
transition: 0.25s;

&_blog {
@include media.respond-to('small-middle') {
height: 418px;
}
}
}

.noImage {
Expand All @@ -41,5 +62,16 @@
}

.blogCard:hover .image {
transform: scale(1.025);
transform: scale(1.02);
}

.tags {
position: absolute;
top: 0;
left: 0;
display: flex;
flex-wrap: wrap;
gap: 10px;
padding: 20px;
cursor: auto;
}
Loading

0 comments on commit 8e8a2d9

Please sign in to comment.