@@ -167,64 +167,34 @@ onUnmounted(() => {
167167 </aside >
168168
169169 <main class =" lg:col-span-9 xl:col-span-10" >
170- <div v-if =" !pkg.supported" class =" mb-6 rounded-lg border border-red-200 bg-red-50 p-4" >
171- <div class =" flex" >
172- <div class =" shrink-0" >
173- <Icon name =" fa7-solid:circle-xmark" class =" h-5 w-5 fill-current text-red-400" />
174- </div >
175- <div class =" ml-3" >
176- <div class =" text-xl font-semibold text-red-800" >Package No Longer Supported</div >
177- <p class =" text-md mt-1 text-red-700" >
178- The {{ pkg.name }} package is no longer supported and will not receive further
179- updates or bug fixes. You are advised to migrate to an alternative solution.
180- </p >
181- </div >
182- </div >
183- </div >
184-
185- <div v-if =" !pkgVersion!.released" class =" mb-6 rounded-lg border border-blue-200 bg-blue-50 p-4" >
186- <div class =" flex" >
187- <div class =" shrink-0" >
188- <Icon name =" fa7-solid:info-circle" class =" h-5 w-5 fill-current text-blue-400" />
189- </div >
190- <div class =" ml-3" >
191- <div class =" text-xl font-semibold text-blue-800" >Version Not Yet Released</div >
192- <p class =" text-md mt-1 text-blue-700" >
193- You are viewing the documentation for the {{ pkgVersion!.version }} branch of the
194- {{ pkg.name }} package which has not yet been released. Be aware that the API for
195- this version may change before release.
196- </p >
197- </div >
198- </div >
199- </div >
200-
201- <div
170+ <AppAlert v-if =" !pkg.supported" variant =" danger" >
171+ <template #title >Package No Longer Supported</template >
172+ The {{ pkg.name }} package is no longer supported and will not receive further updates or bug
173+ fixes. You are advised to migrate to an alternative solution.
174+ </AppAlert >
175+
176+ <AppAlert v-if =" !pkgVersion!.released" variant =" info" >
177+ <template #title >Version Not Yet Released</template >
178+ You are viewing the documentation for the {{ pkgVersion!.version }} branch of the
179+ {{ pkg.name }} package which has not yet been released. Be aware that the API for this version
180+ may change before release.
181+ </AppAlert >
182+
183+ <AppAlert
202184 v-if =" pkgVersion!.endOfSupport && new Date(pkgVersion!.endOfSupport) < new Date()"
203- class = " mb-6 rounded-lg border border-yellow-200 bg-yellow-50 p-4 "
185+ variant = " warning "
204186 >
205- <div class =" flex" >
206- <div class =" shrink-0" >
207- <Icon
208- name =" fa7-solid:exclamation-triangle"
209- class =" h-5 w-5 fill-current text-yellow-400"
210- />
211- </div >
212- <div class =" ml-3" >
213- <div class =" text-xl font-semibold text-yellow-800" >Version No Longer Supported</div >
214- <p class =" text-md mt-1 text-yellow-700" >
215- You are viewing the documentation for the {{ pkgVersion!.version }} branch of the
216- {{ pkg.name }} package which is no longer supported as of
217- <NuxtTime
218- :datetime =" pkgVersion!.endOfSupport"
219- year =" numeric"
220- month =" long"
221- day =" numeric"
222- locale =" en-US"
223- />. You are advised to upgrade as soon as possible to a supported version.
224- </p >
225- </div >
226- </div >
227- </div >
187+ <template #title >Version No Longer Supported</template >
188+ You are viewing the documentation for the {{ pkgVersion!.version }} branch of the
189+ {{ pkg.name }} package which is no longer supported as of
190+ <NuxtTime
191+ :datetime =" pkgVersion!.endOfSupport"
192+ year =" numeric"
193+ month =" long"
194+ day =" numeric"
195+ locale =" en-US"
196+ />. You are advised to upgrade as soon as possible to a supported version.
197+ </AppAlert >
228198
229199 <div class =" rounded-lg border border-gray-200 bg-white shadow-sm" >
230200 <div class =" p-8" >
0 commit comments