|
95 | 95 | </sl-dropdown> |
96 | 96 | </div> |
97 | 97 |
|
98 | | - <a |
99 | | - class="ks-banner{% if toc %} with-toc{% endif %}" |
100 | | - href="https://webawesome.com/" |
101 | | - target="_blank" |
102 | | - > |
103 | | - <span> |
104 | | - <svg viewBox="0 0 20 16" xmlns="http://www.w3.org/2000/svg"> |
105 | | - <path fill="white" d="M11.63 1.625C11.63 2.27911 11.2435 2.84296 10.6865 3.10064L14 6L17.2622 5.34755C17.0968 5.10642 17 4.81452 17 4.5C17 3.67157 17.6716 3 18.5 3C19.3284 3 20 3.67157 20 4.5C20 5.31157 19.3555 5.9726 18.5504 5.99917L15.0307 13.8207C14.7077 14.5384 13.9939 15 13.2068 15H6.79317C6.00615 15 5.29229 14.5384 4.96933 13.8207L1.44963 5.99917C0.64452 5.9726 0 5.31157 0 4.5C0 3.67157 0.671573 3 1.5 3C2.32843 3 3 3.67157 3 4.5C3 4.81452 2.9032 5.10642 2.73777 5.34755L6 6L9.31702 3.09761C8.76346 2.83855 8.38 2.27656 8.38 1.625C8.38 0.727537 9.10754 0 10.005 0C10.9025 0 11.63 0.727537 11.63 1.625Z"/> |
106 | | - </svg> |
107 | | - <span> |
108 | | - <strong style="white-space: nowrap;">Web Awesome</strong> has launched! |
109 | | - <br> |
110 | | - <small>Come see the latest version of Shoelace.</small> |
111 | | - </span> |
112 | | - </span> |
113 | | - <span class="faux-button">Take me there →</span> |
114 | | - </a> |
| 98 | + <sl-dialog id="wa-dialog" label="Shoelace is now Web Awesome!"> |
| 99 | + <div class="dialog-billboard"> |
| 100 | + <div class="dialog-billboard-content"> |
| 101 | + {% include 'wa-logo-icon.njk' %} |
| 102 | + <h2>Shoelace is now Web Awesome!</h2> |
| 103 | + </div> |
| 104 | + </div> |
| 105 | + |
| 106 | + <div class="dialog-body"> |
| 107 | + <p>Web Awesome, like Shoelace before it, has an even larger library of free web <a href="https://webawesome.com/docs/components/?utm_source=shoelace-docs&utm_medium=web&utm_campaign=wa-dialog" target="_blank">components</a>. Plus, it has <a href="https://webawesome.com/docs/themes/?utm_source=shoelace-docs&utm_medium=web&utm_campaign=wa-dialog" target="_blank">themes</a>, <a href="https://webawesome.com/docs/utilities/?utm_source=shoelace-docs&utm_medium=web&utm_campaign=wa-dialog" target="_blank">utilities</a>, <a href="https://webawesome.com/docs/patterns/?utm_source=shoelace-docs&utm_medium=web&utm_campaign=wa-dialog" target="_blank">patterns</a>, and more.</p> |
| 108 | + |
| 109 | + <p>Switch from Shoelace for free today. <strong>Grab Web Awesome Pro and get even more at a 20% discount!</strong></p> |
| 110 | + |
| 111 | + <sl-divider></sl-divider> |
| 112 | + |
| 113 | + <div class="dialog-actions"> |
| 114 | + <sl-button variant="text" class="close-wa-dialog">Okay, got it</sl-button> |
| 115 | + <div class="wa-ctas"> |
| 116 | + <sl-button variant="primary" outline class="wa-cta" href="https://webawesome.com/docs?utm_source=shoelace-docs&utm_medium=web&utm_campaign=wa-dialog" target="_blank">Try Web Awesome</sl-button> |
| 117 | + <sl-button variant="primary" class="wa-pro-cta" href="https://webawesome.com/purchase?discount=TRYPRO20&utm_source=shoelace-docs&utm_medium=web&utm_campaign=wa-dialog" target="_blank">Save 20% on Pro!</sl-button> |
| 118 | + </div> |
| 119 | + </div> |
| 120 | + </div> |
| 121 | + |
| 122 | + <div slot="footer"> |
| 123 | + <div class="sl-status"> |
| 124 | + <strong>FYI, Shoelace is no longer actively being developed</strong> |
| 125 | + <p>But it is still available for use and may receive updates as needed.</p> |
| 126 | + </div> |
| 127 | + </div> |
| 128 | + </sl-dialog> |
| 129 | + <script> |
| 130 | + if (!sessionStorage.getItem('wa-dialog-dismissed')) { |
| 131 | + customElements.whenDefined('sl-dialog').then(() => { |
| 132 | + const dialog = document.getElementById('wa-dialog'); |
| 133 | + const closeButton = dialog.querySelector('sl-button.close-wa-dialog'); |
| 134 | +
|
| 135 | + closeButton.addEventListener('click', () => dialog.hide()); |
| 136 | + dialog.addEventListener('sl-after-hide', () => { |
| 137 | + sessionStorage.setItem('wa-dialog-dismissed', 'true'); |
| 138 | + }, { once: true }); |
| 139 | +
|
| 140 | + dialog.show(); |
| 141 | + }); |
| 142 | + } |
| 143 | + </script> |
115 | 144 |
|
116 | 145 | <aside id="sidebar" data-preserve-scroll> |
117 | 146 | <header> |
|
0 commit comments