Skip to content

Commit

Permalink
fix: add pricing to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
qinluhe committed Jul 6, 2024
1 parent c5883c5 commit a8cdb4d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion components/layout/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function Footer({ onChangeMode }: { onChangeMode: (dark?: boolean) => void }) {
</div>
</div>
<div className={'menu'}>
{links.filter(item => !item.hideInFooter).map((item) => (
{links.map((item) => (
<div className={'item'} key={item.name}>
<span className={'group-name'}>{item.name}</span>
{item.children.map((child) => (
Expand Down
3 changes: 2 additions & 1 deletion components/pricing/pricing-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { Divider } from '@mui/material';
import Link from 'next/link';
import React, { useMemo, useState } from 'react';
import StarFill from '@/components/icons/star-fill';

const freePlan = {
plan: 'Free',
Expand Down Expand Up @@ -32,7 +33,7 @@ function PricingList() {

const options = useMemo(() => [
{
label: <div>Yearly <span className={'primary'}>*</span>SAVE 20%</div>,
label: <div className={'flex items-center gap-2'}>Yearly <StarFill />SAVE 20%</div>,
value: 'yearly',
plans: [freePlan, proPlan],
},
Expand Down
4 changes: 2 additions & 2 deletions components/pricing/unlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const plans = [{
disabled: false,
label: 'Unlock',
},
priceDesc: 'per user per month billed annually\n10 billed monthly',
priceDesc: 'per user per month billed annually\nUS$10 billed monthly',
content: ['Unlimited AI responses powered by GPT-4o, Claude 3.5 Sonnet, and more', 'Select your preferred, most advanced models'],
}, {
title: 'AppFlowy AI On-device',
Expand All @@ -21,7 +21,7 @@ const plans = [{
},
desc: 'Local AI on your own hardware for ultimate privacy',
price: 'US$8',
priceDesc: 'per user per month billed annually\n10 billed monthly',
priceDesc: 'per user per month billed annually\nUS$10 billed monthly',
content: ['Run large language models locally - No internet required', 'Chat with your local files (coming soon)'],
}];

Expand Down
11 changes: 5 additions & 6 deletions lib/config/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export const links = [
name: 'Email Newsletter',
link: '/subscribe-newsletter',
},
{
name: 'Pricing',
link: '/pricing',
},
],
},
{
Expand Down Expand Up @@ -165,10 +169,5 @@ export const links = [
},
],
},
{
name: 'Pricing',
link: '/pricing',
children: [],
hideInFooter: true,
},

];

0 comments on commit a8cdb4d

Please sign in to comment.