@@ -10,9 +10,8 @@ <h1>Research Projects</h1>
1010 < article class ="project-card ">
1111 {{ $featured := .Resources.GetMatch "featured.*" }}
1212 {{ if $featured }}
13- < div class ="project-image " data-title =" {{ .Title }} " >
13+ < div class ="project-image ">
1414 < img src ="{{ $featured.RelPermalink }} " alt ="{{ .Title }} " loading ="lazy ">
15- < div class ="project-title-overlay "> {{ .Title }}</ div >
1615 </ div >
1716 {{ end }}
1817
@@ -89,40 +88,18 @@ <h1>Research Projects</h1>
8988 position : relative;
9089 height : 160px ;
9190 overflow : hidden;
92- background : linear-gradient (135deg , rgba (134 , 31 , 65 , 0.95 ), rgba (229 , 117 , 31 , 0.95 ));
9391}
9492
9593.project-image img {
9694 width : 100% ;
9795 height : 100% ;
9896 object-fit : cover;
99- transition : transform 0.3s ease, opacity 0.3s ease;
100- opacity : 0.85 ;
97+ transition : transform 0.3s ease, filter 0.3s ease;
10198}
10299
103100.project-card : hover .project-image img {
104- transform : scale (1.08 );
105- opacity : 0.95 ;
106- }
107-
108- .project-title-overlay {
109- position : absolute;
110- bottom : 0 ;
111- left : 0 ;
112- right : 0 ;
113- padding : 1rem ;
114- background : linear-gradient (to top, rgba (0 , 0 , 0 , 0.9 ), rgba (0 , 0 , 0 , 0.3 ));
115- color : white;
116- font-size : 1.1rem ;
117- font-weight : 700 ;
118- text-align : center;
119- text-shadow : 0 2px 4px rgba (0 , 0 , 0 , 0.5 );
120- transition : all 0.3s ease;
121- }
122-
123- .project-card : hover .project-title-overlay {
124- padding-bottom : 1.2rem ;
125- background : linear-gradient (to top, rgba (134 , 31 , 65 , 0.95 ), rgba (134 , 31 , 65 , 0.3 ));
101+ transform : scale (1.05 );
102+ filter : brightness (1.1 );
126103}
127104
128105.project-content {
@@ -213,11 +190,6 @@ <h1>Research Projects</h1>
213190 .project-image {
214191 height : 140px ;
215192 }
216-
217- .project-title-overlay {
218- font-size : 1rem ;
219- padding : 0.8rem ;
220- }
221193}
222194
223195@media (max-width : 480px ) {
0 commit comments