File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 95
95
</div >
96
96
</div >
97
97
98
+ <!-- Hire me modal start -->
98
99
<transition name =" fade" >
99
100
<div v-show =" show_modal" class =" fixed inset-0 z-30" >
100
- <!-- background -->
101
+ <!-- background -->
101
102
<div
102
103
v-show =" show_modal"
103
104
@click =" showModal()"
153
154
</main >
154
155
</div >
155
156
</transition >
157
+ <!-- Hire me modal end -->
156
158
</nav >
157
159
</template >
158
160
@@ -168,6 +170,7 @@ export default {
168
170
return {
169
171
isOpen: false ,
170
172
theme: ' ' ,
173
+ modal: true ,
171
174
};
172
175
},
173
176
@@ -182,6 +185,20 @@ export default {
182
185
updateTheme (theme ) {
183
186
this .theme = theme;
184
187
},
188
+ showModal () {
189
+ if (this .show_modal ) {
190
+ // stop screen scrolling
191
+ document
192
+ .getElementsByTagName (' html' )[0 ]
193
+ .classList .remove (' overflow-y-hidden' );
194
+ this .show_modal = false ;
195
+ } else {
196
+ document
197
+ .getElementsByTagName (' html' )[0 ]
198
+ .classList .add (' overflow-y-hidden' );
199
+ this .show_modal = true ;
200
+ }
201
+ },
185
202
},
186
203
updated () {
187
204
feather .replace ();
You can’t perform that action at this time.
0 commit comments