Skip to content

Commit 9cac6cc

Browse files
committed
minor styling fixes trips page
1 parent 8536de4 commit 9cac6cc

File tree

2 files changed

+33
-18
lines changed

2 files changed

+33
-18
lines changed

pages/trip/index.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,21 @@ export function Trips({trip}) {
137137
h('div', { className: 'top' }, [
138138
h('div', { className: 'checkin-header' }, [
139139
h('h3', {className: 'profile-pic'}, profile_pic),
140-
h('div', {className: 'checkin-info'}, [
140+
h('div', {className: 'stop-info'}, [
141141
h('h3', {className: 'name'}, data.first_name + " " + data.last_name),
142142
h('h4', {className: 'edited'}, "Edited " + data.updated),
143143
]),
144144
h(DarkModeButton, { className: 'dark-mode-button', showText: true }),
145145
]),
146-
h('h1', {className: 'park'}, data.name),
147-
h('p', {className: 'download-button'}, [
148-
h('a', {className: 'kmz', href: apiURL + "/trips/" + data.trip_id + "?format=kmz"}, "DOWNLOAD KMZ"),
149-
]),
150146
]),
151147
h('div', { className: 'bottom' }, [
148+
h("div.details", [
149+
h('h1', {className: 'park'}, data.name),
150+
h('p', {className: 'description'}, data.description),
151+
h('p', {className: 'download-button'}, [
152+
h('a', {className: 'kmz', href: apiURL + "/trips/" + data.trip_id + "?format=kmz"}, "DOWNLOAD KMZ"),
153+
]),
154+
]),
152155
h('div', {className: 'stop-list'}, stops),
153156
]),
154157
]),

pages/trip/main.sass

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,6 @@ html, body, .wrapper, #react, .app, #map
227227
display: flex
228228
height: 15vh
229229

230-
.park
231-
height: 5vh
232-
margin: 0
233-
margin-bottom: 10px
234-
235230
.stop-description
236231
color: black
237232
text-align: left
@@ -242,11 +237,8 @@ html, body, .wrapper, #react, .app, #map
242237
border-radius: 2%
243238

244239
.stop-list
245-
overflow: scroll
246-
overflow-x: hidden
247-
height: 68vh
248-
-webkit-mask-image: linear-gradient(to top, black 95%, transparent 100%)
249240
padding: 20px 10px
241+
padding-top: 0
250242

251243
.map
252244
height: 100vh
@@ -331,13 +323,27 @@ html, body, .wrapper, #react, .app, #map
331323
margin: 0
332324

333325
.top
334-
height: 32vh
326+
height: 20vh
335327

336328
.checkin-header
337329
padding: 30px
338330

339331
.bottom
340-
height: 30vh
332+
height: 80vh
333+
overflow: scroll
334+
overflow-x: hidden
335+
text-align: left
336+
337+
.details
338+
margin: 0
339+
padding: 15px
340+
341+
.park
342+
margin: 0
343+
344+
.description
345+
margin: 0
346+
padding-bottom: 25px
341347

342348
.stop-main-info
343349
text-align: left
@@ -381,5 +387,11 @@ html, body, .wrapper, #react, .app, #map
381387
border-radius: 4px
382388
padding: 7px
383389

384-
.checkin-info
385-
text-align: left
390+
.stop-info
391+
text-align: left
392+
h3, h4
393+
margin: 0
394+
395+
display: grid
396+
margin: auto
397+

0 commit comments

Comments
 (0)