Skip to content

Commit 299b16f

Browse files
committed
Hire me modal struture
1 parent ab94947 commit 299b16f

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

src/components/shared/Header.vue

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,65 @@
9494
</div>
9595
</div>
9696
</div>
97+
98+
<transition name="fade">
99+
<div v-show="show_modal" class="fixed inset-0 z-30">
100+
<!-- background -->
101+
<div
102+
v-show="show_modal"
103+
@click="showModal()"
104+
class="bg-filter bg-white opacity-25 fixed inset-0 w-full h-full z-20"
105+
></div>
106+
<!-- -->
107+
<main
108+
class="flex flex-col items-center justify-center h-full w-full"
109+
>
110+
<transition name="fade-up-down">
111+
<div
112+
v-show="show_modal"
113+
class="modal-wrapper inline-block flex items-center z-30"
114+
>
115+
<div
116+
class="modal max-w-md mx-auto xl:max-w-5xl lg:max-w-5xl md:max-w-2xl bg-white max-h-screen shadow-lg flex-row rounded relative"
117+
>
118+
<div
119+
class="modal-header p-5 bg-gray-900 text-gray-900 rounded-t"
120+
>
121+
<h5 class="text-white text-2xl uppercase">
122+
this is header
123+
</h5>
124+
</div>
125+
<div
126+
class="modal-body p-5 w-full h-full overflow-y-auto "
127+
>
128+
<p class="text-justify">
129+
cilis omnis nam illum maiores, porro
130+
velit deserunt neque. Lorem ipsum dolor,
131+
sit amet consectetur adipisicing elit.
132+
Esse, voluptates eveniet labore dolorum
133+
molestiae, modi saepe fugiat minima
134+
repudiandae repellendus obcaecati
135+
voluptatibus ab tenetur recusandae eius
136+
quos at maiores atque consectetur
137+
facilis! Nisi fuga
138+
</p>
139+
</div>
140+
<div
141+
class="modal-footer py-3 px-5 border0-t text-right"
142+
>
143+
<button
144+
class="bg-green-500 px-5 py-2 text-white"
145+
@click="showModal()"
146+
>
147+
OK
148+
</button>
149+
</div>
150+
</div>
151+
</div>
152+
</transition>
153+
</main>
154+
</div>
155+
</transition>
97156
</nav>
98157
</template>
99158

0 commit comments

Comments
 (0)