Skip to content

Commit 403d451

Browse files
committed
add observations
1 parent 2cefb83 commit 403d451

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

pages/dev/test-site/explore/+Page.client.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ function createCheckins(result, mapRef, showPin) {
212212
h(Image, {className: 'likes-image', src: "explore/thumbs-up.png"}),
213213
h('h3', {className: 'likes'}, checkin.likes),
214214
]),
215+
h('div', {className: 'observations-container'}, [
216+
h(Image, {className: 'observations-image', src: "explore/observations.png"}),
217+
h('h3', {className: 'comments'}, checkin.observations.length),
218+
]),
215219
h('div', {className: 'comments-container'}, [
216220
h(Image, {className: 'comments-image', src: "explore/comment.png"}),
217221
h('h3', {className: 'comments'}, checkin.comments),

pages/dev/test-site/explore/main.styl

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ h3,h4,p
197197

198198
.likes-container
199199
display grid
200-
grid-template-columns 30% 30%
201-
width 50%
200+
grid-template-columns 50% 50%
201+
width 25%
202202
justify-content end
203203
place-items center
204204

@@ -208,13 +208,22 @@ h3,h4,p
208208

209209
.comments-container
210210
display grid
211-
grid-template-columns 30% 30%
212-
width 50%
211+
grid-template-columns 50% 50%
212+
width 25%
213213
place-items center
214214

215215
.comments-image
216216
width 40px
217217

218+
.observations-container
219+
display grid
220+
grid-template-columns 50% 50%
221+
width 25%
222+
place-items center
223+
224+
.observations-image
225+
width 40px
226+
218227
.marker
219228
height 7vh
220229
display grid

0 commit comments

Comments
 (0)