on master help sign in
grants: rearrange
commit0fb5f75491a45152ee540b1dad0e867fcd3c5857 authorMatilde Park <matilde@tlon.io> dateTue 27 Jul 2021, 18:13 (5 years ago) parent91d3a6f
1 file changed+25−38
pages/grants.js+25−38
pages/grants.js+25−38
@@ -176,44 +176,6 @@ export default function Grants({
176176 })}
177177 </div>
178178 </Section>
179−
180− {
181− // Gift Grants
182− }
183− <Section wide>
184− <div className="pb-16">
185− <h2 className="pb-16">Gifts</h2>
186− <p className="mb-8">
187− Gifts are given post-facto for exceptional contributions.
188− </p>
189− <div className="flex flex-wrap">
190− <PostPreview
191− post={gifts[0]}
192− className={`w-full md:w-1/2 pr-0 pb-8 md:pr-4`}
193− key={gifts[0].slug}
194− section={gifts[0].section}
195− />
196− <PostPreview
197− post={gifts[1]}
198− className={`w-full md:w-1/2 pl-0 pb-8 md:pl-4`}
199− key={gifts[1].slug}
200− section={gifts[1].section}
201− />
202− <PostPreview
203− post={gifts[2]}
204− className={`w-full md:w-1/2 pr-0 pb-8 md:pr-4`}
205− key={gifts[2].slug}
206− section={gifts[2].section}
207− />
208− <PostPreview
209− post={gifts[3]}
210− className={`w-full md:w-1/2 pl-0 pb-8 md:pl-4`}
211− key={gifts[3].slug}
212− section={gifts[3].section}
213− />
214− </div>
215− </div>
216− </Section>
217179 {
218180 // Find a Grant
219181 }
@@ -308,6 +270,31 @@ export default function Grants({
308270 .
309271 </p>
310272 </Section>
273+ {
274+ // Gift Grants
275+ }
276+ <Section wide>
277+ <div className="pb-16">
278+ <h2 className="pb-16">Gifts</h2>
279+ <p className="mb-8">
280+ Gifts are given post-facto for exceptional contributions.
281+ </p>
282+ <div className="flex flex-wrap">
283+ <PostPreview
284+ post={gifts[0]}
285+ className={`w-full md:w-1/2 pr-0 pb-8 md:pr-4`}
286+ key={gifts[0].slug}
287+ section={gifts[0].section}
288+ />
289+ <PostPreview
290+ post={gifts[1]}
291+ className={`w-full md:w-1/2 pl-0 pb-8 md:pl-4`}
292+ key={gifts[1].slug}
293+ section={gifts[1].section}
294+ />
295+ </div>
296+ </div>
297+ </Section>
311298 </SingleColumn>
312299 <Footer />
313300 </Container>