Skip to content

Commit 6c69d72

Browse files
authored
Merge branch 'dev' into pagination
2 parents c8d9f4e + cb27fe9 commit 6c69d72

File tree

11 files changed

+451
-20
lines changed

11 files changed

+451
-20
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import React from "react"
2+
3+
const localData = {
4+
title: `Donate`,
5+
description: `Help IFF scale up by making a donation for digital rights. Really, when it comes to free speech online, digital privacy, net neutrality and innovation — we got your back!`,
6+
plea: `You can also support us in many non monetary ways`
7+
}
8+
const DonateCard = () => {
9+
return (
10+
<div className="bg-bg-black min-w-full">
11+
<div id="header-card" className="mt-16 ml-96 mb-24">
12+
<h1 className="text-white text-3xl leading-7 not-italic max-w-lg">{localData.title}</h1>
13+
<p id="site-banner-desc" className="my-4 max-w-lg text-white text-xl leading-6 not-italic">{localData.description}</p>
14+
<p id="site-banner-desc" className="my-4 max-w-lg text-body-grey leading-6 not-italic mt-3.5 mb-14">{localData.plea}</p>
15+
<button class="border border-iff-orange hover:text-white text-iff-orange font-normal text-xl leading-6 not-italic py-2 rounded w-36 h-14">Know more</button>
16+
</div>
17+
<div id="donate-widget" className="ml-72 bg-bg-dark-grey w-[530px] h-[438px]">
18+
<div class="text-sm font-medium text-center text-gray-500">
19+
<ul class="flex flex-wrap -mb-px bg-bg-light-grey">
20+
<li class="ml-16 mr-2">
21+
<a href="" className="inline-block p-4 rounded-t-lg border-b-2 border-transparent hover:text-body-grey hover:border-gray-300">One time</a>
22+
</li>
23+
<li className="mr-2">
24+
<a href="" className="inline-block p-4 text-iff-orange rounded-t-lg border-b-2 border-iff-orange active dark:iff-orange" aria-current="page">Monthly</a>
25+
</li>
26+
<li className="mr-2">
27+
<a href="" className="inline-block p-4 rounded-t-lg border-b-2 border-transparent hover:text-body-grey hover:border-gray-300">Annual</a>
28+
</li>
29+
30+
</ul>
31+
</div>
32+
<p className="text-white">siteConfig</p>
33+
</div>
34+
35+
</div>
36+
);
37+
};
38+
39+
export default DonateCard;

src/components/common/Layout.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { GatsbyImage } from "gatsby-plugin-image";
66

77
import { Navigation } from ".";
88
import { Footer } from ".";
9+
import { DonateCard } from ".";
910
import config from "../../utils/siteConfig";
1011
import { useState } from "react";
1112

@@ -131,6 +132,9 @@ const DefaultLayout = ({ data, children, bodyClass, isHome }) => {
131132
{/* All the main content gets inserted here, index.js, post.js */}
132133
{children}
133134
</main>
135+
<div className="flex items-center justify-center">
136+
<DonateCard />
137+
</div>
134138
</div>
135139
<Footer />
136140
</div>

src/components/common/PostCard.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,18 @@ const PostCard = ({ post, number }) => {
1515
<div id="post-features" className="ml-6">
1616
<header className="post-card-header">
1717
{post.featured && <span>Featured</span>}
18-
<h2 id="post-card-title" className="text-xl mb-3 text-heading-black font-bold">
18+
<h2 id="post-card-title" className="text-xl mb-3 text-heading-black font-bold hover:underline hover:underline-offset-8">
1919
{post.title}
2020
</h2>
2121
</header>
22-
<div id="post-card-excerpt" className="mb-3 text-body-grey">{post.excerpt}</div>
22+
<div id="post-card-excerpt" className="mb-3 text-body-grey text-justify">{post.excerpt}</div>
2323
<footer id="post-card-footer" className="flex mb-3">
24-
<div id="post-card-footer-left" className="mr-3 text-iff-orange">
24+
<div id="post-card-footer-left" className="mr-3 text-zinc-400 font-light">
2525
<span>{post.published_at_pretty}</span>
2626
</div>
27-
<div id="post-card-footer-left" className="ml-3 text-iff-orange flex-1">
27+
<div id="post-card-footer-left" className="ml-3 text-zinc-400 font-light flex-1">
2828
<div>{readingTime}</div>
2929
</div>
30-
<div id="post-card-footer-right" className="ml-3 mr-3 text-iff-orange underline ">
31-
<div>Read Now</div>
32-
</div>
3330
</footer>
3431
</div>
3532
</Link>

src/components/common/PostCardBlog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const PostCardBlog = ({ post, number }) => {
2828
key={index}
2929
className={`bg-slate-100 ${
3030
index > 0 ? "hidden md:inline" : ""
31-
} text-slate-500 mr-2 py-1 px-2 rounded-lg text-sm`}
31+
} capitalize text-slate-500 mr-2 py-1 px-2 rounded-lg text-sm`}
3232
>
3333
{tag.name}
3434
</span>

src/components/common/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ export { default as ProjectCarousel } from "./ProjectCarousel";
66
export { default as Pagination } from "./Pagination";
77
export { default as Navigation } from "./Navigation";
88
export { default as Footer } from "./Footer";
9+
export { default as DonateCard } from "./DonateCard";

0 commit comments

Comments
 (0)