Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Beehiiv newsletter form #224

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/theme/Footer/Links/MultiColumn/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import LinkItem from '@theme/Footer/LinkItem'
import styles from './styles.module.css'
import MailChimpNewsLetter from '../../MailSubsription/MailChimpNewsLetter.js'
import BeehiivNewsLetter from '../../MailSubsription/BeehiivNewsLetter.js'

function ColumnLinkItem({ item }) {
return item.html ? (
Expand Down Expand Up @@ -36,7 +36,7 @@ export default function FooterLinksMultiColumn({ columns }) {
<Column key={i} column={column} />
))}
{/* Subscribe */}
<MailChimpNewsLetter />
<BeehiivNewsLetter />
</div>
)
}
Expand Down
13 changes: 13 additions & 0 deletions src/theme/Footer/MailSubsription/BeehiivNewsLetter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react'
import styles from './styles.module.css'

const BeehiivNewsLetter = () => {
return (
<div className={styles.mailChimp}>
<div className={styles.mailChimp__title}>Subscribe to Newsletter</div>
<iframe src="https://embeds.beehiiv.com/b585ef59-5562-4611-928d-6ff081772079?slim=true" data-test-id="beehiiv-embed" height="52" frameborder="0" scrolling="no" style={{margin: "0", borderRadius: "0px !important", backgroundColor: "transparent"}}></iframe>
</div>
)
}

export default BeehiivNewsLetter