|
| 1 | +<script setup lang="ts"> |
| 2 | +const agents = [ |
| 3 | + { name: 'Claude Code', description: 'By Anthropic' }, |
| 4 | + { name: 'Codex CLI', description: 'By OpenAI' }, |
| 5 | + { name: 'OpenCode', description: 'Open source' }, |
| 6 | +] |
| 7 | +</script> |
| 8 | + |
| 9 | +<template> |
| 10 | + <section class="agent-support"> |
| 11 | + <div class="agent-support-container"> |
| 12 | + <p class="agent-support-heading">Works with your favorite coding agent</p> |
| 13 | + <div class="agent-list"> |
| 14 | + <template v-for="(agent, i) in agents" :key="agent.name"> |
| 15 | + <div class="agent-item"> |
| 16 | + <div class="agent-glow"></div> |
| 17 | + <div class="agent-icon-wrap"> |
| 18 | + <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 19 | + <polyline points="4 17 10 11 4 5" /> |
| 20 | + <line x1="12" y1="19" x2="20" y2="19" /> |
| 21 | + </svg> |
| 22 | + </div> |
| 23 | + <span class="agent-name">{{ agent.name }}</span> |
| 24 | + <span class="agent-description">{{ agent.description }}</span> |
| 25 | + </div> |
| 26 | + <span v-if="i < agents.length - 1" class="agent-divider">/</span> |
| 27 | + </template> |
| 28 | + </div> |
| 29 | + </div> |
| 30 | + </section> |
| 31 | +</template> |
| 32 | + |
| 33 | +<style scoped> |
| 34 | +.agent-support { |
| 35 | + padding: 5rem 1.5rem; |
| 36 | + background-color: #1a1b26; |
| 37 | +} |
| 38 | +
|
| 39 | +.agent-support-container { |
| 40 | + max-width: 1280px; |
| 41 | + margin: 0 auto; |
| 42 | + display: flex; |
| 43 | + flex-direction: column; |
| 44 | + align-items: center; |
| 45 | + gap: 2.5rem; |
| 46 | +} |
| 47 | +
|
| 48 | +.agent-support-heading { |
| 49 | + font-size: 0.85rem; |
| 50 | + font-weight: 500; |
| 51 | + color: #565f89; |
| 52 | + text-transform: uppercase; |
| 53 | + letter-spacing: 0.15em; |
| 54 | + margin: 0; |
| 55 | +} |
| 56 | +
|
| 57 | +.agent-list { |
| 58 | + display: flex; |
| 59 | + align-items: center; |
| 60 | + gap: 1.25rem; |
| 61 | +} |
| 62 | +
|
| 63 | +.agent-divider { |
| 64 | + color: #292e42; |
| 65 | + font-size: 1.25rem; |
| 66 | + font-weight: 300; |
| 67 | + user-select: none; |
| 68 | +} |
| 69 | +
|
| 70 | +.agent-item { |
| 71 | + position: relative; |
| 72 | + display: flex; |
| 73 | + flex-direction: column; |
| 74 | + align-items: center; |
| 75 | + gap: 0.75rem; |
| 76 | + padding: 1.75rem 2.25rem; |
| 77 | + background: linear-gradient(135deg, rgba(22, 22, 30, 0.8), rgba(26, 27, 38, 0.6)); |
| 78 | + border: 1px solid #292e42; |
| 79 | + border-radius: 14px; |
| 80 | + transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; |
| 81 | + backdrop-filter: blur(8px); |
| 82 | + overflow: hidden; |
| 83 | +} |
| 84 | +
|
| 85 | +.agent-glow { |
| 86 | + position: absolute; |
| 87 | + inset: 0; |
| 88 | + background: radial-gradient(circle at 50% 30%, rgba(122, 162, 247, 0.06), transparent 70%); |
| 89 | + opacity: 0; |
| 90 | + transition: opacity 0.3s; |
| 91 | + pointer-events: none; |
| 92 | +} |
| 93 | +
|
| 94 | +.agent-item:hover { |
| 95 | + border-color: rgba(122, 162, 247, 0.4); |
| 96 | + transform: translateY(-3px); |
| 97 | + box-shadow: 0 8px 30px rgba(122, 162, 247, 0.1); |
| 98 | +} |
| 99 | +
|
| 100 | +.agent-item:hover .agent-glow { |
| 101 | + opacity: 1; |
| 102 | +} |
| 103 | +
|
| 104 | +.agent-icon-wrap { |
| 105 | + width: 48px; |
| 106 | + height: 48px; |
| 107 | + display: flex; |
| 108 | + align-items: center; |
| 109 | + justify-content: center; |
| 110 | + background-color: rgba(41, 46, 66, 0.4); |
| 111 | + border-radius: 12px; |
| 112 | + color: #565f89; |
| 113 | + transition: color 0.3s, background-color 0.3s; |
| 114 | +} |
| 115 | +
|
| 116 | +.agent-item:hover .agent-icon-wrap { |
| 117 | + color: #7aa2f7; |
| 118 | + background-color: rgba(122, 162, 247, 0.1); |
| 119 | +} |
| 120 | +
|
| 121 | +.agent-name { |
| 122 | + font-size: 1.05rem; |
| 123 | + font-weight: 600; |
| 124 | + color: #a9b1d6; |
| 125 | + white-space: nowrap; |
| 126 | +} |
| 127 | +
|
| 128 | +.agent-description { |
| 129 | + font-size: 0.8rem; |
| 130 | + color: #565f89; |
| 131 | + white-space: nowrap; |
| 132 | +} |
| 133 | +
|
| 134 | +/* Responsive */ |
| 135 | +@media (max-width: 700px) { |
| 136 | + .agent-support { |
| 137 | + padding: 3.5rem 1rem; |
| 138 | + } |
| 139 | +
|
| 140 | + .agent-list { |
| 141 | + flex-direction: column; |
| 142 | + gap: 0.75rem; |
| 143 | + width: 100%; |
| 144 | + } |
| 145 | +
|
| 146 | + .agent-divider { |
| 147 | + display: none; |
| 148 | + } |
| 149 | +
|
| 150 | + .agent-item { |
| 151 | + width: 100%; |
| 152 | + max-width: 280px; |
| 153 | + padding: 1.5rem 2rem; |
| 154 | + } |
| 155 | +} |
| 156 | +</style> |
0 commit comments