88 Pagination ,
99 PostCarousel ,
1010 ProjectCarousel ,
11+ PostCardBlog
1112} from "../components/common" ;
1213import { MetaData } from "../components/common/meta" ;
1314import DonateCard from "../components/common/DonateCard" ;
@@ -30,34 +31,22 @@ const Index = ({ data, location, pageContext }) => {
3031 < >
3132 < MetaData location = { location } />
3233 < Layout isHome = { true } >
33- < div
34- id = "container"
35- className = "mt-20 my-0 ml-5 md:mx-auto text-left lg:max-w-4xl"
36- >
37- < h1 className = "text-3xl mb-6 font-bold" > Blogposts</ h1 >
34+ < div id = "container" className = "responsive-container px-4 mt-4 text-left" >
35+ < h1 className = "text-subheading-1 mb-4 mt-24 font-bold" > Blogposts</ h1 >
3836 < section id = "post-feed" >
3937 { posts . map ( ( { node } , index ) => (
4038 // The tag below includes the markup for each post - components/common/PostCard.js
41- < PostCard key = { node . id } post = { node } number = { index + 1 } />
39+ < PostCardBlog key = { node . id } post = { node } number = { index + 1 } />
4240 ) ) }
4341 </ section >
4442
45- { /* <Pagination pageContext={pageContext} /> */ }
46- < p className = "ml-14 text-body-grey" >
43+ < p className = "text-body-grey" >
4744 Read more blogs on numerous other topics
4845 </ p >
49- < button class = "ml-14 mt-6 mb-20 bg-iff-orange hover:bg-iff-orange-700 text-white font-normal text-xl leading-6 not-italic py-2 px-4 rounded w-36 h-14" >
46+ < button class = "mt-6 mb-16 bg-iff-orange hover:bg-iff-orange-700 text-white font-normal text-xl leading-6 not-italic py-2 px-4 rounded w-36 h-14" >
5047 Read more
5148 </ button >
5249 < hr > </ hr >
53- < h1 className = "text-3xl mt-20 mb-6 font-bold" > Our latest work</ h1 >
54- < section id = "post-feed" className = "flex flex-col lg:w-1/3 md:flex-row" >
55- { posts . map ( ( { node } , index ) => (
56- // The tag below includes the markup for each post - components/common/PostCard.js
57- < PostCarousel key = { node . id } post = { node } number = { index + 1 } />
58- ) ) }
59- </ section >
60- < hr > </ hr >
6150 < h1 className = "text-3xl mt-20 font-bold" > Campaigns & Projects </ h1 >
6251 < p className = "text-base text-body-grey mt-6 mb-6" >
6352 Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
@@ -80,7 +69,11 @@ const Index = ({ data, location, pageContext }) => {
8069 </ section >
8170
8271 < div className = "flex items-center justify-center" >
83- < button id = "leftScroll" className = "px-3" onClick = { ( ) => scroll ( - 200 ) } >
72+ < button
73+ id = "leftScroll"
74+ className = "px-3"
75+ onClick = { ( ) => scroll ( - 200 ) }
76+ >
8477 < svg
8578 width = "32"
8679 height = "32"
@@ -104,7 +97,11 @@ const Index = ({ data, location, pageContext }) => {
10497 />
10598 </ svg >
10699 </ button >
107- < button id = "rightScroll" className = "px-3" onClick = { ( ) => scroll ( 200 ) } >
100+ < button
101+ id = "rightScroll"
102+ className = "px-3"
103+ onClick = { ( ) => scroll ( 200 ) }
104+ >
108105 < svg
109106 width = "32"
110107 height = "32"
@@ -129,7 +126,6 @@ const Index = ({ data, location, pageContext }) => {
129126 </ svg >
130127 </ button >
131128 </ div >
132-
133129 </ div >
134130
135131 </ Layout >
@@ -161,8 +157,9 @@ export const pageQuery = graphql`
161157 edges {
162158 node {
163159 ...GhostPostFields
164- }
160+ }
165161 }
166162 }
167163 }
168164` ;
165+
0 commit comments