|
| 1 | +<script setup lang="ts"> |
| 2 | +const socialLinks = { |
| 3 | + github: 'https://repo.npmx.dev', |
| 4 | + discord: 'https://chat.npmx.dev', |
| 5 | + bluesky: 'https://social.npmx.dev', |
| 6 | +} |
| 7 | +</script> |
| 8 | + |
| 9 | +<template> |
| 10 | + <div> |
| 11 | + <h2 class="text-lg text-fg-subtle uppercase tracking-wider mb-6"> |
| 12 | + {{ $t('about.get_involved.title') }} |
| 13 | + </h2> |
| 14 | + |
| 15 | + <div class="grid gap-4 sm:grid-cols-3"> |
| 16 | + <a |
| 17 | + :href="socialLinks.github" |
| 18 | + target="_blank" |
| 19 | + rel="noopener noreferrer" |
| 20 | + class="group flex flex-col gap-3 p-4 rounded-lg bg-bg-subtle hover:bg-bg-elevated border border-border hover:border-border-hover transition-all duration-200" |
| 21 | + > |
| 22 | + <div class="flex gap-2"> |
| 23 | + <span class="i-carbon:logo-github shrink-0 mt-1 w-5 h-5 text-fg" aria-hidden="true" /> |
| 24 | + <span class="font-medium text-fg"> |
| 25 | + {{ $t('about.get_involved.contribute.title') }} |
| 26 | + </span> |
| 27 | + </div> |
| 28 | + <p class="text-sm text-fg-muted leading-relaxed"> |
| 29 | + {{ $t('about.get_involved.contribute.description') }} |
| 30 | + </p> |
| 31 | + <span |
| 32 | + class="text-sm text-fg-muted group-hover:text-fg inline-flex items-center gap-1 mt-auto" |
| 33 | + > |
| 34 | + {{ $t('about.get_involved.contribute.cta') }} |
| 35 | + <span class="i-carbon:arrow-right rtl-flip w-3 h-3" aria-hidden="true" /> |
| 36 | + </span> |
| 37 | + </a> |
| 38 | + |
| 39 | + <a |
| 40 | + :href="socialLinks.discord" |
| 41 | + target="_blank" |
| 42 | + rel="noopener noreferrer" |
| 43 | + class="group flex flex-col gap-3 p-4 rounded-lg bg-bg-subtle hover:bg-bg-elevated border border-border hover:border-border-hover transition-all duration-200" |
| 44 | + > |
| 45 | + <div class="flex gap-2"> |
| 46 | + <span class="i-carbon:chat shrink-0 mt-1 w-5 h-5 text-fg" aria-hidden="true" /> |
| 47 | + <span class="font-medium text-fg"> |
| 48 | + {{ $t('about.get_involved.community.title') }} |
| 49 | + </span> |
| 50 | + </div> |
| 51 | + <p class="text-sm text-fg-muted leading-relaxed"> |
| 52 | + {{ $t('about.get_involved.community.description') }} |
| 53 | + </p> |
| 54 | + <span |
| 55 | + class="text-sm text-fg-muted group-hover:text-fg inline-flex items-center gap-1 mt-auto" |
| 56 | + > |
| 57 | + {{ $t('about.get_involved.community.cta') }} |
| 58 | + <span class="i-carbon:arrow-right rtl-flip w-3 h-3" aria-hidden="true" /> |
| 59 | + </span> |
| 60 | + </a> |
| 61 | + |
| 62 | + <a |
| 63 | + :href="socialLinks.bluesky" |
| 64 | + target="_blank" |
| 65 | + rel="noopener noreferrer" |
| 66 | + class="group flex flex-col gap-3 p-4 rounded-lg bg-bg-subtle hover:bg-bg-elevated border border-border hover:border-border-hover transition-all duration-200" |
| 67 | + > |
| 68 | + <div class="flex gap-2"> |
| 69 | + <span class="i-simple-icons:bluesky shrink-0 mt-1 w-5 h-5 text-fg" aria-hidden="true" /> |
| 70 | + <span class="font-medium text-fg"> |
| 71 | + {{ $t('about.get_involved.follow.title') }} |
| 72 | + </span> |
| 73 | + </div> |
| 74 | + <p class="text-sm text-fg-muted leading-relaxed"> |
| 75 | + {{ $t('about.get_involved.follow.description') }} |
| 76 | + </p> |
| 77 | + <span |
| 78 | + class="text-sm text-fg-muted group-hover:text-fg inline-flex items-center gap-1 mt-auto" |
| 79 | + > |
| 80 | + {{ $t('about.get_involved.follow.cta') }} |
| 81 | + <span class="i-carbon:arrow-right rtl-flip w-3 h-3" aria-hidden="true" /> |
| 82 | + </span> |
| 83 | + </a> |
| 84 | + </div> |
| 85 | + </div> |
| 86 | +</template> |
0 commit comments