-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.html
57 lines (56 loc) · 1.34 KB
/
sample.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>注意事項</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.popup {
position: fixed;
width: 95%;
height: 95%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #0ff;
border: 1px solid #f00;
/* padding: 20px; */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
</style>
</head>
<body>
<div id="app">
<button @click="showPopup">注意事項</button>
<div v-if="isPopupVisible" class="popup">
<h2>注意事項の説明</h2>
<p>この注意事項をよく読んでからこのサイトをご利用ください。</p>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<script>
new Vue({
el: '#app',
data: {
isPopupVisible: false,
},
methods: {
showPopup() {
this.isPopupVisible = true;
},
},
});
</script>
</body>
</html>