Skip to content

Commit 2ed4474

Browse files
authored
Merge pull request #5 from ameen4455/about_us
Update about us
2 parents 95027d1 + f44e3c5 commit 2ed4474

File tree

4 files changed

+100
-4
lines changed

4 files changed

+100
-4
lines changed

gatsby-node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ exports.createPages = async ({ graphql, actions }) => {
6262
const indexTemplate = path.resolve(`./src/templates/index.js`);
6363
const blogsTemplate = path.resolve(`./src/templates/blogs.js`);
6464
const tagsTemplate = path.resolve(`./src/templates/tag.js`);
65-
const authorTemplate = path.resolve(`./src/templates/author.js`);
65+
// const authorTemplate = path.resolve(`./src/templates/author.js`);
6666
const pageTemplate = path.resolve(`./src/templates/page.js`);
6767
const postTemplate = path.resolve(`./src/templates/post.js`);
68-
68+
6969
// Create tag pages
7070
tags.forEach(({ node }) => {
7171
const totalPosts = node.postCount !== null ? node.postCount : 0;

src/pages/about_us.js

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
import * as React from "react";
2+
import PropTypes from "prop-types";
3+
import { Layout } from "../components/common";
4+
5+
const Index = () => {
6+
return (
7+
<Layout>
8+
<TopSection />
9+
<ImpactsAndProgress />
10+
</Layout>
11+
);
12+
};
13+
14+
export default Index;
15+
16+
function TopSection() {
17+
return (
18+
<div className="bg-bg-black">
19+
<div className="px-4 py-6 md:py-16 md:text-lg responsive-container">
20+
<h1 className="text-white text-2xl font-semibold md:text-3xl">
21+
Community powered and funded
22+
</h1>
23+
<p className=" text-gray-400 mt-3">
24+
At the Internet Freedom Foundation, we fight with courage and strategy
25+
to advance liberty, equality, fraternity and social justice in the
26+
digital age.
27+
</p>
28+
<p className=" text-gray-400 mt-2">
29+
We sustain IFF on a large community of volunteers and donations by
30+
ordinary Indians like you. IFF makes monthly disclosures and quarterly
31+
calls and is rated by Guidestar and Credibility Alliance. Join IFF and
32+
help support people over power and platforms.
33+
</p>
34+
<p className=" text-gray-400 mt-2">
35+
We follow radical{" "}
36+
<span className="text-iff-orange">Transparency and Disclosures</span>
37+
</p>
38+
<div className="mt-6">
39+
<button className="btn">Donate</button>
40+
<button className="btn-secondary ml-4">Subscribe</button>
41+
</div>
42+
</div>
43+
</div>
44+
);
45+
}
46+
47+
function ImpactsAndProgress() {
48+
return (
49+
<div className="px-4 py-6 md:py-16 md:text-lg text-gray-500 flex-col lg:flex-row gap-8 responsive-container flex">
50+
<div className="">
51+
<h2 className=" text-gray-900 text-xl md:text-2xl font-semibold mb-2">
52+
India’s digital rights under threat
53+
</h2>
54+
<p>
55+
While India is racing towards a tech revolution, there is a growing
56+
concentration of power and profit that is eroding our fundamental
57+
rights. We are witnessing a rise in web censorship, internet
58+
shutdowns, surveillance and fresh challenges by artificial
59+
intelligence. There is no denying the simple fact: our digital
60+
liberties are under constant threat. Technology today is often being
61+
seen not only as a friend, but as a Big Brother! It’s time to fight
62+
back.
63+
</p>
64+
<button className="btn-secondary mt-4">IFF’s impact</button>
65+
</div>
66+
67+
<div className="">
68+
<h2 className="text-gray-900 text-xl md:text-2xl font-semibold mb-2">
69+
Public advocacy, public victories
70+
</h2>
71+
<p>
72+
We are born out of the net neutrality, SaveTheInternet.in movement.
73+
Our campaigning roots tie in with policy expertise. IFF’s staff and
74+
volunteers weave digital literacy campaigns and special projects. Such
75+
advocacy channels the power of an informed community towards
76+
government institutions. When that fails, we have a proven record of
77+
strategic litigation. We achieve victories with collaboration,
78+
strategy, and rigour.
79+
</p>
80+
<button className="btn-secondary mt-4">IFF’s progress</button>
81+
</div>
82+
</div>
83+
);
84+
}
85+

src/styles/global.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,16 @@
1818
.post-container {
1919
@apply px-4 py-4 mx-auto sm:max-w-xl md:max-w-full lg:max-w-screen-xl md:px-24 lg:px-8 lg:pt-16;
2020
}
21+
22+
.btn {
23+
@apply border-2 border-iff-orange text-white bg-iff-orange px-6 py-2 rounded-sm;
24+
}
25+
26+
.btn-secondary {
27+
@apply border-2 border-iff-orange text-iff-orange px-6 py-2 rounded-sm;
28+
}
29+
30+
.responsive-container {
31+
@apply md:mx-auto max-w-screen-md 2xl:max-w-screen-lg;
32+
}
2133
}

src/templates/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,8 @@ export const pageQuery = graphql`
159159
edges {
160160
node {
161161
...GhostPostFields
162-
}
162+
}
163163
}
164164
}
165165
}
166166
`;
167-

0 commit comments

Comments
 (0)