Skip to content

Commit f5dbb60

Browse files
authored
Merge pull request #36 from jnnfrpyn/main
2 parents 8c6e010 + 2a3d8f1 commit f5dbb60

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

src/main/scala/gsoc/contributors/all.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ val allContributors = NonEmptyList.of(
99
synan_mannan,
1010
antoniojimeneznieto,
1111
`tanmay_008`,
12+
jnnfrpyn,
1213
`typelevel-bot`,
1314
`im-vedant`,
1415
abby_ql,
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
package gsoc
2+
package contributors
3+
4+
import cats.effect.*
5+
import fs2.concurrent.*
6+
import fs2.dom.HtmlElement
7+
import calico.html.io.{*, given}
8+
import calico.syntax.*
9+
10+
val jnnfrpyn: Contributor = Contributor("jnnfrpyn"):
11+
SignallingRef[IO].of(0).toResource.flatMap { count =>
12+
div(
13+
styleAttr := "padding: 24px;",
14+
p(
15+
"Hi folks! I'm ",
16+
span(styleAttr := "color: #fd6161; font-weight: bold", "@jnnfrpyn "),
17+
" on GitHub. I heartily agree to follow the Typelevel CoC and GSoC AI policy! ❤️"
18+
),
19+
button(
20+
onClick --> (_.foreach(_ => count.update(_ + 1))),
21+
"Add a circle!"
22+
),
23+
count.map(n =>
24+
div(
25+
styleAttr := "display: flex; gap: 8px; flex-wrap: wrap;",
26+
List.fill(n)(
27+
div(
28+
styleAttr := "width: 40px; height: 40px; border-radius: 50%; background-color: #fd6161"
29+
)
30+
)
31+
))
32+
)
33+
}

0 commit comments

Comments
 (0)