From 421dcd7b58162767102a7b69d2ee4c1b15a7de17 Mon Sep 17 00:00:00 2001 From: ctbw Date: Sat, 2 Mar 2024 12:15:59 -0600 Subject: [PATCH] adds mailchimp integration script, adds subscribe page --- components/Subscribe.tsx | 23 +++++++++++++++++++++++ pages/_document.tsx | 18 +++++++++++++++++- pages/subscribe.tsx | 3 +++ 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 components/Subscribe.tsx create mode 100644 pages/subscribe.tsx diff --git a/components/Subscribe.tsx b/components/Subscribe.tsx new file mode 100644 index 0000000..1dda754 --- /dev/null +++ b/components/Subscribe.tsx @@ -0,0 +1,23 @@ +import * as React from 'react' + +import * as types from '@/lib/types' + +import { PageHead } from './PageHead' + +import styles from './styles.module.css' + +export const Subscribe: React.FC = ({ site }) => { + const title = site?.name || 'Subscribe' + + return ( + <> + + +
+
+

Subscribe To The Blog!

+
+
+ + ) +} diff --git a/pages/_document.tsx b/pages/_document.tsx index 5cb3005..555b975 100644 --- a/pages/_document.tsx +++ b/pages/_document.tsx @@ -1,5 +1,6 @@ import * as React from 'react' import Document, { Head, Html, Main, NextScript } from 'next/document' +import Script from 'next/script' import { IconContext } from '@react-icons/all-files' @@ -16,8 +17,22 @@ export default class MyDocument extends Document { sizes='32x32' href='favicon.png' /> - + + @@ -62,6 +77,7 @@ export default class MyDocument extends Document { }} />
+ {/*