File tree 3 files changed +13
-6
lines changed
3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import RecommendedCard from '@/components/RecommendedCard';
2
2
3
3
export default function Blogs ( { blogs } ) {
4
4
5
- if ( ! blogs . length ) return null ;
5
+ if ( ! blogs ? .length ) return null ;
6
6
7
7
return (
8
8
< div className = "flex flex-col" >
Original file line number Diff line number Diff line change 1
1
import RecommendedCard from '@/components/RecommendedCard' ;
2
2
3
3
export default function Destinations ( { destinations } ) {
4
- if ( ! destinations . length ) return null ;
4
+ if ( ! destinations ? .length ) return null ;
5
5
6
6
return (
7
7
< div className = "flex flex-col" >
Original file line number Diff line number Diff line change @@ -45,6 +45,13 @@ export function BlogListingPage(pageResponse) {
45
45
</ div >
46
46
) }
47
47
</ main >
48
+ < footer className = "bg-slate-50 text-slate-900 py-4" >
49
+ < div className = "container mx-auto px-4" >
50
+ < p className = "text-center" >
51
+ © { new Date ( ) . getFullYear ( ) } TravelLux. All rights reserved.
52
+ </ p >
53
+ </ div >
54
+ </ footer >
48
55
</ div >
49
56
) ;
50
57
}
@@ -103,7 +110,7 @@ const BlogCard = ({ blog }) => {
103
110
const isEditMode = useIsEditMode ( ) ;
104
111
105
112
return (
106
- < div className = "bg-white rounded-lg shadow-md overflow-hidden hover:shadow-lg transition-shadow duration-300 relative" >
113
+ < div className = "bg-white rounded-lg shadow-md overflow-hidden hover:shadow-lg transition-shadow duration-300 relative flex flex-col h-full " >
107
114
{ isEditMode && (
108
115
< button
109
116
onClick = { ( ) => editContentlet ( blog ) }
@@ -128,9 +135,9 @@ const BlogCard = ({ blog }) => {
128
135
) }
129
136
</ div >
130
137
131
- < div className = "p-4" >
138
+ < div className = "p-4 flex flex-col flex-grow " >
132
139
< h3 className = "text-lg font-bold mb-2 hover:text-blue-600" >
133
- < a href = { urlMap || `# ${ identifier } ` } > { title } </ a >
140
+ < a href = { urlMap } > { title } </ a >
134
141
</ h3 >
135
142
136
143
{ teaser && (
@@ -139,7 +146,7 @@ const BlogCard = ({ blog }) => {
139
146
</ p >
140
147
) }
141
148
142
- < div className = "flex justify-between items-center mt-3 " >
149
+ < div className = "flex justify-between items-center mt-auto pt-3 border-t border-gray-100 " >
143
150
{ author && (
144
151
< div className = "text-sm text-gray-700" >
145
152
{ author . firstName && author . lastName
You can’t perform that action at this time.
0 commit comments