@@ -5,8 +5,8 @@ import booth_data from '~/data/booth.json'
55const { t } = useI18n (Astro .url .pathname )
66const locale = getLocaleFromPath (Astro .url .pathname )
77
8- const getTitle = (id : String ) => {
9- const booth = booth_data .find (booth => booth .location ?. split ( " # " )[ 1 ] === id )
8+ const getTitle = (id : Number ) => {
9+ const booth = booth_data .find (booth => booth .id === id )
1010 if (! booth ) return ' '
1111 if (locale === ' en' ) return booth .name_en
1212 return booth .name
@@ -165,92 +165,92 @@ const getTitle = (id: String) => {
165165 <g class =" venue-location clickable booth" transform =" translate(3900,3000) rotate(-78)" data-booth =" 17" >
166166 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
167167 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >17</text >
168- <title >{ getTitle (' 17 ' )} </title >
168+ <title >{ getTitle (17 )} </title >
169169 </g >
170170 <g class =" venue-location clickable booth" transform =" translate(3805,3450) rotate(-78)" data-booth =" 16" >
171171 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
172172 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >16</text >
173- <title >{ getTitle (' 16 ' )} </title >
173+ <title >{ getTitle (16 )} </title >
174174 </g >
175175 <g class =" venue-location clickable booth" transform =" translate(3710,3900) rotate(-78)" data-booth =" 15" >
176176 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
177177 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >15</text >
178- <title >{ getTitle (' 15 ' )} </title >
178+ <title >{ getTitle (15 )} </title >
179179 </g >
180180 <g class =" venue-location clickable booth" transform =" translate(3615,4350) rotate(-78)" data-booth =" 14" >
181181 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
182182 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >14</text >
183- <title >{ getTitle (' 14 ' )} </title >
183+ <title >{ getTitle (14 )} </title >
184184 </g >
185185 <g class =" venue-location clickable booth" transform =" translate(3520,4800) rotate(-78)" data-booth =" 13" >
186186 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
187187 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >13</text >
188- <title >{ getTitle (' 13 ' )} </title >
188+ <title >{ getTitle (13 )} </title >
189189 </g >
190190 <g class =" venue-location clickable booth" transform =" translate(3425,5250) rotate(-78)" data-booth =" 12" >
191191 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
192192 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >12</text >
193- <title >{ getTitle (' 12 ' )} </title >
193+ <title >{ getTitle (12 )} </title >
194194 </g >
195- <g class =" venue-location booth" transform =" translate(3330,5700) rotate(-78)" data-booth =" 11" >
195+ <g class =" venue-location clickable booth" transform =" translate(3330,5700) rotate(-78)" data-booth =" 11" >
196196 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
197197 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >11</text >
198- <title >{ getTitle (' 11 ' )} </title >
198+ <title >{ getTitle (11 )} </title >
199199 </g >
200200 <g class =" venue-location booth" transform =" translate(6430,3000) rotate(78)" data-booth =" 18" >
201201 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
202202 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >18</text >
203- <title >{ getTitle (' 18 ' )} </title >
203+ <title >{ getTitle (18 )} </title >
204204 </g >
205205 <g class =" venue-location clickable booth" transform =" translate(6525,3450) rotate(78)" data-booth =" 19" >
206206 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
207207 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >19</text >
208- <title >{ getTitle (' 19 ' )} </title >
208+ <title >{ getTitle (19 )} </title >
209209 </g >
210210 <g class =" venue-location clickable booth" transform =" translate(6620,3900) rotate(78)" data-booth =" 20" >
211211 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
212212 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >20</text >
213- <title >{ getTitle (' 20 ' )} </title >
213+ <title >{ getTitle (20 )} </title >
214214 </g >
215215 <g class =" venue-location clickable booth" transform =" translate(6715,4350) rotate(78)" data-booth =" 21" >
216216 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
217217 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >21</text >
218- <title >{ getTitle (' 21 ' )} </title >
218+ <title >{ getTitle (21 )} </title >
219219 </g >
220- <g class =" venue-location booth" transform =" translate(6810,4800) rotate(78)" data-booth =" 22" >
220+ <g class =" venue-location clickable booth" transform =" translate(6810,4800) rotate(78)" data-booth =" 22" >
221221 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
222222 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >22</text >
223- <title >{ getTitle (' 22 ' )} </title >
223+ <title >{ getTitle (22 )} </title >
224224 </g >
225225 <g class =" venue-location clickable booth" transform =" translate(6905,5250) rotate(78)" data-booth =" 23" >
226226 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
227227 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >23</text >
228- <title >{ getTitle (' 23 ' )} </title >
228+ <title >{ getTitle (23 )} </title >
229229 </g >
230- <g class =" venue-location booth" transform =" translate(7000,5700) rotate(78)" data-booth =" 24" >
230+ <g class =" venue-location clickable booth" transform =" translate(7000,5700) rotate(78)" data-booth =" 24" >
231231 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
232232 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >24</text >
233- <title >{ getTitle (' 24 ' )} </title >
233+ <title >{ getTitle (24 )} </title >
234234 </g >
235- <g class =" venue-location booth" transform =" translate(3500,7285) rotate(10)" data-booth =" 25" >
235+ <g class =" venue-location clickable booth" transform =" translate(3500,7285) rotate(10)" data-booth =" 25" >
236236 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
237237 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >25</text >
238- <title >{ getTitle (' 25 ' )} </title >
238+ <title >{ getTitle (25 )} </title >
239239 </g >
240- <g class =" venue-location booth" transform =" translate(4000,7370) rotate(8)" data-booth =" 26" >
240+ <g class =" venue-location clickable booth" transform =" translate(4000,7370) rotate(8)" data-booth =" 26" >
241241 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
242242 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >26</text >
243- <title >{ getTitle (' 26 ' )} </title >
243+ <title >{ getTitle (26 )} </title >
244244 </g >
245- <g class =" venue-location booth" transform =" translate(6340,7370) rotate(-8)" data-booth =" 27" >
245+ <g class =" venue-location clickable booth" transform =" translate(6340,7370) rotate(-8)" data-booth =" 27" >
246246 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
247247 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >27</text >
248- <title >{ getTitle (' 27 ' )} </title >
248+ <title >{ getTitle (27 )} </title >
249249 </g >
250250 <g class =" venue-location clickable booth" transform =" translate(6840,7285) rotate(-10)" data-booth =" 28" >
251251 <rect fill =" #ffd7a1" fill-opacity =" 0.5" stroke =" none" width =" 360" height =" 200" ></rect >
252252 <text style =" font-size: 150px; fill: black; font-weight: bold;" text-anchor =" middle" dominant-baseline =" middle" x =" 180" y =" 110" >28</text >
253- <title >{ getTitle (' 28 ' )} </title >
253+ <title >{ getTitle (28 )} </title >
254254 </g >
255255 </svg >
256256</div >
0 commit comments