-
-
Notifications
You must be signed in to change notification settings - Fork 508
feat(web): add affiliates landing page #942
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
Open
AchoArnold
wants to merge
3
commits into
main
Choose a base branch
from
AchoArnold/affiliates-page
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+231
−3
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,228 @@ | ||
| <script setup lang="ts"> | ||
| import { | ||
| mdiCashMultiple, | ||
| mdiCreation, | ||
| mdiLinkVariant, | ||
| mdiWalletOutline, | ||
| mdiCalendarClock, | ||
| mdiCursorDefaultClick, | ||
| mdiArrowRightThin, | ||
| mdiChevronDown, | ||
| } from '@mdi/js' | ||
|
|
||
| definePageMeta({ | ||
| layout: 'website', | ||
| }) | ||
|
|
||
| useSeoMeta({ | ||
| title: 'Affiliate Program — Earn 20% on every sale | httpSMS', | ||
| description: | ||
| 'Become a httpSMS affiliate and earn 20% commission — up to $70.00 — on every customer you refer. Free to join, powered by Lemon Squeezy.', | ||
| ogTitle: 'Get paid to share httpSMS — earn 20% on every sale', | ||
| ogDescription: | ||
| 'Become a httpSMS affiliate and earn 20% commission — up to $70.00 — on every customer you refer. Free to join, powered by Lemon Squeezy.', | ||
| ogImage: 'https://httpsms.com/header.png', | ||
| twitterCard: 'summary_large_image', | ||
| }) | ||
|
|
||
| const { mdAndDown } = useDisplay() | ||
|
|
||
| const signupUrl = 'https://affiliates.lemonsqueezy.com/programs/httpsms' | ||
|
|
||
| const highlights = [ | ||
| { value: '20%', label: 'commission on every sale' }, | ||
| { value: '$70', label: 'max earned per referral' }, | ||
| { value: 'NET30', label: 'payout terms' }, | ||
| { value: '$10', label: 'minimum payout' }, | ||
| ] | ||
|
|
||
| const faqs = [ | ||
| { | ||
| icon: mdiCreation, | ||
| question: 'Why promote us?', | ||
| answer: | ||
| "Affiliate partnerships are one of the simplest yet most profitable ways to make money online. You send customers our way, and we'll pay you for it.", | ||
| }, | ||
| { | ||
| icon: mdiLinkVariant, | ||
| question: 'How do I make money as an affiliate?', | ||
| answer: | ||
| 'All you have to do is recommend us using your affiliate link on your website, blog, and social media. We track your clicks and transactions so you can get paid.', | ||
| }, | ||
| { | ||
| icon: mdiCashMultiple, | ||
| question: 'How much can I earn?', | ||
| answer: | ||
| "You earn 20% commission — up to $70.00 — on every referral that results in a successful sale. There's no limit to how much you can make by promoting us.", | ||
| }, | ||
| { | ||
| icon: mdiWalletOutline, | ||
| question: 'What are the payout minimums?', | ||
| answer: | ||
| 'We require a minimum balance of $10.00 before processing an affiliate payout. We set this to avoid any fraudulent issues with our affiliate program.', | ||
| }, | ||
| { | ||
| icon: mdiCalendarClock, | ||
| question: 'When do I get paid?', | ||
| answer: | ||
| 'We payout on NET30 terms to account for refunds and chargebacks. For example, commissions generated in January would be paid out on March 15th (NET30).', | ||
| }, | ||
| { | ||
| icon: mdiCursorDefaultClick, | ||
| question: 'How do I sign up?', | ||
| answer: | ||
| 'The Lemon Squeezy affiliate hub hosts our affiliate program. Click the "Become an affiliate" button below to create a Lemon Squeezy account and join our program.', | ||
| }, | ||
| ] | ||
|
|
||
| const scrollToFaq = () => { | ||
| document.getElementById('faq')?.scrollIntoView({ behavior: 'smooth' }) | ||
| } | ||
| </script> | ||
|
|
||
| <template> | ||
| <div> | ||
| <!-- Hero --> | ||
| <VContainer> | ||
| <VRow> | ||
| <VCol cols="12" md="8" offset-md="2" class="pt-16 pb-8 text-center"> | ||
| <VChip color="pink" label class="mb-6"> | ||
| <VIcon start :icon="mdiCashMultiple" /> | ||
| Affiliate Program | ||
| </VChip> | ||
| <h1 class="text-display-large font-weight-bold pb-1"> | ||
| Get paid to share httpSMS | ||
| </h1> | ||
| <h2 | ||
| class="text-medium-emphasis text-headline-small font-weight-light mt-8 mb-8" | ||
| > | ||
| Earn | ||
| <span class="text-primary font-weight-bold">20% commission</span> — | ||
| up to <span class="text-primary font-weight-bold">$70.00</span> — on | ||
| every customer you refer. Recommend httpSMS on your blog, videos, or | ||
| social, and we'll track every click and pay you. | ||
| </h2> | ||
| <div> | ||
| <VBtn | ||
| color="primary" | ||
| size="large" | ||
| class="ma-2" | ||
| :href="signupUrl" | ||
| target="_blank" | ||
| rel="noopener" | ||
| > | ||
| <VIcon start :icon="mdiCashMultiple" /> | ||
| Become an affiliate | ||
| </VBtn> | ||
| <VBtn | ||
| size="large" | ||
| variant="tonal" | ||
| class="ma-2" | ||
| @click="scrollToFaq" | ||
| > | ||
| How it works | ||
| <VIcon end :icon="mdiChevronDown" /> | ||
| </VBtn> | ||
| </div> | ||
| </VCol> | ||
| </VRow> | ||
| </VContainer> | ||
|
|
||
| <!-- Highlights --> | ||
| <VSheet class="py-16"> | ||
| <VContainer> | ||
| <VRow> | ||
| <VCol | ||
| v-for="highlight in highlights" | ||
| :key="highlight.label" | ||
| cols="6" | ||
| md="3" | ||
| class="text-center" | ||
| > | ||
| <p class="text-display-medium font-weight-bold text-primary mb-1"> | ||
| {{ highlight.value }} | ||
| </p> | ||
| <p class="text-title-large font-weight-light text-medium-emphasis"> | ||
| {{ highlight.label }} | ||
| </p> | ||
| </VCol> | ||
| </VRow> | ||
| </VContainer> | ||
| </VSheet> | ||
|
|
||
| <!-- FAQ --> | ||
| <VContainer id="faq" class="py-16"> | ||
| <VRow> | ||
| <VCol cols="12" md="8" offset-md="2"> | ||
| <h2 | ||
| class="text-md-display-large text-display-medium text-center mb-4" | ||
| > | ||
| Frequently Asked Questions | ||
| </h2> | ||
| <p class="text-center text-title-large text-medium-emphasis mb-8"> | ||
| Everything you need to know before you start earning with httpSMS. | ||
| </p> | ||
| </VCol> | ||
| </VRow> | ||
| <VRow> | ||
| <VCol | ||
| v-for="faq in faqs" | ||
| :key="faq.question" | ||
| cols="12" | ||
| md="6" | ||
| class="py-6" | ||
| > | ||
| <div class="d-flex" :class="{ 'flex-column text-center': mdAndDown }"> | ||
| <VIcon | ||
| size="32" | ||
| color="primary" | ||
| class="mr-4 mb-2" | ||
| :class="{ 'mx-auto': mdAndDown }" | ||
| :icon="faq.icon" | ||
| /> | ||
| <div> | ||
| <h3 class="text-headline-small font-weight-bold mb-2"> | ||
| {{ faq.question }} | ||
| </h3> | ||
| <p | ||
| class="text-title-large font-weight-light text-medium-emphasis" | ||
| > | ||
| {{ faq.answer }} | ||
| </p> | ||
| </div> | ||
| </div> | ||
| </VCol> | ||
| </VRow> | ||
| </VContainer> | ||
|
|
||
| <!-- Closing CTA --> | ||
| <VSheet class="py-16"> | ||
| <VContainer> | ||
| <VRow> | ||
| <VCol cols="12" md="8" offset-md="2" class="text-center"> | ||
| <h2 class="text-display-medium font-weight-bold mb-4"> | ||
| Ready to start earning? | ||
| </h2> | ||
| <p | ||
| class="text-title-large font-weight-light text-medium-emphasis mb-8" | ||
| > | ||
| Join free, grab your link, and turn your audience into recurring | ||
| income. | ||
| </p> | ||
| <VBtn | ||
| color="primary" | ||
| size="x-large" | ||
| :href="signupUrl" | ||
| target="_blank" | ||
| rel="noopener" | ||
| > | ||
| <VIcon start :icon="mdiCashMultiple" /> | ||
| Become an affiliate | ||
| <VIcon end :icon="mdiArrowRightThin" /> | ||
| </VBtn> | ||
| </VCol> | ||
| </VRow> | ||
| </VContainer> | ||
| </VSheet> | ||
| </div> | ||
| </template> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<h2>instead of<p>The hero description ("Earn up to $70 for every customer…") is tagged as
<h2>, giving it the same heading level as the five semantic section headings that follow ("Why promote httpSMS", "How it works", etc.). Screen readers and SEO crawlers build a document outline from<h>tags, so a descriptive paragraph styled as<h2>flattens the hierarchy. A<p>tag with the same Vuetify typography classes would convey the same visual appearance while keeping the heading structure meaningful. The same four classes (text-headline-small font-weight-light text-medium-emphasis mb-8) work on a<p>element.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!