File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 80
80
<div >
81
81
<button
82
82
class =" text-md font-medium bg-indigo-500 hover:bg-indigo-600 text-white shadow-sm rounded-lg px-5 py-2.5"
83
+ @click =" showModal()"
83
84
>
84
85
Hire Me
85
86
</button >
97
98
98
99
<!-- Hire me modal start -->
99
100
<transition name =" fade" >
100
- <div v-show =" show_modal " class =" fixed inset-0 z-30" >
101
+ <div v-show =" modal " class =" fixed inset-0 z-30" >
101
102
<!-- background -->
102
103
<div
103
- v-show =" show_modal "
104
+ v-show =" modal "
104
105
@click =" showModal()"
105
- class =" bg-filter bg-white opacity-25 fixed inset-0 w-full h-full z-20"
106
+ class =" bg-filter bg-black bg- opacity-70 fixed inset-0 w-full h-full z-20"
106
107
></div >
107
108
<!-- -->
108
109
<main
109
110
class =" flex flex-col items-center justify-center h-full w-full"
110
111
>
111
112
<transition name =" fade-up-down" >
112
113
<div
113
- v-show =" show_modal "
114
- class =" modal-wrapper inline-block flex items-center z-30"
114
+ v-show =" modal "
115
+ class =" modal-wrapper flex items-center z-30"
115
116
>
116
117
<div
117
118
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"
@@ -170,7 +171,7 @@ export default {
170
171
return {
171
172
isOpen: false ,
172
173
theme: ' ' ,
173
- modal: true ,
174
+ modal: false ,
174
175
};
175
176
},
176
177
@@ -186,17 +187,17 @@ export default {
186
187
this .theme = theme;
187
188
},
188
189
showModal () {
189
- if (this .show_modal ) {
190
+ if (this .modal ) {
190
191
// stop screen scrolling
191
192
document
192
193
.getElementsByTagName (' html' )[0 ]
193
194
.classList .remove (' overflow-y-hidden' );
194
- this .show_modal = false ;
195
+ this .modal = false ;
195
196
} else {
196
197
document
197
198
.getElementsByTagName (' html' )[0 ]
198
199
.classList .add (' overflow-y-hidden' );
199
- this .show_modal = true ;
200
+ this .modal = true ;
200
201
}
201
202
},
202
203
},
You can’t perform that action at this time.
0 commit comments