Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ import { debounce } from 'perfect-debounce'
const searchQuery = shallowRef('')
const searchInputRef = useTemplateRef('searchInputRef')
const { focused: isSearchFocused } = useFocus(searchInputRef)
const frameworks = ref([
{ name: 'nuxt', package: 'nuxt' },
{ name: 'vue', package: 'vue' },
{ name: 'react', package: 'react' },
{ name: 'svelte', package: 'svelte' },
{ name: 'vite', package: 'vite' },
{ name: 'next', package: 'next' },
{ name: 'astro', package: 'astro' },
{ name: 'typescript', package: 'typescript' },
{ name: 'Angular', package: '@angular/core' },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fact it's the only uppercased name is killing me 😆

])

async function search() {
const query = searchQuery.value.trim()
Expand Down Expand Up @@ -114,18 +125,15 @@ defineOgImageComponent('Default', {
style="animation-delay: 0.3s"
>
<ul class="flex flex-wrap items-center justify-center gap-x-6 gap-y-3 list-none m-0 p-0">
<li
v-for="pkg in ['nuxt', 'vue', 'react', 'svelte', 'vite', 'next', 'astro', 'typescript']"
:key="pkg"
>
<li v-for="framework in frameworks" :key="framework.name">
<NuxtLink
:to="{ name: 'package', params: { package: [pkg] } }"
:to="{ name: 'package', params: { package: [framework.package] } }"
class="link-subtle font-mono text-sm inline-flex items-center gap-2 group"
>
<span
class="w-1 h-1 rounded-full bg-accent group-hover:bg-fg transition-colors duration-200"
/>
{{ pkg }}
{{ framework.name }}
</NuxtLink>
</li>
</ul>
Expand Down
Loading