|
1 | | -<script lang="ts"></script> |
| 1 | +<script lang="ts"> |
| 2 | + import { Image } from '@unpic/svelte'; |
| 3 | +</script> |
2 | 4 |
|
3 | 5 | <!-- Why Join Section --> |
4 | 6 | <section class="bg-gray-900 px-4 py-16 sm:px-6 sm:py-20 lg:px-8"> |
|
29 | 31 | <div class="mb-8 space-y-4"> |
30 | 32 | <div class="flex items-start gap-3 delay-100 fade-in"> |
31 | 33 | <svg |
32 | | - class="mt-1 h-6 w-6 flex-shrink-0 text-green-500" |
| 34 | + class="mt-1 h-6 w-6 shrink-0 text-green-500" |
33 | 35 | viewBox="0 0 24 24" |
34 | 36 | fill="none" |
35 | 37 | stroke="currentColor" |
|
47 | 49 |
|
48 | 50 | <div class="flex items-start gap-3 delay-200 fade-in"> |
49 | 51 | <svg |
50 | | - class="mt-1 h-6 w-6 flex-shrink-0 text-green-500" |
| 52 | + class="mt-1 h-6 w-6 shrink-0 text-green-500" |
51 | 53 | viewBox="0 0 24 24" |
52 | 54 | fill="none" |
53 | 55 | stroke="currentColor" |
|
67 | 69 |
|
68 | 70 | <div class="flex items-start gap-3 delay-300 fade-in"> |
69 | 71 | <svg |
70 | | - class="mt-1 h-6 w-6 flex-shrink-0 text-green-500" |
| 72 | + class="mt-1 h-6 w-6 shrink-0 text-green-500" |
71 | 73 | viewBox="0 0 24 24" |
72 | 74 | fill="none" |
73 | 75 | stroke="currentColor" |
|
83 | 85 |
|
84 | 86 | <div class="flex items-start gap-3 delay-400 fade-in"> |
85 | 87 | <svg |
86 | | - class="mt-1 h-6 w-6 flex-shrink-0 text-green-500" |
| 88 | + class="mt-1 h-6 w-6 shrink-0 text-green-500" |
87 | 89 | viewBox="0 0 24 24" |
88 | 90 | fill="none" |
89 | 91 | stroke="currentColor" |
|
101 | 103 |
|
102 | 104 | <div class="flex items-start gap-3 delay-500 fade-in"> |
103 | 105 | <svg |
104 | | - class="mt-1 h-6 w-6 flex-shrink-0 text-green-500" |
| 106 | + class="mt-1 h-6 w-6 shrink-0 text-green-500" |
105 | 107 | viewBox="0 0 24 24" |
106 | 108 | fill="none" |
107 | 109 | stroke="currentColor" |
|
145 | 147 | <!-- Right Image --> |
146 | 148 | <div class="fade-in-right relative"> |
147 | 149 | <div class="relative overflow-hidden rounded-3xl shadow-2xl"> |
148 | | - <img |
| 150 | + <Image |
149 | 151 | src="https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=800&h=600&fit=crop" |
150 | 152 | alt="Community collaboration" |
| 153 | + layout="constrained" |
| 154 | + width={600} |
| 155 | + height={450} |
| 156 | + loading="lazy" |
151 | 157 | class="h-full w-full object-cover" |
152 | 158 | /> |
153 | | - <div class="absolute inset-0 bg-gradient-to-t from-gray-900/50 to-transparent"></div> |
| 159 | + <div class="absolute inset-0 bg-linear-to-t from-gray-900/50 to-transparent"></div> |
154 | 160 | </div> |
155 | 161 | <!-- Decorative elements --> |
156 | 162 | <div |
|
0 commit comments