1- <div class =" max-w-2xl mx-auto px-4 py-8" >
2- <h1 class =" text-2xl font-bold mb-6" >Claim Your Gift</h1 >
1+ <div class =" bg-github-green-dot-wall" >
2+ <div class =" container mx-auto lg:max-w-(--breakpoint-xl) px-4 py-16" >
3+ <div class =" flex flex-col justify-center items-center mb-20" >
4+ <h1 class =" text-3xl sm:text-4xl leading-10 text-gradient-to-b from-white to-gray-300 font-bold mb-12 text-pretty text-center" >
5+ Redeem Gift Card
6+ </h1 >
37
4- <div data-test-gift-details-container class =" bg-white rounded-lg shadow-md p-6 mb-6" >
5- <div class =" mb-4" >
6- <h2 class =" text-lg font-semibold" >Gift Details</h2 >
7- <p class =" text-gray-600" >You've received a CodeCrafters membership gift!</p >
8- </div >
8+ <RedeemGiftPage::GiftCard />
9+
10+ {{ #if @model.giftMessage }}
11+ <div class =" px-4 py-2 mb-6 flex flex-col items-center max-w-3xs" data-test-gift-message-container>
12+ <div class =" text-gray-500 uppercase text-xs font-medium tracking-wide mb-6 text-center" >
13+ Message from sender:
14+ </div >
15+
16+ <div
17+ class =" text-gray-100 font-(family-name:--font-cursive) text-xl whitespace-pre-wrap text-center text-pretty"
18+ >{{ @model.giftMessage }} </div >
19+ </div >
20+ {{ /if }}
21+
22+ <PrimaryButton @size =" large" data-test-redeem-button @isDisabled ={{ this.redeemButtonIsDisabled }} {{ on " click" this.handleRedeemButtonClick }} >
23+ <div class =" flex items-center gap-2.5" >
24+ {{ #if this.currentUserIsAnonymous }}
25+ {{ svg-jar " github" class =" fill-current w-6 transform transition-all" }}
26+ {{ /if }}
27+
28+ {{ #if this.isRedeemingGift }}
29+ Redeeming...
30+ {{ else }}
31+ Redeem Gift Card
32+ {{ /if }}
33+ </div >
34+
35+ {{ #if this.currentUserIsAnonymous }}
36+ <EmberTooltip @text =" Click to login via GitHub" />
37+ {{ else if this.currentUserCanAccessMembershipBenefits}}
38+ <EmberTooltip @text =" You already have full access to CodeCrafters. You can claim this gift once your membership expires." />
39+ {{ /if }}
40+ </PrimaryButton >
941
10- <div class =" mb-4" >
11- <p class =" text-gray-600" data-test-gift-message>{{ @model.giftMessage }} </p >
42+ <div class =" text-xs text-gray-400 text-center text-pretty mt-2" >
43+ No credit card required.
44+ </div >
1245 </div >
1346
14- <div class =" mb-6" >
15- <p class =" font-medium" >Validity Period:</p >
16- <p class =" text-gray-600" data-test-validity-period>
17- This gift is valid for
18- {{ @model.validityInDays }}
19- days.
47+ <div class =" space-y-6 text-center my-8 max-w-[640px] mx-auto" >
48+ <h2
49+ class =" text-3xl leading-9 md:text-4xl md:leading-10 text-gradient-to-b from-gray-950 to-gray-700 dark:from-white dark:to-gray-300 font-bold"
50+ >
51+ Trusted by senior engineers at
52+ <span class =" italic font-extrabold" >the world's best companies</span >
53+ </h2 >
54+ <p class =" text-sm md:text-lg text-gray-900 dark:text-gray-300" >
55+ Discover how core contributors to Docker and Next.js practice writing code at the edge of their abilities — as well as senior engineers at
56+ companies like Apple, NVIDIA, and Stripe.
2057 </p >
2158 </div >
2259
23- <PrimaryButton data-test-redeem-button @isDisabled ={{ this.redeemButtonIsDisabled }} {{ on " click" this.handleRedeemButtonClick }} >
24- {{ #if this.currentUserIsAnonymous }}
25- {{ svg-jar " github" class =" fill-current w-6 transform transition-all mr-3" }}
26- {{ /if }}
60+ <h2 class =" text-gray-400 dark:text-gray-500 uppercase text-center text-xs mb-5" >Trusted by engineers at top companies</h2 >
61+ <AffiliateLinkPage::LogoCloud />
2762
28- {{ #if this.isRedeemingGift }}
29- Redeeming...
30- {{ else }}
31- Redeem Gift
32- {{ /if }}
63+ <img src ={{ this.BYOXBanner }} alt =" Build Your Own X GitHub Banner" class =" hidden sm:block sm:w-4/5 mx-auto mt-16" />
64+ <img src ={{ this.BYOXBannerMobile }} alt =" Build Your Own X GitHub Banner" class =" block sm:hidden w-full mt-20" />
3365
34- {{ #if this.currentUserIsAnonymous }}
35- <EmberTooltip @text =" Click to login via GitHub" />
36- {{ else if this.currentUserCanAccessMembershipBenefits}}
37- <EmberTooltip @text =" You already have full access to CodeCrafters. You can claim this gift once your membership expires." />
38- {{ /if }}
39- </PrimaryButton >
66+ <h2
67+ class =" text-2xl leading-10 md:text-3xl text-gradient-to-b from-gray-950 to-gray-700 dark:from-white dark:to-gray-300 font-bold text-center mt-16"
68+ >
69+ Hear it from our members
70+ </h2 >
71+
72+ <div class =" text-gray-500 dark:text-gray-400 text-sm text-center mt-2" >
73+ Engineers at top teams love The CodeCrafters Way<sup >TM</sup >.
74+ </div >
75+
76+ <TestimonialList class =" mt-10" />
4077 </div >
4178</div >
0 commit comments