Skip to content

Commit

Permalink
release: 0.1.5 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb authored Apr 13, 2024
2 parents 055c3fc + 2e1c37f commit 95ea68c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ _pet-id์— ์•„๋ฌด๊ฐ’๋„ ์ž…๋ ฅํ•˜์ง€ ์•Š์œผ๋ฉด, ์ฒซ๋ฒˆ์งธ ํŽซ์ด ๊ฐ€์ ธ์™€์ ธ์š”
๋‹ค๋ฅธ ์œ ์ €๊ฐ€ ํŒ๋งคํ•˜๋Š” ํŽซ์„ ์ปค๋ฐ‹ํฌ์ธํŠธ๋กœ ๊ตฌ๋งคํ•  ์ˆ˜ ์žˆ์–ด์š”.
์ปค๋ฐ‹ 1ํšŒ๋‹น ์ผ์ •๋Ÿ‰์˜ ํฌ์ธํŠธ๊ฐ€ ์ง€๊ธ‰๋ฉ๋‹ˆ๋‹ค. ํ˜น์€ ์ž์‹ ์˜ ํŽซ์„ ํŒ๋งคํ•ด์„œ ์ปค๋ฐ‹ํฌ์ธํŠธ๋ฅผ ์–ป์„์ˆ˜๋„ ์žˆ์–ด์š”.

### Total contributions

Total contribtuions ๋Š” ๊นƒํ—ˆ๋ธŒ์— ๊ฐ€์ž… ํ›„ ๋ชจ๋“  Contribtuions ์ˆ˜๋ฅผ ์ง‘๊ณ„ํ•ด์„œ ๋ณด์—ฌ์ค๋‹ˆ๋‹ค.
์ด๋•Œ, ์ƒˆ๋กœ์šด contribtuion์€ ๋ฐ˜์˜์€ ์ตœ๋Œ€ 1์‹œ๊ฐ„์ด ์†Œ์š”๋  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

### ๋“ฑ์žฅ ๊ฐ€๋Šฅํ•œ ํŽซ๋“ค

<img alt="docs/pets.svg" src="docs/pets.svg"/>
Expand Down
28 changes: 27 additions & 1 deletion src/main/kotlin/org/gitanimals/render/domain/User.kt
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,33 @@ class User(
private fun StringBuilder.openFarm(): StringBuilder =
this.append("<svg width=\"600\" height=\"300\" viewBox=\"0 0 600 300\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">")

private fun StringBuilder.closeSvg(): String = this.append("</svg>").toString()
private fun StringBuilder.closeSvg(): String = this.blackBlurOnLevel()
.append("</svg>")
.toString()

private fun StringBuilder.blackBlurOnLevel(): StringBuilder =
this.append(
"""
<style>
#level {
filter: url(#level_shadow)
}
</style>
<defs>
<filter id="level_shadow" x="-200" y="-200" width="400" height="400" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset/>
<feGaussianBlur stdDeviation="0.5"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_138_125"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_138_125" result="shape"/>
</filter>
</defs>
""".trimIndent()
)

companion object {
private const val MAX_PERSONA_COUNT = 30L
Expand Down

0 comments on commit 95ea68c

Please sign in to comment.