Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
feat: remove team
Browse files Browse the repository at this point in the history
  • Loading branch information
productdevbook authored Nov 20, 2024
1 parent 21f8fc6 commit 414ff85
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 33 deletions.
65 changes: 48 additions & 17 deletions .docs/.vitepress/components/Contributors.vue
Original file line number Diff line number Diff line change
@@ -1,25 +1,56 @@
<script setup lang="ts">
import { contributors } from '../contributors'
import { AvatarFallback, AvatarImage, AvatarRoot, TooltipContent, TooltipProvider, TooltipRoot, TooltipTrigger } from '@oku-ui/primitives'
function getInitials(name: string) {
return name.match(/\b[A-Z]/gi)?.join('') ?? name[0]
}
</script>

<template>
<div class="flex flex-wrap gap-2 justify-center">
<a
v-for="{ name, avatar } of contributors"
:key="name"
:href="`https://github.com/${name}`"
class="m-0"
rel="noopener noreferrer"
:aria-label="`${name} on GitHub`"
>
<img
loading="lazy"
:src="avatar"
width="50"
height="50"
class="rounded-full h-12 w-12"
:alt="`${name}'s avatar`"
<div class="flex flex-wrap gap-4 justify-center my-8 not-prose">
<TooltipProvider>
<TooltipRoot
v-for="{ name, avatar } of contributors"
:key="name"
:delay-duration="0"
:disable-hoverable-content="true"
>
</a>
<TooltipTrigger as="template">
<AvatarRoot as="template">
<a
:href="`https://github.com/${name}`"
class="group relative inline-flex items-center justify-center"
rel="noopener noreferrer"
:aria-label="`${name} on GitHub`"
target="_blank"
>
<div
class="h-14 w-14 rounded-full overflow-hidden bg-gradient-to-br from-green-400 via-blue-500 to-purple-600 flex items-center justify-center shadow-lg transform transition-all group-hover:scale-110"
>
<AvatarImage
:src="avatar"
:alt="`${name}'s avatar`"
class="h-full w-full object-cover"
/>
<AvatarFallback
class="text-center uppercase text-sm font-semibold text-white"
:delay-ms="1000"
>
{{ getInitials(name) }}
</AvatarFallback>
</div>
</a>
</AvatarRoot>
</TooltipTrigger>

<TooltipContent
class="text-xs font-semibold text-white px-3 py-1 rounded bg-gray-800 border border-gray-600 shadow-md transform transition-opacity duration-200"
side="bottom"
>
{{ name }}
</TooltipContent>
</TooltipRoot>
</TooltipProvider>
</div>
</template>
18 changes: 2 additions & 16 deletions .docs/.vitepress/components/HomePage.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script setup lang="ts">
import { VPTeamMembers } from 'vitepress/theme-without-fonts'
import { teamMembers } from '../contributors'
import Contributors from './Contributors.vue'
</script>

Expand All @@ -9,23 +7,11 @@ import Contributors from './Contributors.vue'
<div class="mx-auto w-full container max-w-[1152px]">
<main class="w-full">
<div class="vp-doc flex flex-col items-center mt-10">
<h2
id="meet-the-team"
class="font-medium pt-10 pb-2"
>
Meet The Team
</h2>
<div class="w-full">
<VPTeamMembers
size="small"
:members="teamMembers"
/>
</div>
<h2
id="the-team"
class="op50 font-medium pt-5 pb-2"
class="font-medium pt-5 pb-2"
>
Contributors
Crafted with passion by Vue enthusiasts 💚
</h2>
<p class="text-lg max-w-200 text-center leading-7">
<Contributors />
Expand Down

0 comments on commit 414ff85

Please sign in to comment.