npv2k1 commited on
Commit
ea00b01
·
verified ·
1 Parent(s): 5eafc1e

Tạo thêm vùng chứa mã qr mừng cưới

Browse files
Files changed (3) hide show
  1. components/navbar.js +2 -1
  2. index.html +16 -1
  3. style.css +4 -0
components/navbar.js CHANGED
@@ -111,8 +111,9 @@ class CustomNavbar extends HTMLElement {
111
  <a href="#story" class="nav-link">Our Story</a>
112
  <a href="#details" class="nav-link">Details</a>
113
  <a href="#gallery" class="nav-link">Gallery</a>
 
114
  <a href="#rsvp" class="nav-link">RSVP</a>
115
- </div>
116
  </div>
117
  </nav>
118
  `;
 
111
  <a href="#story" class="nav-link">Our Story</a>
112
  <a href="#details" class="nav-link">Details</a>
113
  <a href="#gallery" class="nav-link">Gallery</a>
114
+ <a href="#gift" class="nav-link">Gift</a>
115
  <a href="#rsvp" class="nav-link">RSVP</a>
116
+ </div>
117
  </div>
118
  </nav>
119
  `;
index.html CHANGED
@@ -120,10 +120,25 @@
120
  </div>
121
  </div>
122
  </section>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
 
124
  <!-- RSVP -->
125
  <section id="rsvp" class="py-20 bg-gray-50">
126
- <div class="max-w-2xl mx-auto px-4">
127
  <div class="text-center mb-12">
128
  <h2 class="text-3xl md:text-4xl font-serif mb-4">RSVP</h2>
129
  <div class="w-24 h-1 bg-gray-300 mx-auto"></div>
 
120
  </div>
121
  </div>
122
  </section>
123
+ <!-- Gift QR -->
124
+ <section id="gift" class="py-20">
125
+ <div class="max-w-2xl mx-auto px-4 text-center">
126
+ <div class="text-center mb-12">
127
+ <h2 class="text-3xl md:text-4xl font-serif mb-4">Wedding Gift</h2>
128
+ <div class="w-24 h-1 bg-gray-300 mx-auto"></div>
129
+ <p class="text-gray-600 mt-4">Scan QR code to send your gift</p>
130
+ </div>
131
+ <div class="bg-white p-8 rounded-lg shadow-md inline-block">
132
+ <img src="https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=https://paypal.me/example"
133
+ alt="Wedding Gift QR Code" class="mx-auto">
134
+ <p class="mt-4 text-gray-600">Or use this link: <a href="https://paypal.me/example" class="text-blue-500">paypal.me/example</a></p>
135
+ </div>
136
+ </div>
137
+ </section>
138
 
139
  <!-- RSVP -->
140
  <section id="rsvp" class="py-20 bg-gray-50">
141
+ <div class="max-w-2xl mx-auto px-4">
142
  <div class="text-center mb-12">
143
  <h2 class="text-3xl md:text-4xl font-serif mb-4">RSVP</h2>
144
  <div class="w-24 h-1 bg-gray-300 mx-auto"></div>
style.css CHANGED
@@ -54,6 +54,10 @@ section.show {
54
  .gallery-item:hover::after {
55
  opacity: 1;
56
  }
 
 
 
 
57
 
58
  /* Form input focus effect */
59
  input:focus, textarea:focus, select:focus {
 
54
  .gallery-item:hover::after {
55
  opacity: 1;
56
  }
57
+ /* QR Code section */
58
+ #gift {
59
+ background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
60
+ }
61
 
62
  /* Form input focus effect */
63
  input:focus, textarea:focus, select:focus {