Skip to content

Commit 4186496

Browse files
authored
Merge pull request #2 from jonerickson/feature/affiliates
Add affiliate program links
2 parents 43430be + ff48175 commit 4186496

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

src/app/layout.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Providers } from '@/app/providers';
22
import { Layout } from '@/components/Layout';
3+
import { Affiliates } from '@/components/Affiliates';
34

45
import '@/styles/tailwind.css';
56

@@ -27,6 +28,7 @@ export default function RootLayout({ children }) {
2728
<Layout>{children}</Layout>
2829
</div>
2930
</Providers>
31+
<Affiliates />
3032
</body>
3133
</html>
3234
);

src/components/Affiliates.jsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use client';
2+
3+
import Script from 'next/script';
4+
5+
export function Affiliates() {
6+
return (
7+
<Script
8+
src='https://lmsqueezy.com/affiliate.js'
9+
onLoad={() =>
10+
(window.lemonSqueezyAffiliateConfig = { store: 'deschutesdesigngroup' })
11+
}
12+
/>
13+
);
14+
}

src/components/Footer.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function Footer() {
1919
<ContainerOuter>
2020
<div className='border-t border-zinc-100 pb-16 pt-10 dark:border-zinc-700/40'>
2121
<ContainerInner>
22-
<div className='flex flex-col items-center justify-between gap-6 sm:flex-row'>
22+
<div className='flex flex-col items-center justify-between gap-6 md:items-start'>
2323
<div className='flex flex-wrap justify-center gap-x-6 gap-y-1 text-sm font-medium text-zinc-800 dark:text-zinc-200'>
2424
<NavLink href='/about'>About</NavLink>
2525
<NavLink href='/articles'>Articles</NavLink>
@@ -31,6 +31,12 @@ export function Footer() {
3131
>
3232
Store
3333
</NavLink>
34+
<NavLink
35+
href='https://store.deschutesdesigngroup.com/affiliates'
36+
target='_blank'
37+
>
38+
Affiliate Program
39+
</NavLink>
3440
<NavLink
3541
href='https://portal.deschutesdesigngroup.com'
3642
target='_blank'

0 commit comments

Comments
 (0)