@@ -879,14 +879,14 @@ main {
879879
880880.post-item {
881881 display : flex;
882- align-items : center ;
882+ flex-direction : column ;
883883 margin-bottom : 30px ;
884- padding : 20px ;
885884 background-color : var (--bg-card );
886885 border : 1px solid var (--border-color );
887886 border-radius : var (--border-radius );
888887 transition : var (--transition );
889888 box-shadow : var (--shadow-sm );
889+ overflow : hidden;
890890}
891891
892892.post-item : hover {
@@ -895,62 +895,116 @@ main {
895895 border-color : var (--primary-color );
896896}
897897
898- .post-image-post , .post-image {
899- object-fit : cover;
900- margin-right : 20px ;
901- border-radius : 8px ;
898+ .post-image-container {
899+ position : relative;
900+ height : 250px ;
901+ overflow : hidden;
902+ width : 100% ;
902903}
903904
904905.post-image {
905- width : 200px ;
906- height : 150px ;
906+ width : 100% ;
907+ height : 100% ;
908+ object-fit : cover;
909+ transition : var (--transition );
910+ }
911+
912+ .post-item : hover .post-image {
913+ transform : scale (1.05 );
914+ }
915+
916+ .post-image-overlay {
917+ position : absolute;
918+ bottom : 0 ;
919+ left : 0 ;
920+ right : 0 ;
921+ background : linear-gradient (transparent, rgba (0 , 0 , 0 , 0.85 ));
922+ color : white;
923+ padding : 2rem 1.5rem 1.5rem ;
924+ z-index : 2 ;
925+ }
926+
927+ .post-title-preview {
928+ font-size : 1.25rem ;
929+ font-weight : 700 ;
930+ margin-bottom : 0.5rem ;
931+ text-shadow : 2px 2px 4px rgba (0 , 0 , 0 , 0.8 );
932+ line-height : 1.3 ;
933+ color : white;
934+ margin : 0 ;
935+ }
936+
937+ .post-meta-overlay {
938+ color : rgba (255 , 255 , 255 , 0.9 );
939+ font-size : 0.875rem ;
940+ text-shadow : 1px 1px 2px rgba (0 , 0 , 0 , 0.8 );
941+ display : flex;
942+ align-items : center;
943+ gap : 0.5rem ;
944+ margin-top : 0.5rem ;
907945}
908946
909947.post-image-placeholder {
910- width : 200px ;
911- height : 150px ;
912- background : var (--bg-secondary );
913- border : 2px dashed var (--border-color );
914- border-radius : 8px ;
948+ width : 100% ;
949+ height : 250px ;
950+ background : linear-gradient (135deg , var (--bg-secondary ), var (--border-color ));
915951 display : flex;
952+ flex-direction : column;
916953 align-items : center;
917954 justify-content : center;
918- font-size : 2rem ;
919- margin-right : 20px ;
955+ position : relative;
920956}
921957
922- .post-details {
923- flex : 1 ;
958+ .placeholder-content {
959+ text-align : center;
960+ color : var (--text-primary );
961+ padding : 2rem ;
962+ max-width : 100% ;
924963}
925964
926- .post-details h2 {
927- margin-top : 0 ;
965+ .placeholder-icon {
966+ font-size : 2.5rem ;
967+ margin-bottom : 1rem ;
968+ display : block;
928969}
929970
930- .post-details h2 a {
971+ .placeholder-content . post-title-preview {
931972 color : var (--text-primary );
932- text-decoration : none;
933- transition : var (--transition );
973+ text-shadow : none;
974+ font-size : 1.25rem ;
975+ margin-bottom : 0.5rem ;
976+ line-height : 1.3 ;
934977}
935978
936- .post-details h2 a : hover {
937- color : var (--primary-color );
979+ .placeholder-content .post-meta-overlay {
980+ color : var (--text-secondary );
981+ text-shadow : none;
982+ justify-content : center;
983+ margin-top : 0.5rem ;
938984}
939985
940- .meta {
941- font-size : 0.9rem ;
942- margin-bottom : 0.5rem ;
943- color : var (--text-secondary );
986+ .post-details {
987+ padding : 1.5rem ;
988+ flex : 1 ;
989+ display : flex;
990+ flex-direction : column;
944991}
945992
946993.post-excerpt {
947994 color : var (--text-secondary );
948995 line-height : 1.6 ;
949996 margin-bottom : 1rem ;
997+ font-size : 1rem ;
998+ flex : 1 ;
999+ }
1000+
1001+ .reading-time {
1002+ font-style : italic;
1003+ opacity : 0.8 ;
9501004}
9511005
9521006.read-more-btn {
953- margin-top : 0.5 rem ;
1007+ align-self : flex-start ;
9541008 font-size : 0.875rem ;
9551009 padding : 0.5rem 1rem ;
9561010}
@@ -1747,24 +1801,68 @@ main {
17471801 padding : 0 1rem ;
17481802 }
17491803
1750- .post-item {
1751- flex-direction : column;
1752- padding : 1rem ;
1753- }
1804+ .post-item {
1805+ margin-bottom : 20px ;
1806+ }
17541807
1755- .post-image , .post-image-post {
1756- width : 100% ;
1757- height : auto;
1758- margin-right : 0 ;
1759- margin-bottom : 1rem ;
1760- }
1808+ .post-image-container {
1809+ height : 200px ;
1810+ }
17611811
1762- .post-image-placeholder {
1763- width : 100% ;
1764- height : 120px ;
1765- margin-right : 0 ;
1766- margin-bottom : 1rem ;
1767- }
1812+ .post-image-overlay {
1813+ padding : 1.5rem 1rem 1rem ;
1814+ }
1815+
1816+ .post-title-preview {
1817+ font-size : 1.1rem ;
1818+ line-height : 1.2 ;
1819+ margin-bottom : 0.5rem ;
1820+ }
1821+
1822+ .post-meta-overlay {
1823+ font-size : 0.8rem ;
1824+ flex-direction : column;
1825+ align-items : flex-start;
1826+ gap : 0.25rem ;
1827+ }
1828+
1829+ .post-image-placeholder {
1830+ height : 200px ;
1831+ }
1832+
1833+ .placeholder-content {
1834+ padding : 1rem ;
1835+ }
1836+
1837+ .placeholder-icon {
1838+ font-size : 2rem ;
1839+ margin-bottom : 0.5rem ;
1840+ }
1841+
1842+ .placeholder-content .post-title-preview {
1843+ font-size : 1.1rem ;
1844+ margin-bottom : 0.5rem ;
1845+ }
1846+
1847+ .placeholder-content .post-meta-overlay {
1848+ font-size : 0.8rem ;
1849+ flex-direction : column;
1850+ gap : 0.25rem ;
1851+ }
1852+
1853+ .post-details {
1854+ padding : 1rem ;
1855+ }
1856+
1857+ .post-excerpt {
1858+ font-size : 0.9rem ;
1859+ margin-bottom : 1rem ;
1860+ }
1861+
1862+ .read-more-btn {
1863+ padding : 0.5rem 1rem ;
1864+ font-size : 0.8rem ;
1865+ }
17681866
17691867 .post-content pre {
17701868 font-size : 12px ;
0 commit comments