File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 object-fit : contain ;
4545 margin-right : 2rem ;
4646 width : 10rem ;
47- height : 16 rem ;
47+ height : 14 rem ;
4848 box-shadow : 0 0.5rem 1rem $lightBoxShadowDarker ;
4949}
5050
Original file line number Diff line number Diff line change 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.2 s ease , box-shadow 0.2 s ease ;
88+ box-shadow : $lightBoxShadowDark 0px 10px 30px -15 px ;
89+ transition : all 0.3 s 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
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
Original file line number Diff line number Diff 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 ) ) }
You can’t perform that action at this time.
0 commit comments