-
-
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 #577 from gagan-suie/dev
Feat: added profile stats section and timer in videoItem
- Loading branch information
Showing
16 changed files
with
132 additions
and
129 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke-width="1.5" | ||
stroke="currentColor" | ||
class="w-8 h-8"> | ||
<path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
d="M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z" /> | ||
</svg> |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke-width="1.5" | ||
stroke="currentColor" | ||
class="w-8 h-8"> | ||
<path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
d="M3.75 13.5l10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75z" /> | ||
</svg> |
12 changes: 12 additions & 0 deletions
12
src/lib/assets/icons/profile/IconProfileStreamDuration.svelte
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke-width="1.5" | ||
stroke="currentColor" | ||
class="w-8 h-8"> | ||
<path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z" /> | ||
</svg> |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,53 +1,50 @@ | ||
<script lang="ts"> | ||
import IconProfileViews from '$lib/assets/icons/profile/IconProfileViews.svelte' | ||
import IconProfileStreak from '$lib/assets/icons/profile/IconProfileStreak.svelte' | ||
import IconProfileStreamDuration from '$lib/assets/icons/profile/IconProfileStreamDuration.svelte' | ||
// import IconProfileSponsor from '$lib/assets/icons/profile/IconProfileSponsor.svelte' | ||
export let totalPageViews: Promise<any>, | ||
highestAndCurrentStreak: Promise<any>, | ||
totalAndAvgHours: Promise<any> | ||
</script> | ||
<div class="tooltip" data-tip="level 1"> | ||
<progress class="progress progress-accent w-64" value="30" max="100" /> | ||
</div> | ||
<div class="stats shadow bg-base-200"> | ||
<div class="stat"> | ||
<div class="stat-figure text-primary"> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
class="inline-block w-8 h-8 stroke-current" | ||
><path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
stroke-width="2" | ||
d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z" /></svg> | ||
<IconProfileViews /> | ||
</div> | ||
<div class="stat-title">Total Likes</div> | ||
<div class="stat-value text-primary">25.6K</div> | ||
<div class="stat-title">Page Views</div> | ||
<div class="stat-value text-primary">2.6M</div> | ||
<div class="stat-desc">21% more than last month</div> | ||
</div> | ||
<div class="stat"> | ||
<div class="stat-figure text-secondary"> | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
class="inline-block w-8 h-8 stroke-current" | ||
><path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
stroke-width="2" | ||
d="M13 10V3L4 14h7v7l9-11h-7z" /></svg> | ||
<IconProfileStreak /> | ||
</div> | ||
<div class="stat-title">Page Views</div> | ||
<div class="stat-value text-secondary">2.6M</div> | ||
<div class="stat-title">Highest / Current Streak</div> | ||
<div class="stat-value text-secondary">25 / 5</div> | ||
<div class="stat-desc">21% more than last month</div> | ||
</div> | ||
<div class="stat"> | ||
<div class="stat-figure text-secondary"> | ||
<div class="avatar online"> | ||
<div class="w-16 rounded-full"> | ||
<img src="https://placeimg.com/128/128/people" /> | ||
</div> | ||
</div> | ||
<IconProfileStreamDuration /> | ||
</div> | ||
<div class="stat-value">86%</div> | ||
<div class="stat-title">Tasks done</div> | ||
<div class="stat-desc text-secondary">31 tasks remaining</div> | ||
<div class="stat-title">Total / Avg Hours</div> | ||
<div class="stat-value text-secondary">2,500 / 8</div> | ||
<div class="stat-desc">21% more than last month</div> | ||
</div> | ||
<!-- <div class="stat"> | ||
<div class="stat-figure text-secondary"> | ||
<IconProfileSponsor /> | ||
</div> | ||
<div class="stat-title">Sponsors</div> | ||
<div class="stat-value text-secondary">500</div> | ||
<div class="stat-desc">21% more than last month</div> | ||
</div> --> | ||
</div> |
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