Skip to content

Commit

Permalink
Merge pull request #200 from toeverything/feature/pricing-team
Browse files Browse the repository at this point in the history
Updated team pricing
  • Loading branch information
SuneBear authored Dec 27, 2024
2 parents 296cad8 + 72de4fa commit 16d1465
Show file tree
Hide file tree
Showing 6 changed files with 406 additions and 367 deletions.
614 changes: 307 additions & 307 deletions .yarn/releases/yarn-4.5.1.cjs → .yarn/releases/yarn-4.5.3.cjs
100644 → 100755

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ nmMode: hardlinks-local

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.5.1.cjs
yarnPath: .yarn/releases/yarn-4.5.3.cjs
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,4 @@ export default defineNuxtConfig({
disablePrefetchLinks: true,
disablePreloadLinks: true,
},
});
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@
"resolutions": {
"string-width": "4.2.3"
},
"packageManager": "[email protected].1"
"packageManager": "[email protected].3"
}
47 changes: 33 additions & 14 deletions pages/pricing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@
.planning-name Teams / Enterprise
.planning-desc Best for scalable teams.
.price-row.flex.items-end.gap-2
.price-amount Coming Soon
.price-amount
span.number {{ isYearly ? '$12' : '$15' }}
|  {{ $t('pricePage.perMonth') }}

.planning-list
.list-section Both in Teams & Enterprise:
Expand Down Expand Up @@ -274,49 +276,51 @@

.price-card.type-enterprise
.card-header
.planning-name Teams / Enterprise
.planning-name Team
.planning-desc Best for scalable teams.
.price-row.flex.items-end.gap-2
.price-amount Coming Soon
.price-amount
span.number {{ isYearly ? '$10' : '$12' }}
|  per seat/month

.planning-list
.list-section Both in Teams & Enterprise:
.list-section Include in Team Workspace:
.item
.item-icon
nuxt-icon( name="Done" filled)
.item-body Everything in AFFiNE Pro
.item
.item-icon
nuxt-icon( name="Done" filled)
.item-body Advanced Permission control, Page history and Review mode
.item-body 100 GB initial storage + 20 GB per seat
.item
.item-icon
nuxt-icon( name="Done" filled)
.item-body Pay for seats, fits all team size
.item-body 500 MB of maximum file size
.item
.item-icon
nuxt-icon( name="Done" filled)
.item-body Email & Slack Support
.list-section Enterprise only:
.item-body Unlimited team members (10+ seats)
.item
.item-icon
nuxt-icon( name="Done" filled)
.item-body SSO Authorization
.item-body Multiple admin roles
.item
.item-icon
nuxt-icon( name="Done" filled)
.item-body Solutions & Best Practices for Dedicated needs
.item-body Priority customer support
.item
.item-icon
nuxt-icon( name="Done" filled)
.item-body Embed-able & Integrations with IT support
.item-body
| The solution you need is more complex? 
a( :href="PATH.PRICING_CONTACT_FORM_TEAM" target="_blank" rel="nofollow" ) Tell us your use case.

.card-footer
nuxt-link( :href="PATH.PRICING_CONTACT_FORM_ENTERPRISE" target="_blank" rel="nofollow" )
nuxt-link( :href="teamActionLink" target="_blank" rel="nofollow" )
el-button(
type="primary"
size="action"
) Tell Us Your Use Case
) Upgrade

