Fazbeeer commited on
Commit
37ae453
·
verified ·
1 Parent(s): 465456a

You know the 7-day free trial we currently have i want you to make it so the secound someone click the link to our domain that is like a popup that they can exit out.

Browse files
Files changed (4) hide show
  1. components/trial-popup.js +95 -0
  2. index.html +7 -2
  3. login.html +2 -2
  4. results.html +1 -1
components/trial-popup.js ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class TrialPopup extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .popup-overlay {
7
+ position: fixed;
8
+ top: 0;
9
+ left: 0;
10
+ right: 0;
11
+ bottom: 0;
12
+ background-color: rgba(0, 0, 0, 0.8);
13
+ display: flex;
14
+ justify-content: center;
15
+ align-items: center;
16
+ z-index: 1000;
17
+ }
18
+ .popup-content {
19
+ background: linear-gradient(135deg, #000000, #1a1a1a);
20
+ border: 2px solid #b8860b;
21
+ border-radius: 12px;
22
+ padding: 2rem;
23
+ max-width: 500px;
24
+ width: 90%;
25
+ position: relative;
26
+ box-shadow: 0 0 20px rgba(184, 134, 11, 0.5);
27
+ }
28
+ .close-btn {
29
+ position: absolute;
30
+ top: 1rem;
31
+ right: 1rem;
32
+ background: none;
33
+ border: none;
34
+ color: #b8860b;
35
+ font-size: 1.5rem;
36
+ cursor: pointer;
37
+ }
38
+ .popup-title {
39
+ font-family: 'Bebas Neue', sans-serif;
40
+ font-size: 2rem;
41
+ color: #b8860b;
42
+ margin-bottom: 1rem;
43
+ text-align: center;
44
+ }
45
+ .popup-text {
46
+ color: #ffffff;
47
+ margin-bottom: 1.5rem;
48
+ line-height: 1.5;
49
+ }
50
+ .popup-btn {
51
+ background: linear-gradient(to right, #b8860b, #9b0000);
52
+ color: white;
53
+ border: none;
54
+ padding: 0.75rem 1.5rem;
55
+ border-radius: 6px;
56
+ font-weight: bold;
57
+ cursor: pointer;
58
+ width: 100%;
59
+ text-transform: uppercase;
60
+ transition: transform 0.3s ease;
61
+ }
62
+ .popup-btn:hover {
63
+ transform: translateY(-3px);
64
+ }
65
+ </style>
66
+ <div class="popup-overlay">
67
+ <div class="popup-content">
68
+ <button class="close-btn">
69
+ <i data-feather="x"></i>
70
+ </button>
71
+ <h2 class="popup-title">7-Day Free Trial</h2>
72
+ <p class="popup-text">
73
+ Ready to amplify your performance? Try our premium VR/AR mental training
74
+ platform free for 7 days. No credit card required!
75
+ </p>
76
+ <button class="popup-btn">Start Free Trial</button>
77
+ </div>
78
+ </div>
79
+ `;
80
+
81
+ this.shadowRoot.querySelector('.close-btn').addEventListener('click', () => {
82
+ this.remove();
83
+ localStorage.setItem('trialPopupClosed', 'true');
84
+ });
85
+
86
+ this.shadowRoot.querySelector('.popup-btn').addEventListener('click', () => {
87
+ window.location.href = 'index.html#pricing';
88
+ });
89
+
90
+ // Initialize feather icons
91
+ feather.replace();
92
+ }
93
+ }
94
+
95
+ customElements.define('trial-popup', TrialPopup);
index.html CHANGED
@@ -516,8 +516,13 @@ Get Started
516
  <p class="text-xl mb-12 max-w-2xl mx-auto text-gray-300">
517
  Join thousands of athletes, performers, and professionals who are mastering their minds with our technology.
518
  </p>
519
- <a href="https://portal.veinternational.org/buybuttons/us0110243/btn/free-trial-2/" class="bg-gradient-to-r from-green-600 to-green-800 hover:from-green-500 hover:to-green-700 text-white font-bold px-10 py-5 rounded-lg text-xl transition transform hover:scale-105 shadow-lg mb-4 inline-block">
520
- Start 7-Day Free Trial
 
 
 
 
 
521
  </button>
522
  <p class="text-sm text-gray-400">No credit card required • Cancel anytime</p>
523
  </div>
 
516
  <p class="text-xl mb-12 max-w-2xl mx-auto text-gray-300">
517
  Join thousands of athletes, performers, and professionals who are mastering their minds with our technology.
518
  </p>
519
+ <button onclick="addToCart({
520
+ id: 'free-trial',
521
+ name: '7-Day Free Trial',
522
+ price: 0,
523
+ description: 'Free trial with limited features'
524
+ })" class="bg-gradient-to-r from-green-600 to-green-800 hover:from-green-500 hover:to-green-700 text-white font-bold px-10 py-5 rounded-lg text-xl transition transform hover:scale-105 shadow-lg mb-4">
525
+ Start 7-Day Free Trial
526
  </button>
527
  <p class="text-sm text-gray-400">No credit card required • Cancel anytime</p>
528
  </div>
login.html CHANGED
@@ -91,8 +91,8 @@ Sign In
91
  <div class="mt-6 text-center">
92
  <div class="mb-4">
93
  <p class="text-gray-400">Don't have an account?</p>
94
- <a href="https://portal.veinternational.org/buybuttons/us0110243/btn/free-trial-2/" class="text-yellow-500 hover:text-yellow-400 font-medium">Start your 7-day free trial</a>
95
- </div>
96
  <p class="text-sm text-gray-400">No credit card required</p>
97
  </div>
98
  <div class="mt-8 pt-6 border-t border-gray-800">
 
91
  <div class="mt-6 text-center">
92
  <div class="mb-4">
93
  <p class="text-gray-400">Don't have an account?</p>
94
+ <a href="#" class="text-yellow-500 hover:text-yellow-400 font-medium">Start your 7-day free trial</a>
95
+ </div>
96
  <p class="text-sm text-gray-400">No credit card required</p>
97
  </div>
98
  <div class="mt-8 pt-6 border-t border-gray-800">
results.html CHANGED
@@ -224,7 +224,7 @@
224
  <p class="text-xl mb-12 max-w-2xl mx-auto text-gray-300">
225
  Join our next competition and test your mental performance against others
226
  </p>
227
- <a href="https://portal.veinternational.org/buybuttons/us0110243/btn/free-trial-2/" class="bg-[#9b0000] hover:bg-[#7a0000] text-white font-bold px-10 py-5 rounded-lg text-xl transition transform hover:scale-105 shadow-lg inline-block">
228
  Join Next Event
229
  </button>
230
  </div>
 
224
  <p class="text-xl mb-12 max-w-2xl mx-auto text-gray-300">
225
  Join our next competition and test your mental performance against others
226
  </p>
227
+ <button class="bg-[#9b0000] hover:bg-[#7a0000] text-white font-bold px-10 py-5 rounded-lg text-xl transition transform hover:scale-105 shadow-lg">
228
  Join Next Event
229
  </button>
230
  </div>