Skip to content

Commit 7ea24c6

Browse files
committed
Touch up on Blog section
1 parent 3e2d6ba commit 7ea24c6

3 files changed

Lines changed: 18 additions & 9 deletions

File tree

src/components/educationCard/EducationCard.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
object-fit: contain;
4545
margin-right: 2rem;
4646
width: 10rem;
47-
height: 16rem;
47+
height: 14rem;
4848
box-shadow: 0 0.5rem 1rem $lightBoxShadowDarker;
4949
}
5050

src/containers/blogs/Blog.scss

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,23 +81,27 @@
8181

8282
/* Blog Cards */
8383
.blog-card {
84-
background: $textColorDark;
84+
background-color: $lightBackground2;
8585
border-radius: 8px;
8686
padding: 28px 32px;
8787
cursor: pointer;
88-
box-shadow: 0px 10px 30px $darkBoxShadow;
89-
transition: transform 0.2s ease, box-shadow 0.2s ease;
88+
box-shadow: $lightBoxShadowDark 0px 10px 30px -15px;
89+
transition: all 0.3s ease;
9090
display: flex;
9191
flex-direction: column;
9292
gap: 10px;
9393

9494
&:hover {
95-
transform: translateY(-4px);
96-
box-shadow: 0 20px 40px $lightBoxShadow;
95+
box-shadow: $lightBoxShadowDark 0px 20px 30px -10px;
9796
}
9897

9998
&.dark-mode {
100-
background: $darkBackground;
99+
background-color: $darkBackground;
100+
101+
&:hover {
102+
background-color: $buttonColor;
103+
box-shadow: 0px 0px 16px $darkBoxShadow;
104+
}
101105
}
102106
}
103107

@@ -127,10 +131,15 @@
127131
line-height: 1.6;
128132
}
129133

134+
.blog-card.dark-mode .blog-card-date,
135+
.blog-card.dark-mode .blog-card-excerpt {
136+
color: $textColorDark;
137+
}
138+
130139
.blog-card-read {
131140
font-size: 14px;
132141
font-weight: 500;
133-
color: $buttonColor;
142+
color: $subTitle;
134143
margin-top: 4px;
135144
}
136145

src/containers/blogs/Blogs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default function Blogs() {
2424
<p className="blog-card-date">{post.date}</p>
2525
<h2 className="blog-card-title">{post.title}</h2>
2626
<p className="blog-card-excerpt">{post.excerpt}</p>
27-
<span className="blog-card-read">Read →</span>
27+
<span className="blog-card-read">Read More </span>
2828
</div>
2929
</Link>
3030
))}

0 commit comments

Comments
 (0)