Skip to content

Commit 7c8f1ff

Browse files
committed
adding via strabospot url to the checkins details page
1 parent ab2a9ce commit 7c8f1ff

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

pages/checkin/index.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,20 @@ export function Checkins({ checkin, comments }) {
133133

134134
let main = h("div", { className: "container" }, [
135135
h("div", { className: "main" }, [
136-
h("div", { className: "checkin-head" }, [h("h1", checkin.notes)]),
136+
h("div", { className: "checkin-head" }, [
137+
h("h1", checkin.notes),
138+
checkin.spot_id != null &&
139+
h(
140+
"a",
141+
{
142+
className: "strabo-link",
143+
href: "https://strabospot.org",
144+
target: "_blank",
145+
rel: "noopener noreferrer",
146+
},
147+
"via StraboSpot"
148+
),
149+
]),
137150
h(Overlay, {
138151
checkin,
139152
center,

pages/checkin/main.module.sass

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,22 @@ h4
113113
padding: 30px 0
114114
width: 100%
115115
color: var(--text-emphasized-color)
116+
display: flex
117+
align-items: flex-start
118+
justify-content: space-between
119+
gap: 8px
120+
121+
h1
122+
margin: 0
123+
124+
.strabo-link
125+
margin-left: auto
126+
font-size: 0.9rem
127+
color: #1a73e8
128+
text-decoration: underline
129+
130+
&:hover
131+
color: #b01594
116132

117133
.loading
118134
height: 75vh

0 commit comments

Comments
 (0)