-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathValentine_Site.html
169 lines (166 loc) · 4.27 KB
/
Valentine_Site.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>
<html>
<head>
<link rel="icon" type="image/x-icon" href="./Profile.png">
<meta charset="utf-8" />
<title>Do you love me?</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
/>
<style>
.center-screen {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
img {
width: 350px;
}
.buttones {
width: 100%;
text-align: center;
}
.btn {
display: inline-block;
}
h2 {
color: white;
font-size: 18px;
padding-top: 2px;
padding-left: 5px;
padding-right: 5px;
}
.mainn a {
text-decoration: none;
position: absolute;
right: 2%;
color: red;
bottom: 2%;
}
#nooo {
background: transparent;
color: red;
border: none;
}
.nooo {
color: red;
font-weight: 700;
font-size: 25px;
}
#nobut {
background: red;
}
#yesbut {
background: green;
padding: 10px;
padding-left: 18px;
padding-right: 18px;
}
h1 {
text-shadow: 0 0 10px rgba(255, 254, 255, 0.68);
font-family: cursive;
font-weight: 800;
}
</style>
</head>
<body>
<div
id="app"
class="center-screen"
style="display: flex; flex-direction: column"
>
<h1>Will You Be My Valentine?</h1>
<img
src="https://i.postimg.cc/DZkw7g5n/output-onlinegiftools.gif"
alt=""
/>
<button
type="button"
class="btn btn-danger"
@click="changeText('noButton')"
id="nooo"
>
<h2 class="nooo" @click="changeText('heading') ">
{{ currentHeaderText }}
</h2>
</button>
<div class="buttones">
<button
type="button"
class="btn btn-success mr-2"
:style="{ fontSize: yesButtonSize + 'rem' }"
:key="yesButtonSize"
@click="yesButton"
id="yesbut"
>
Yes
</button>
<button
type="button"
class="btn btn-danger"
@click="changeText('noButton')"
id="nobut"
>
<h2>No</h2>
</button>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<script>
new Vue({
el: "#app",
data: {
headerText: [
"",
"Are you Sure?",
"Really Sure?",
"Think Again..",
"Last Chance!",
"Surely not?",
"You Might Regret this?",
"Give it another thought!",
"This Could be a mistake!",
"Don't be so cold",
"Wouldn't you reconsider?",
"Is that your Final answer?",
"You're breaking my heart :(",
],
confirmationMessages: [
"Are you sure?",
"Are you sure you don't like me?",
"Are you absolutely certain?",
// Add more confirmation messages as needed
],
currentHeaderTextIndex: 0,
currentConfirmationIndex: 0,
yesButtonSize: 1,
},
methods: {
changeText(button) {
if (button === "noButton") {
this.currentHeaderTextIndex =
(this.currentHeaderTextIndex + 1) % this.headerText.length;
this.currentConfirmationIndex =
(this.currentConfirmationIndex + 1) %
this.confirmationMessages.length;
this.yesButtonSize += 5;
}
},
yesButton() {
window.location.href = "yes.html";
},
},
computed: {
currentHeaderText() {
return this.headerText[this.currentHeaderTextIndex];
},
currentConfirmationText() {
return this.confirmationMessages[this.currentConfirmationIndex];
},
},
});
</script>
</body>
</html>