|
7 | 7 | DollarSign, |
8 | 8 | Shield, |
9 | 9 | Box, |
10 | | - ArrowRight |
| 10 | + ArrowRight, |
| 11 | + Rocket |
11 | 12 | } from 'lucide-svelte'; |
12 | 13 | import { siteConfig } from '$lib/config'; |
13 | 14 | import { animate } from '$lib/utils/animations'; |
|
39 | 40 | }); |
40 | 41 | } |
41 | 42 |
|
42 | | - // Stagger animation for buttons |
| 43 | + // Stagger animation for buttons - handle nested structure |
43 | 44 | if (buttonsContainer) { |
44 | | - const buttons = Array.from(buttonsContainer.children) as HTMLElement[]; |
45 | | - buttons.forEach((button, index) => { |
| 45 | + const allButtons: HTMLElement[] = []; |
| 46 | + // Get the first button directly |
| 47 | + const firstButton = buttonsContainer.querySelector('a[href*="get-started"]') as HTMLElement; |
| 48 | + if (firstButton) allButtons.push(firstButton); |
| 49 | + |
| 50 | + // Get buttons from the secondary actions div |
| 51 | + const secondaryDiv = buttonsContainer.querySelector('div'); |
| 52 | + if (secondaryDiv) { |
| 53 | + const secondaryButtons = Array.from(secondaryDiv.querySelectorAll('button, a')) as HTMLElement[]; |
| 54 | + allButtons.push(...secondaryButtons); |
| 55 | + } |
| 56 | + |
| 57 | + allButtons.forEach((button, index) => { |
46 | 58 | button.style.opacity = '0'; |
47 | 59 | button.style.transform = 'translateY(20px)'; |
48 | 60 | button.style.transition = 'all 600ms cubic-bezier(0.4, 0, 0.2, 1)'; |
|
90 | 102 | <div |
91 | 103 | class="inline-flex items-center rounded-full bg-primary/10 px-3 py-1 text-sm text-primary transition-all duration-300 hover:scale-105 hover:bg-primary/20" |
92 | 104 | > |
93 | | - <DollarSign class="mr-1 size-4" /> Completely Free |
| 105 | + <DollarSign class="mr-1 size-4" /> Free to Use |
94 | 106 | </div> |
95 | 107 | <div |
96 | 108 | class="inline-flex items-center rounded-full bg-primary/10 px-3 py-1 text-sm text-primary transition-all duration-300 hover:scale-105 hover:bg-primary/20" |
97 | 109 | > |
98 | | - <Shield class="mr-1 size-4" /> Complete Data Privacy |
| 110 | + <Shield class="mr-1 size-4" /> Data Privacy |
99 | 111 | </div> |
100 | 112 | </div> |
101 | 113 |
|
102 | 114 | <!-- Action Buttons --> |
103 | | - <div bind:this={buttonsContainer} class="mt-8 flex flex-col justify-center gap-3 sm:flex-row"> |
| 115 | + <div bind:this={buttonsContainer} class="mt-8 flex flex-col items-center justify-center gap-3"> |
| 116 | + <!-- Primary CTA --> |
104 | 117 | <Button |
105 | 118 | variant="default" |
106 | 119 | href="https://learn.microsoft.com/en-us/azure/ai-foundry/foundry-local/get-started" |
107 | 120 | target="_blank" |
108 | 121 | rel="noopener noreferrer" |
109 | 122 | size="lg" |
110 | | - class="group transition-all duration-300 hover:scale-105 hover:shadow-lg" |
| 123 | + class="group w-full transition-all duration-300 hover:scale-105 hover:shadow-lg sm:w-40" |
111 | 124 | > |
| 125 | + <Rocket class="mr-2 size-4 transition-transform duration-300 group-hover:-translate-y-1" /> |
112 | 126 | Get Started |
113 | | - <ArrowRight class="ml-2 size-4 transition-transform duration-300 group-hover:translate-x-1" /> |
114 | 127 | </Button> |
115 | 128 |
|
116 | | - <Button |
117 | | - variant="outline" |
118 | | - onclick={openDownloadDropdown} |
119 | | - size="lg" |
120 | | - class="group border-2 transition-all duration-300 hover:scale-105 hover:shadow-lg" |
121 | | - > |
122 | | - <Download class="mr-2 size-4 transition-transform duration-300 group-hover:translate-y-0.5" /> |
123 | | - Download |
124 | | - </Button> |
| 129 | + <!-- Secondary Actions --> |
| 130 | + <div class="flex w-full flex-col items-center gap-3 sm:flex-row sm:justify-center"> |
| 131 | + <Button |
| 132 | + variant="outline" |
| 133 | + onclick={openDownloadDropdown} |
| 134 | + size="lg" |
| 135 | + class="group w-full border-2 transition-all duration-300 hover:scale-105 hover:shadow-lg sm:w-40" |
| 136 | + > |
| 137 | + <Download class="mr-2 size-4 transition-transform duration-300 group-hover:translate-y-0.5" /> |
| 138 | + Download |
| 139 | + </Button> |
| 140 | + |
| 141 | + <Button |
| 142 | + variant="outline" |
| 143 | + href="/models" |
| 144 | + size="lg" |
| 145 | + class="group w-full border-2 transition-all duration-300 hover:scale-105 hover:shadow-lg sm:w-40" |
| 146 | + > |
| 147 | + <Box class="mr-2 size-4 transition-transform duration-300 group-hover:rotate-12" /> |
| 148 | + Models |
| 149 | + </Button> |
| 150 | + </div> |
125 | 151 | </div> |
126 | 152 | </div> |
127 | 153 | </div> |
0 commit comments