| 
									
										
										
										
											2018-08-28 06:44:36 -07:00
										 |  |  | <div class="dynamic-page-banner {icon ? 'dynamic-page-with-icon' : ''}" | 
					
						
							|  |  |  |      role="navigation" aria-label="Page header" | 
					
						
							|  |  |  | > | 
					
						
							| 
									
										
										
										
											2018-05-01 17:05:36 -07:00
										 |  |  |   {#if icon} | 
					
						
							| 
									
										
										
										
											2018-03-16 08:42:10 -07:00
										 |  |  |   <svg class="dynamic-page-banner-svg"> | 
					
						
							| 
									
										
										
										
											2018-05-01 17:05:36 -07:00
										 |  |  |     <use xlink:href={icon} /> | 
					
						
							| 
									
										
										
										
											2018-02-07 22:49:50 -08:00
										 |  |  |   </svg> | 
					
						
							| 
									
										
										
										
											2018-05-01 17:05:36 -07:00
										 |  |  |   {/if} | 
					
						
							| 
									
										
										
										
											2018-08-28 06:44:36 -07:00
										 |  |  |   <h1 class="dynamic-page-title" aria-label={ariaTitle}>{title}</h1> | 
					
						
							| 
									
										
										
										
											2018-01-22 21:16:27 -08:00
										 |  |  |   <button type="button" | 
					
						
							|  |  |  |           class="dynamic-page-go-back" | 
					
						
							| 
									
										
										
										
											2018-08-28 06:44:36 -07:00
										 |  |  |           aria-label="Go back" | 
					
						
							| 
									
										
										
										
											2018-01-22 21:16:27 -08:00
										 |  |  |           on:click="onGoBack(event)">Back</button> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | <style> | 
					
						
							|  |  |  |   .dynamic-page-banner { | 
					
						
							| 
									
										
										
										
											2018-02-07 22:49:50 -08:00
										 |  |  |     display: grid; | 
					
						
							| 
									
										
										
										
											2018-01-22 21:16:27 -08:00
										 |  |  |     align-items: center; | 
					
						
							| 
									
										
										
										
											2018-01-27 18:41:41 -08:00
										 |  |  |     margin: 20px 20px 20px; | 
					
						
							| 
									
										
										
										
											2018-02-07 22:49:50 -08:00
										 |  |  |     grid-template-columns: 1fr min-content; | 
					
						
							|  |  |  |     grid-column-gap: 10px; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  |   .dynamic-page-banner.dynamic-page-with-icon { | 
					
						
							|  |  |  |     grid-template-columns: min-content 1fr min-content; | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2018-03-16 08:42:10 -07:00
										 |  |  |   .dynamic-page-banner-svg { | 
					
						
							| 
									
										
										
										
											2018-02-07 22:49:50 -08:00
										 |  |  |     width: 24px; | 
					
						
							|  |  |  |     height: 24px; | 
					
						
							|  |  |  |     fill: var(--body-text-color); | 
					
						
							| 
									
										
										
										
											2018-01-22 21:16:27 -08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2018-03-16 08:42:10 -07:00
										 |  |  |   .dynamic-page-title { | 
					
						
							| 
									
										
										
										
											2018-01-22 21:16:27 -08:00
										 |  |  |     margin: 0; | 
					
						
							|  |  |  |     white-space: nowrap; | 
					
						
							|  |  |  |     overflow: hidden; | 
					
						
							|  |  |  |     text-overflow: ellipsis; | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2018-03-16 08:42:10 -07:00
										 |  |  |   .dynamic-page-go-back { | 
					
						
							| 
									
										
										
										
											2018-01-22 21:16:27 -08:00
										 |  |  |     font-size: 1.3em; | 
					
						
							|  |  |  |     color: var(--anchor-text); | 
					
						
							|  |  |  |     border: 0; | 
					
						
							|  |  |  |     padding: 0; | 
					
						
							|  |  |  |     background: none; | 
					
						
							| 
									
										
										
										
											2018-02-07 22:49:50 -08:00
										 |  |  |     justify-self: flex-end; | 
					
						
							| 
									
										
										
										
											2018-01-22 21:16:27 -08:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2018-03-16 08:42:10 -07:00
										 |  |  |   .dynamic-page-go-back:hover { | 
					
						
							| 
									
										
										
										
											2018-01-22 21:16:27 -08:00
										 |  |  |     text-decoration: underline; | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2018-03-16 08:42:10 -07:00
										 |  |  |   .dynamic-page-go-back::before { | 
					
						
							| 
									
										
										
										
											2018-08-16 16:29:12 +02:00
										 |  |  |     content: '←'; | 
					
						
							| 
									
										
										
										
											2018-01-22 21:16:27 -08:00
										 |  |  |     margin-right: 5px; | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2018-01-28 16:34:18 -08:00
										 |  |  |   @media (max-width: 767px) { | 
					
						
							|  |  |  |     .dynamic-page-banner { | 
					
						
							| 
									
										
										
										
											2018-01-30 22:40:40 -08:00
										 |  |  |       margin: 20px 10px 20px; | 
					
						
							| 
									
										
										
										
											2018-01-28 16:34:18 -08:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2018-03-16 08:42:10 -07:00
										 |  |  |     .dynamic-page-title { | 
					
						
							| 
									
										
										
										
											2018-01-30 22:40:40 -08:00
										 |  |  |       font-size: 1.3em; | 
					
						
							| 
									
										
										
										
											2018-01-28 16:34:18 -08:00
										 |  |  |     } | 
					
						
							| 
									
										
										
										
											2018-03-16 08:42:10 -07:00
										 |  |  |     .dynamic-page-go-back { | 
					
						
							| 
									
										
										
										
											2018-01-30 22:40:40 -08:00
										 |  |  |       font-size: 1.3em; | 
					
						
							| 
									
										
										
										
											2018-01-28 16:34:18 -08:00
										 |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2018-01-22 21:16:27 -08:00
										 |  |  | </style> | 
					
						
							|  |  |  | <script> | 
					
						
							|  |  |  |   export default { | 
					
						
							| 
									
										
										
										
											2018-04-29 22:13:41 -07:00
										 |  |  |     data: () => ({ | 
					
						
							| 
									
										
										
										
											2018-08-28 06:44:36 -07:00
										 |  |  |       icon: void 0, | 
					
						
							|  |  |  |       ariaTitle: '' | 
					
						
							| 
									
										
										
										
											2018-04-29 22:13:41 -07:00
										 |  |  |     }), | 
					
						
							| 
									
										
										
										
											2018-01-22 21:16:27 -08:00
										 |  |  |     methods: { | 
					
						
							| 
									
										
										
										
											2018-04-19 21:38:01 -07:00
										 |  |  |       onGoBack (e) { | 
					
						
							| 
									
										
										
										
											2018-01-22 21:16:27 -08:00
										 |  |  |         e.preventDefault() | 
					
						
							| 
									
										
										
										
											2018-02-08 22:44:05 -08:00
										 |  |  |         window.history.back() | 
					
						
							| 
									
										
										
										
											2018-01-22 21:16:27 -08:00
										 |  |  |       } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  |   } | 
					
						
							| 
									
										
										
										
											2018-08-16 16:29:12 +02:00
										 |  |  | </script> |