.section.section-believer-tier.mb-60px
.limit-container
Expand Down Expand Up @@ -356,6 +360,14 @@ const proActionLink = computed(() => {
return baseLink;
});
const teamActionLink = computed(() => {
let baseLink = isMonthly.value
? PATH.PRICING_TEAM_MONTHLY
: PATH.PRICING_TEAM_YEARLY;
return baseLink;
});
const { copy, copied } = useClipboard();
const handleCopyCouponClick = () => {
Expand Down Expand Up @@ -769,6 +781,9 @@ useHead({
font-size: 43px
padding-top: 17px
.number
min-width: 44px
.card-footer
padding: 12px 16px
Expand Down Expand Up @@ -802,6 +817,10 @@ useHead({
.nuxt-icon
font-size: 16px
.item-body
a
color: var(--brand)
.contact-us-button
text-align: center
background: rgba(0, 0, 0, 0.05);
Expand Down
106 changes: 63 additions & 43 deletions utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,78 +1,95 @@
import { __STAGING__ } from '~/utils/dev'
import { __STAGING__ } from '~/utils/dev';

// @TODO: Move the file to constants dir
export const PATH = {
SHARE_HOST: "https://affine.pro",
SHARE_HOST: 'https://affine.pro',

AFFINE_WEB_APP: "https://app.affine.pro",
AFFINE_DOWNHILLS: "https://app.affine.pro",
AFFINE_INSIDER: "https://insider.affine.pro",
AFFINE_PRE_ALPHA: "https://livedemo.affine.pro",
AFFINE_WEB_APP: 'https://app.affine.pro',
AFFINE_DOWNHILLS: 'https://app.affine.pro',
AFFINE_INSIDER: 'https://insider.affine.pro',
AFFINE_PRE_ALPHA: 'https://livedemo.affine.pro',
// AFFINE_AI_TRY: "https://ai.affine.pro",
AFFINE_AI_TRY: __STAGING__ ? "https://affine.fail/try-cloud" : "https://app.affine.pro/try-cloud",
AFFINE_AI_TRY: __STAGING__
? 'https://affine.fail/try-cloud'
: 'https://app.affine.pro/try-cloud',

AFFiNE_GITHUB: "https://github.com/toeverything/AFFiNE",
AFFiNE_GITHUB_ORG: "https://github.com/toeverything",
AFFiNE_BLOCK_SUITE: "https://github.com/toeverything/blocksuite",
AFFiNE_OCTO_BASE: "https://github.com/toeverything/octobase",
AFFiNE_HOME_PAGE: "https://github.com/toeverything/affine.pro",
AFFiNE_COMMUNITY: "https://community.affine.pro/",
AFFiNE_GITHUB: 'https://github.com/toeverything/AFFiNE',
AFFiNE_GITHUB_ORG: 'https://github.com/toeverything',
AFFiNE_BLOCK_SUITE: 'https://github.com/toeverything/blocksuite',
AFFiNE_OCTO_BASE: 'https://github.com/toeverything/octobase',
AFFiNE_HOME_PAGE: 'https://github.com/toeverything/affine.pro',
AFFiNE_COMMUNITY: 'https://community.affine.pro/',
AFFiNE_DOCS: 'https://docs.affine.pro/docs',

SNS_REDDIT: "https://www.reddit.com/r/Affine/",
SNS_DISCORD: "https://discord.com/invite/q3N9SnMfx2",
SNS_TELEGRAM: "https://t.me/affineworkos",
SNS_TWITTER: "https://twitter.com/AffineOfficial",
SNS_YOUTUBE: "https://www.youtube.com/@affinepro",
SNS_REDDIT: 'https://www.reddit.com/r/Affine/',
SNS_DISCORD: 'https://discord.com/invite/q3N9SnMfx2',
SNS_TELEGRAM: 'https://t.me/affineworkos',
SNS_TWITTER: 'https://twitter.com/AffineOfficial',
SNS_YOUTUBE: 'https://www.youtube.com/@affinepro',

INTERN_APPLY_FORM: "https://6dxre9ihosp.typeform.com/to/lnHWRsVS",
SING_UP: "https://app.affine.pro",
LOGIN: __STAGING__ ? "https://affine.fail/try-cloud" : "https://app.affine.pro/try-cloud",
PRICING_JOIN_WAITLIST: __STAGING__ ? "https://affine.fail/subscribe?plan=ai&recurring=yearly" : "https://app.affine.pro/subscribe?plan=ai&recurring=yearly",
PRICING_CONTACT_FORM_TEAM: "https://6dxre9ihosp.typeform.com/to/niBcdkvs",
PRICING_CONTACT_FORM_ENTERPRISE: "https://6dxre9ihosp.typeform.com/to/rFfobTjf",
PRICING_PRO_MONTHLY: __STAGING__ ? "https://affine.fail/subscribe?plan=pro&recurring=monthly" : "https://app.affine.pro/subscribe?plan=pro&recurring=monthly",
PRICING_PRO_YEARLY: __STAGING__ ? "https://affine.fail/subscribe?plan=pro&recurring=yearly" : "https://app.affine.pro/subscribe?plan=pro&recurring=yearly",
PRICING_BELIEVER_TIER: __STAGING__ ? "https://affine.fail/subscribe?plan=pro&recurring=lifetime" : "https://app.affine.pro/subscribe?plan=pro&recurring=lifetime",
GET_NOTIFIED_FORM: "https://6dxre9ihosp.typeform.com/to/B8IHwuyy",
COPILOT_FORM: "https://6dxre9ihosp.typeform.com/to/MjaI1NIV",
INTERN_APPLY_FORM: 'https://6dxre9ihosp.typeform.com/to/lnHWRsVS',
SING_UP: 'https://app.affine.pro',
LOGIN: __STAGING__
? 'https://affine.fail/try-cloud'
: 'https://app.affine.pro/try-cloud',
PRICING_JOIN_WAITLIST: __STAGING__
? 'https://affine.fail/subscribe?plan=ai&recurring=yearly'
: 'https://app.affine.pro/subscribe?plan=ai&recurring=yearly',
PRICING_CONTACT_FORM_TEAM: 'https://6dxre9ihosp.typeform.com/to/niBcdkvs',
PRICING_TEAM_MONTHLY: __STAGING__
? 'https://affine.fail/upgrade-to-team?recurring=Monthly'
: 'https://app.affine.pro/upgrade-to-team?recurring=Monthly',
PRICING_TEAM_YEARLY: __STAGING__
? 'https://affine.fail/upgrade-to-team?recurring=Yearly'
: 'https://app.affine.pro/upgrade-to-team?recurring=Yearly',
PRICING_PRO_MONTHLY: __STAGING__
? 'https://affine.fail/subscribe?plan=pro&recurring=monthly'
: 'https://app.affine.pro/subscribe?plan=pro&recurring=monthly',
PRICING_PRO_YEARLY: __STAGING__
? 'https://affine.fail/subscribe?plan=pro&recurring=yearly'
: 'https://app.affine.pro/subscribe?plan=pro&recurring=yearly',
PRICING_BELIEVER_TIER: __STAGING__
? 'https://affine.fail/subscribe?plan=pro&recurring=lifetime'
: 'https://app.affine.pro/subscribe?plan=pro&recurring=lifetime',
GET_NOTIFIED_FORM: 'https://6dxre9ihosp.typeform.com/to/B8IHwuyy',
COPILOT_FORM: 'https://6dxre9ihosp.typeform.com/to/MjaI1NIV',
};

export const COMMUNITY_SNS_LIST = [
{
name: "Twitter",
iconName: "twitter",
name: 'Twitter',
iconName: 'twitter',
link: PATH.SNS_TWITTER,
},
{
name: "GitHub",
iconName: "github",
name: 'GitHub',
iconName: 'github',
link: PATH.AFFiNE_GITHUB,
},
{
name: "Telegram",
iconName: "telegram",
name: 'Telegram',
iconName: 'telegram',
link: PATH.SNS_TELEGRAM,
},
{
name: "Discord",
iconName: "discord",
name: 'Discord',
iconName: 'discord',
link: PATH.SNS_DISCORD,
},
{
name: "YouTube",
iconName: "youtube",
name: 'YouTube',
iconName: 'youtube',
link: PATH.SNS_YOUTUBE,
},
{
name: "Reddit",
iconName: "reddit",
name: 'Reddit',
iconName: 'reddit',
link: PATH.SNS_REDDIT,
},
];

export const INFO = {
CONTACT_EMAIL: "[email protected]",
CONTACT_EMAIL: '[email protected]',
};

export const CONFIG = {
Expand All @@ -84,5 +101,8 @@ export const CONFIG = {
ENABLE_PRODUCT_HUNT: false,

// Service
API_HOST: process.env.NODE_ENV === 'development' ? 'http://localhost:3001' : 'https://affine.pro',
API_HOST:
process.env.NODE_ENV === 'development'
? 'http://localhost:3001'
: 'https://affine.pro',
};

0 comments on commit 16d1465

Please sign in to comment.