-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #467 from CodeCrowCorp/dev
Fix: rising-stars endpoint
- Loading branch information
Showing
14 changed files
with
241 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,61 @@ | ||
<div | ||
data-popover | ||
role="tooltip" | ||
class="absolute z-10 invisible inline-block w-64 text-sm font-light text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm opacity-0 dark:text-gray-400 dark:bg-gray-800 dark:border-gray-600"> | ||
<div class="p-3"> | ||
<div class="flex items-center justify-between mb-2"> | ||
<a href=""> | ||
<img | ||
class="w-10 h-10 rounded-full" | ||
src="/docs/images/people/profile-picture-1.jpg" | ||
alt="Jese Leos" /> | ||
</a> | ||
<div> | ||
<button | ||
type="button" | ||
class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-xs px-3 py-1.5 dark:bg-blue-600 dark:hover:bg-blue-700 focus:outline-none dark:focus:ring-blue-800" | ||
>Follow</button> | ||
<script lang="ts"> | ||
import { get } from '$lib/api' | ||
import { onMount } from 'svelte' | ||
export let userId: string | ||
let profile: any | ||
onMount(async () => { | ||
profile = await get(`users/search/id?userId=${userId}`) | ||
}) | ||
</script> | ||
|
||
{#if !profile} | ||
<progress class="progress w-full" /> | ||
{:else} | ||
<div | ||
data-popover | ||
role="tooltip" | ||
class="absolute z-10 invisible inline-block w-64 text-sm font-light text-gray-500 transition-opacity duration-300 bg-white border border-gray-200 rounded-lg shadow-sm opacity-0 dark:text-gray-400 dark:bg-gray-800 dark:border-gray-600"> | ||
<div class="p-3"> | ||
<div class="flex items-center justify-between mb-2"> | ||
<a href=""> | ||
<img class="w-10 h-10 rounded-full" src={profile.avatar} alt="Jese Leos" /> | ||
</a> | ||
<div> | ||
<button | ||
type="button" | ||
class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-xs px-3 py-1.5 dark:bg-blue-600 dark:hover:bg-blue-700 focus:outline-none dark:focus:ring-blue-800" | ||
>Follow</button> | ||
</div> | ||
</div> | ||
<p class="text-base font-semibold leading-none text-gray-900 dark:text-white"> | ||
<a href="">Jese Leos</a> | ||
</p> | ||
<p class="mb-3 text-sm font-normal"> | ||
<a href="" class="hover:underline">@jeseleos</a> | ||
</p> | ||
<p class="mb-4 text-sm font-light"> | ||
Open-source contributor. Building <a | ||
href="" | ||
class="text-blue-600 dark:text-blue-500 hover:underline">flowbite.com</a | ||
>. | ||
</p> | ||
<ul class="flex text-sm font-light"> | ||
<li class="mr-2"> | ||
<a href="" class="hover:underline"> | ||
<span class="font-semibold text-gray-900 dark:text-white">799</span> | ||
<span>Following</span> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="" class="hover:underline"> | ||
<span class="font-semibold text-gray-900 dark:text-white">3,758</span> | ||
<span>Followers</span> | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<p class="text-base font-semibold leading-none text-gray-900 dark:text-white"> | ||
<a href="">Jese Leos</a> | ||
</p> | ||
<p class="mb-3 text-sm font-normal"> | ||
<a href="" class="hover:underline">@jeseleos</a> | ||
</p> | ||
<p class="mb-4 text-sm font-light"> | ||
Open-source contributor. Building <a | ||
href="" | ||
class="text-blue-600 dark:text-blue-500 hover:underline">flowbite.com</a | ||
>. | ||
</p> | ||
<ul class="flex text-sm font-light"> | ||
<li class="mr-2"> | ||
<a href="" class="hover:underline"> | ||
<span class="font-semibold text-gray-900 dark:text-white">799</span> | ||
<span>Following</span> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="" class="hover:underline"> | ||
<span class="font-semibold text-gray-900 dark:text-white">3,758</span> | ||
<span>Followers</span> | ||
</a> | ||
</li> | ||
</ul> | ||
<div data-popper-arrow /> | ||
</div> | ||
<div data-popper-arrow /> | ||
</div> | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.