Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/deals/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ export default function HeroSection({
</div>
{textContent.description && (
<span
className={`flex w-full flex-nowrap items-center gap-1 rounded-2 text-base font-semibold leading-tight lg:w-min lg:whitespace-nowrap lg:text-xl ${
className={`w-full rounded-2 text-base font-semibold leading-tight lg:text-xl ${
darkMode ? 'text-gray-100' : 'text-gray-100'
}`}
>
<p className={`px-1 py-0.5 ${darkMode ? 'bg-purple-100 text-purple-8' : 'bg-neutral-37 text-primary'}`}>
<p className={`box-decoration-clone inline px-1 py-0.5 ${darkMode ? 'bg-purple-100 text-purple-8' : 'bg-neutral-37 text-primary'}`}>
{parsePercentText(textContent.description)}
</p>
</span>
Expand Down
7 changes: 3 additions & 4 deletions src/components/home/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,9 @@ export default function HeroSection({
{textContent.subtitle.part1} {textContent.subtitle.part2}
</p>
</div>
<span className="flex w-min flex-nowrap items-center gap-1 whitespace-nowrap rounded-2 text-base font-semibold leading-tight text-gray-100 lg:text-xl">
<p className="bg-neutral-37 px-1 py-0.5 text-primary">{parsePercentText(campaignText?.description ?? textContent.description)}</p>

<p className="bg-transparent">{textContent.descriptionNormal}</p>
<span className="w-full rounded-2 text-base font-semibold leading-tight text-gray-100 lg:text-xl">
<p className="box-decoration-clone inline bg-neutral-37 px-1 py-0.5 text-primary">{parsePercentText(campaignText?.description ?? textContent.description)}</p>{' '}
<p className="inline whitespace-nowrap bg-transparent">{textContent.descriptionNormal}</p>
</span>
<div className="flex flex-col justify-center gap-1 lg:gap-2">
{textContent.features.map((feat) => (
Expand Down
15 changes: 9 additions & 6 deletions src/hooks/useAffiliatesCampaignOfferConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ export const CAMPAIGN_BY_PATH: Record<string, AffiliatesBlackFridayCampaign> = {
heisecm90: 'cyber-week',
xatakacm90: 'cyber-week',
clubiccm90: 'cyber-week',
tdescm90: 'cyber-week',
tdptcm90: 'cyber-week',
tditcm90: 'cyber-week',
gpescw90: 'cyber-week',
gpitcw90: 'cyber-week',
chollocw90: 'cyber-week',
tdescw90: 'cyber-week',
tdptcw90: 'cyber-week',
tditcw90: 'cyber-week',
};

export const COUPON_CODES: Record<string, PromoCodeName> = {
Expand Down Expand Up @@ -83,12 +83,12 @@ export const COUPON_CODES: Record<string, PromoCodeName> = {
heisecm90: PromoCodeName.heisecm90,
xatakacm90: PromoCodeName.xatakacm90,
clubiccm90: PromoCodeName.clubiccm90,
tdescm90: PromoCodeName.tdesbf90,
tdptcm90: PromoCodeName.tdptbf90,
tditcm90: PromoCodeName.tditbf90,
gpescw90: PromoCodeName.gpescw90,
gpitcw90: PromoCodeName.gpitcw90,
chollocw90: PromoCodeName.chollocw90,
tdescw90: PromoCodeName.tdescw90,
tditcw90: PromoCodeName.tditcw90,
tdptcw90: PromoCodeName.tdptcw90,
};

export const ENFORCED_LOCALE: Record<string, string> = {
Expand All @@ -108,6 +108,7 @@ export const ENFORCED_LOCALE: Record<string, string> = {
chollobm87: 'es',
chollobf90: 'es',
chollocw90: 'es',
tdescw90: 'es',

clubicbm87: 'fr',
clubicbf90: 'fr',
Expand All @@ -119,10 +120,12 @@ export const ENFORCED_LOCALE: Record<string, string> = {
gpitbm87: 'it',
gpitbf90: 'it',
gpitcw90: 'it',
tditcw90: 'it',

tdptbm87: 'pt-br',
tdptbf90: 'pt-br',
tdptcm90: 'pt-br',
tdptcw90: 'pt-br',
};

export const METATAGS_ID_BY_CAMPAIGN: Record<AffiliatesBlackFridayCampaign, string> = {
Expand Down
3 changes: 3 additions & 0 deletions src/hooks/useSpecialOfferConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export const ALLOWED_PATHS = [
'adrenaline',
'labs',
'otto',
'techibee',
];

export const ENFORCED_LOCALE: Record<string, string> = {
Expand Down Expand Up @@ -628,6 +629,7 @@ export const ANNUAL_DISCOUNT_PLANS_PATHS = new Set<string>([
'adrenaline',
'labs',
'otto',
'techibee',
]);

export const COUPON_CODES = {
Expand Down Expand Up @@ -854,6 +856,7 @@ export const COUPON_CODES = {
adrenaline: PromoCodeName.adrenaline,
labs: PromoCodeName.labs,
otto: PromoCodeName.otto,
techibee: PromoCodeName.techibee,
};

interface OfferConfig {
Expand Down
4 changes: 4 additions & 0 deletions src/lib/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,10 @@ export enum PromoCodeName {
adrenaline = 'ADRENALINE',
labs = 'LABS',
otto = 'OTTO',
tdescw90 = 'TDESCW90',
tdptcw90 = 'TDPTCW90',
tditcw90 = 'TDITCW90',
techibee = 'TECHIBEE',
}

export interface PromoCodeProps {
Expand Down
Loading