Skip to content

Commit

Permalink
create subscribe button
Browse files Browse the repository at this point in the history
  • Loading branch information
Holtz Yan authored and Holtz Yan committed Aug 31, 2023
1 parent 581e8c6 commit c863c63
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
26 changes: 2 additions & 24 deletions src/components/Contact.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import './contact.css';
import Button from 'react-bootstrap/Button';
import SubscribeButton from './SubscribeButton';

// Component for the Contact & Edit section at the bottom of each page.
// If a pageSlug prop is provided, a link to the according github page will be provided.
Expand Down Expand Up @@ -56,29 +56,7 @@ export default function Contact({ pageSlug, isNotebook }) {

<br />

<div>
<Button
size="md"
href="https://github.com/holtzy/The-Python-Graph-Gallery"
>
Github
</Button>
<Button size="md" href="https://twitter.com/R_Graph_Gallery">
Twitter
</Button>
{pageSlug && (
<Button size="md" href={editPageUrl}>
Edit
</Button>
)}
<Button
size="md"
href="https://datavizuniverse.substack.com/"
bsStyle="primary"
>
Subscribe
</Button>
</div>
<SubscribeButton />
</div>
);
}
Expand Down
14 changes: 14 additions & 0 deletions src/components/SubscribeButton.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';
import './subscribe-button.css';

export default function SubscribeButton() {
return (
<div className="subscribe-button-container">
<iframe
src="https://datavizuniverse.substack.com/embed"
width="480"
height="70"
/>
</div>
);
}
7 changes: 7 additions & 0 deletions src/components/subscribe-button.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.subscribe-button-container {
background-color: white;
}

.subscribe-button-container .substack-watermark {
display: none !important;
}

0 comments on commit c863c63

Please sign in to comment.