Skip to content

Commit 98921ea

Browse files
proxy module
1 parent 1d777fe commit 98921ea

File tree

14 files changed

+42
-40
lines changed

14 files changed

+42
-40
lines changed

netlify-functions/getBlogs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ exports.handler = async () => {
88
const data = response.data;
99
xml2js.parseString(data, (err, result) => {
1010
const sendthis = result.rss.channel[0].item.slice(0, 3);
11+
console.log(sendthis,'swac')
1112
return ( {
1213
statusCode: 200,
1314
headers: {

netlify-functions/getLikedTweets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports.handler = async () => {
99
return ({
1010
statusCode: 200,
1111
headers: {
12-
"Access-Control-Allow-Origin": "*"
12+
"Access-Control-Allow-Origin": '*'
1313
},
1414
body: JSON.stringify(likedTweetsResponse.data)
1515
});

netlify-functions/getTweets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports.handler = async () => {
99
return ({
1010
statusCode: 200,
1111
headers: {
12-
"Access-Control-Allow-Origin": "*"
12+
"Access-Control-Allow-Origin": '*'
1313
},
1414
body: JSON.stringify(allTweetsResponse.data)
1515
});

netlify.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
# provide twitter api key
55
[build.environment]
66
TWITTER_API_KEY = "AAAAAAAAAAAAAAAAAAAAAIWYFwEAAAAAA3RBpjzS8nlirryXCXM%2FTsl8sKo%3DaWb1t2lrgmUeZqvFF6OTiyALws9gdVKkO0009mYmqvDcr2LAy2"
7+
Access-Control-Allow-Origin = "*"

src/components/Collaborate/CollaborateCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const CollaborateCard = props => {
99
<h4 className="collaborate-card-title option" style={{ height: "100" }}>
1010
{props.title}
1111
</h4>
12-
<p className="collaborate-card-description">{props.description}</p>
12+
<div className="collaborate-card-description">{props.description}</div>
1313
</div>
1414
</div>
1515
);

src/components/DonateUs/Donate.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@ import React from "react";
33
const DonateCard = () => {
44
return (
55
<div
6-
class="mt-10 container lift"
6+
className="mt-10 container lift"
77
style={{
88
textAlign: "left",
99
color: "white",
1010
backgroundColor: " #22247A",
1111
width: "100%"
1212
}}
1313
>
14-
<div class="row">
15-
<div class="col-md-6 co-12 ml-0 pt-6 pb-6 pl-8">
14+
<div className="row">
15+
<div className="col-md-6 co-12 ml-0 pt-6 pb-6 pl-8">
1616
<h2>Donate Us</h2>
1717
<p>COMMUNITY FUND AND PROJECT INCUBATION</p>
1818
<a
1919
href="https://funding.communitybridge.org/projects/codeuino-mentorship"
20-
class="ml-0 btn btn-primary shadow lift"
20+
className="ml-0 btn btn-primary shadow lift"
2121
style={{ color: " #22247A", backgroundColor: "white" }}
2222
>
2323
The Linux Foundation Mentorship Platform
2424
</a>
2525
</div>
26-
<div class="col-md-6 col-12" id="join">
26+
<div className="col-md-6 col-12" id="join">
2727
<p>
2828
Codeuino is an Open Source Social Networking organisation that
2929
provides various robust frameworks solutions which could span the

src/components/Medium/Medium.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ class Medium extends React.Component {
1919
}
2020
}
2121
componentDidMount() {
22-
this.fetchBlogs()
22+
// this.fetchBlogs()
2323
}
2424

2525
render() {
2626
return (
27-
<div class="container" style={{ width: "100%", alignContent: "left" }}>
28-
<h1 class="component-heading">Latest Blogs</h1>
27+
<div className="container" style={{ width: "100%", alignContent: "left" }}>
28+
<h1 className="component-heading">Latest Blogs</h1>
2929
<div
30-
class="row justify-content-center Medium"
30+
className="row justify-content-center Medium"
3131
style={{ textAlign: "left" }}
3232
>
33-
{this.state.posts.map((post, index) => (
33+
{/*this.state.posts.map((post, index) => (
3434
<div className="col-md-4 Medium-post" key={index}>
3535
<a class="outer-link" href={post.link[0]}>
3636
<div>
@@ -41,7 +41,7 @@ class Medium extends React.Component {
4141
</div>
4242
</a>
4343
</div>
44-
))}
44+
))*/}
4545
</div>
4646
</div>
4747
);

src/components/Testimonials/Testimonials.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ const Testimonials = () => {
4141
containerClass="carousel-container"
4242
itemClass="carousel-item-class"
4343
>
44-
{Data.map(testimonial => {
44+
{Data.map((testimonial,index) => {
4545
return (
46-
<div class="container">
47-
<div class="testimonial-card">
48-
<div class="text">
46+
<div className="container" key={index}>
47+
<div className="testimonial-card">
48+
<div className="text">
4949
{testimonial.quote} <i class="fas fa-quote-right quote"></i>
5050
</div>
51-
<div class="testimonial-card-footer-outer">
52-
<div class="testimonial-card-footer">
53-
<div class="image">
51+
<div className="testimonial-card-footer-outer">
52+
<div className="testimonial-card-footer">
53+
<div className="image">
5454
<img
5555
alt="testimonial pic"
5656
width="100%"

src/pages/Home/Components/Collaborate.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,17 @@ const collaborationMethods = [
8181
const Collaborate = () => {
8282
return (
8383
<div
84-
class="container pt-10"
84+
className="container pt-10"
8585
id="collaborate"
8686
style={{ width: "100%", alignContent: "left" }}
8787
>
88-
<span class="badge badge-pill badge-primary-soft mb-3 text-center">
89-
<span class="h6 text-uppercase font-weight-bold">Collaborate</span>
88+
<span className="badge badge-pill badge-primary-soft mb-3 text-center">
89+
<span className="h6 text-uppercase font-weight-bold">Collaborate</span>
9090
</span>
91-
<h1 class="component-heading">How Can I Support?</h1>
92-
<div class="row" style={{ textAlign: "left" }}>
91+
<h1 className="component-heading">How Can I Support?</h1>
92+
<div className="row" style={{ textAlign: "left" }}>
9393
{collaborationMethods.map((ele, index) => (
94-
<div className="col-md-3 p-0">
94+
<div className="col-md-3 p-0" key={index}>
9595
<CollaborateCard {...ele} key={index} />
9696
</div>
9797
))}

src/pages/Home/Components/JoinUs.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ const joinUsMethods = {
4242
const JoinUs = () => {
4343
return (
4444
<div
45-
class="container pt-10"
45+
className="container pt-10"
4646
style={{ width: "100%", alignContent: "left" }}
4747
>
48-
<span class="badge badge-pill badge-primary-soft mb-3 text-center">
49-
<span class="h6 text-uppercase font-weight-bold">Join Us</span>
48+
<span className="badge badge-pill badge-primary-soft mb-3 text-center">
49+
<span className="h6 text-uppercase font-weight-bold">Join Us</span>
5050
</span>
51-
<h1 class="component-heading">How can I get Involved?</h1>
52-
<div class="row justify-content-center" style={{ textAlign: "left" }}>
51+
<h1 className="component-heading">How can I get Involved?</h1>
52+
<div className="row justify-content-center" style={{ textAlign: "left" }}>
5353
<div className="col-md-4 p-0">
5454
<a href="http://slack.codeuino.org/">
5555
<CollaborateCard {...joinUsMethods.slack} />

0 commit comments

Comments
 (0)