Skip to content

Commit a361ae2

Browse files
committed
Clean up starting-style example
1 parent df6447a commit a361ae2

File tree

1 file changed

+10
-68
lines changed

1 file changed

+10
-68
lines changed

src/pages/examples/v4-docs-starting-style-example.js

Lines changed: 10 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,38 @@ export default function StartingStyleDemo() {
1414
className="opacity-0 [transition-behavior:allow-discrete] duration-500 [&:is([open],:popover-open)]:opacity-100 [@starting-style]:[&:is([open],:popover-open)]:opacity-0 relative transform overflow-hidden rounded-lg bg-white dark:bg-slate-800 px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:w-full sm:max-w-96 sm:p-6"
1515
>
1616
<div>
17-
<div class="mx-auto flex size-12 items-center justify-center rounded-full bg-indigo-50 dark:bg-indigo-600/10">
17+
<div className="mx-auto flex size-12 items-center justify-center rounded-full bg-indigo-50 dark:bg-indigo-600/10">
1818
<svg
19-
class="size-5 text-indigo-400 dark:text-indigo-600"
19+
className="size-5 text-indigo-400 dark:text-indigo-600"
2020
viewBox="0 0 20 20"
2121
fill="currentColor"
2222
aria-hidden="true"
2323
data-slot="icon"
2424
>
2525
<path
26-
fill-rule="evenodd"
26+
fillRule="evenodd"
2727
d="M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z"
28-
clip-rule="evenodd"
28+
clipRule="evenodd"
2929
/>
3030
</svg>
3131
</div>
32-
<div class="mt-3 text-center sm:mt-5">
33-
<h3 class="text-base font-semibold text-gray-900 dark:text-white" id="modal-title">
32+
<div className="mt-3 text-center sm:mt-5">
33+
<h3 className="text-base font-semibold text-gray-900 dark:text-white" id="modal-title">
3434
Update available
3535
</h3>
36-
<div class="mt-2">
37-
<p class="text-sm text-gray-500 dark:text-gray-200">
36+
<div className="mt-2">
37+
<p className="text-sm text-gray-500 dark:text-gray-200">
3838
A new software update is available: <span className="font-semibold">v2.0.4.</span>{' '}
3939
<br />
4040
Click the button below to install it.
4141
</p>
4242
</div>
4343
</div>
4444
</div>
45-
<div class="mt-5 ">
45+
<div className="mt-5 ">
4646
<button
4747
type="button"
48-
class="inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2"
48+
className="inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2"
4949
>
5050
Install
5151
</button>
@@ -54,61 +54,3 @@ export default function StartingStyleDemo() {
5454
</div>
5555
)
5656
}
57-
58-
;<div
59-
popover="auto"
60-
id="my-popover"
61-
class="relative z-10 [transition-behavior:allow-discrete] transition-all duration-500 [&:is([open],:popover-open)]:opacity-100 [@starting-style]:[&:is([open],:popover-open)]:opacity-0"
62-
aria-labelledby="modal-title"
63-
role="dialog"
64-
aria-modal="true"
65-
>
66-
<div class="fixed inset-0 bg-gray-500/75 transition-opacity" aria-hidden="true"></div>
67-
<div class="fixed inset-0 z-10 w-screen overflow-y-auto">
68-
<div class="flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0">
69-
<div class="relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6">
70-
<div>
71-
<div class="mx-auto flex size-12 items-center justify-center rounded-full bg-green-100">
72-
<svg
73-
class="size-6 text-green-600"
74-
fill="none"
75-
viewBox="0 0 24 24"
76-
stroke-width="1.5"
77-
stroke="currentColor"
78-
aria-hidden="true"
79-
data-slot="icon"
80-
>
81-
<path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 6 6 9-13.5" />
82-
</svg>
83-
</div>
84-
<div class="mt-3 text-center sm:mt-5">
85-
<h3 class="text-base font-semibold text-gray-900" id="modal-title">
86-
Payment successful
87-
</h3>
88-
<div class="mt-2">
89-
<p class="text-sm text-gray-500">
90-
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Eius aliquam laudantium
91-
explicabo pariatur iste dolorem animi vitae error totam. At sapiente aliquam
92-
accusamus facere veritatis.
93-
</p>
94-
</div>
95-
</div>
96-
</div>
97-
<div class="mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3">
98-
<button
99-
type="button"
100-
class="inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2"
101-
>
102-
Deactivate
103-
</button>
104-
<button
105-
type="button"
106-
class="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0"
107-
>
108-
Cancel
109-
</button>
110-
</div>
111-
</div>
112-
</div>
113-
</div>
114-
</div>

0 commit comments

Comments
 (0)