Skip to content

Commit

Permalink
Newsletter Subscribe (#1258)
Browse files Browse the repository at this point in the history
Signed-off-by: nikhilchauhangithub <[email protected]>
  • Loading branch information
nikhilchauhangithub authored Jul 20, 2023
1 parent 425a67a commit dca530f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"react": "17.0.2",
"react-dom": "17.0.2",
"react-github-btn": "^1.4.0",
"react-mailchimp-subscribe": "^2.1.3",
"sass": "^1.63.6"
},
"browserslist": {
Expand Down
12 changes: 12 additions & 0 deletions src/components/Newsletter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import MailchimpSubscribe from 'react-mailchimp-subscribe';

const Newsletter = () => {
return (
<div style={{ padding: '20px' }}>
<MailchimpSubscribe url="https://kubevela.us17.list-manage.com/subscribe/post?u=27213eba6a4772c86d2332aeb&amp;id=f0873592ac&amp;f_id=002857e0f0" />
</div>
);
};

export default Newsletter;
2 changes: 2 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import FeatureList from '../components/FeatureList';
import Button from '../components/button';
import WhatIs from '../components/WhatIs';
import Integration from '../components/Integration';
import Newsletter from '../components/Newsletter';

export default function Home() {
const context = useDocusaurusContext();
Expand Down Expand Up @@ -70,6 +71,7 @@ export default function Home() {
<div className="cncf-Logo" />
</div>
</div>
<Newsletter />
</Layout>
);
}

0 comments on commit dca530f

Please sign in to comment.