File tree Expand file tree Collapse file tree 3 files changed +21
-9
lines changed Expand file tree Collapse file tree 3 files changed +21
-9
lines changed Original file line number Diff line number Diff line change
1
+ <script lang =" ts" >
2
+ import { Route } from " ../../stores/mountains"
3
+ export let route: Route ;
4
+ </script >
5
+
6
+ <div class ="italic text-gray-600" >{route .ascent }</div >
Original file line number Diff line number Diff line change 2
2
import { Route } from ' ../../stores/mountains'
3
3
import { repeatString } from ' ../../utils/array'
4
4
import TopoText from ' ../TopoText.svelte'
5
- import Pitches from ' ./Pitches.svelte'
5
+ import Pitches from ' ./Pitches.svelte'
6
+ import RouteAttribution from ' ./RouteAttribution.svelte'
6
7
7
- export let route: Route ;
8
+ export let route: Route
8
9
</script >
9
10
10
11
<div class =" font-bold" >
16
17
</div >
17
18
{#if route .image }
18
19
<a target ="_blank" rel ="noopener noreferrer" href ={route .image }>
19
- <img class ="h-64 w-full object-cover object-scale" alt ={route .name } src ={route .image } />
20
+ <img
21
+ class =" h-64 w-full object-cover object-scale"
22
+ alt ={route .name }
23
+ src ={route .image } />
20
24
</a >
21
25
{/if }
22
26
<div >
23
27
<TopoText text ={route .description } />
24
28
</div >
25
29
26
- <Pitches pitches ={route .pitches }/>
30
+ <Pitches pitches ={route .pitches } />
31
+ <RouteAttribution {route } />
Original file line number Diff line number Diff line change 24
24
import Grade from ' ./Grade.svelte'
25
25
import { parseGrade } from ' ../../utils/grade'
26
26
import VirtualList from ' ../VirtualList.svelte'
27
- import { repeatString } from ' ../../utils/array'
27
+ import { repeatString } from ' ../../utils/array'
28
+ import RouteAttribution from ' ./RouteAttribution.svelte'
28
29
29
30
const viewMountain = (mountain : Mountain , route : Route ) => {
30
31
fragment .update ((value ) => ({
71
72
)
72
73
})
73
74
// Filter stars
74
- .filter (([,r ]) => {
75
+ .filter (([, r ]) => {
75
76
if ($minStars !== ' any' && r .quality < $minStars ) return false
76
77
if ($maxStars !== ' any' && r .quality > $maxStars ) return false
77
78
return true
121
122
<label >
122
123
Min:
123
124
<select bind:value ={$minStars }>
124
- <option value =' any' >Any</option >
125
+ <option value =" any" >Any</option >
125
126
<option value ={1 }>1</option >
126
127
<option value ={2 }>2</option >
127
128
<option value ={3 }>3</option >
130
131
<label >
131
132
Max:
132
133
<select bind:value ={$maxStars }>
133
- <option value =' any' >Any</option >
134
+ <option value =" any" >Any</option >
134
135
<option >0</option >
135
136
<option >1</option >
136
137
<option >2</option >
185
186
</div >
186
187
<div >
187
188
{item [1 ].description }
188
- <div class = "italic text-gray-600" > {item [1 ]. ascent }</ div >
189
+ <RouteAttribution route = {item [1 ]} / >
189
190
</div >
190
191
</Card >
191
192
</div >
You can’t perform that action at this time.
0 commit comments