Skip to content

Commit

Permalink
Merge pull request #43 from ctbwx/newsletter
Browse files Browse the repository at this point in the history
Adds Subscribe page
  • Loading branch information
ctbwx authored Mar 2, 2024
2 parents 2ac5163 + 8ebf7bb commit ae3dd6d
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import { PageHead } from './PageHead'

import styles from './styles.module.css'

export const Subscribe: React.FC<types.PageProps> = ({ site }) => {
export const SubscriptionConfirmation: React.FC<types.PageProps> = ({
site
}) => {
const title = site?.name || 'Subscribe'

return (
Expand All @@ -15,7 +17,7 @@ export const Subscribe: React.FC<types.PageProps> = ({ site }) => {

<div className={styles.container}>
<main className={styles.main}>
<h1>Subscribe To The Blog!</h1>
<h1 style={{ color: 'rgb(154, 109, 215)' }}>You are subscribed!</h1>
</main>
</div>
</>
Expand Down
3 changes: 0 additions & 3 deletions pages/subscribe.tsx

This file was deleted.

3 changes: 3 additions & 0 deletions pages/subscription-confirmation.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { SubscriptionConfirmation } from '@/components/SubscriptionConfirmation'

export default SubscriptionConfirmation
43 changes: 43 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion site.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,10 @@ export default siteConfig({
// important pages. To use `navigationLinks`, set `navigationStyle` to `custom`.
// navigationStyle: 'default'
navigationStyle: 'custom',
navigationLinks: []
navigationLinks: [
{
title: 'Subscribe',
pageId: 'f55931fc01134c97a32ca4f0104f6cf0'
}
]
})

0 comments on commit ae3dd6d

Please sign in to comment.