Skip to content

Commit

Permalink
chore: added trophy icon
Browse files Browse the repository at this point in the history
  • Loading branch information
hmbanan666 committed Jul 2, 2024
1 parent 3e26b09 commit 891db0f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
Binary file added src/lib/assets/website/trophy-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/lib/assets/website/trophy-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/lib/assets/website/trophy-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 5 additions & 9 deletions src/routes/[lang]/(website)/p/[userName]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import TimeAgo from 'javascript-time-ago'
import ru from 'javascript-time-ago/locale/ru'
import unitAvatar from '$lib/assets/website/unit-512.png'
import trophyImage from '$lib/assets/website/trophy-128.png'
import { pluralizationRu } from '$lib/utils/locale'
import couponSmall from '$lib/assets/website/coupon-64.png'
Expand Down Expand Up @@ -77,7 +78,7 @@
</div>
<div class='completion'>
<div class='trophy' data-completed={progress.status === 'COMPLETED'}>
<Trophy size='64' />
<img src={trophyImage} alt="" width='64' height='64' />
</div>
<div>
<p class='points'>{progress.trophy.points}</p>
Expand Down Expand Up @@ -197,13 +198,13 @@
.trophy-block .info .date {
font-size: 0.9rem;
margin-top: 0.5em;
opacity: 0.8;
opacity: 0.5;
}
.trophy-block .completion {
position: relative;
padding: 0.5em 1em;
color: #A07553;
color: #F76B15;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
Expand All @@ -218,12 +219,7 @@
line-height: 1.2;
}
.trophy-block .completion .trophy {
.trophy-block .completion .trophy[data-completed=false] {
opacity: 0.3;
color: #AD7F58;
}
.trophy-block .completion .trophy[data-completed=true] {
opacity: 1;
}
</style>
9 changes: 4 additions & 5 deletions src/routes/[lang]/(website)/trophy/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script>
import Trophy from 'lucide-svelte/icons/trophy'
import trophyImage from '$lib/assets/website/trophy-128.png'
export let data
</script>
Expand All @@ -18,7 +18,7 @@
</div>
<div class='completion'>
<div class='trophy'>
<Trophy size='64' />
<img src={trophyImage} alt="" width='64' height='64' />
</div>
<div>
<p class='points'>{trophy.points}</p>
Expand Down Expand Up @@ -73,7 +73,7 @@
.trophy-block .completion {
position: relative;
padding: 0.5em 1em;
color: #A07553;
color: #F76B15;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
Expand All @@ -89,7 +89,6 @@
}
.trophy-block .completion .trophy {
opacity: 0.3;
color: #AD7F58;
opacity: 1;
}
</style>

0 comments on commit 891db0f

Please sign in to comment.