-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.html
More file actions
524 lines (454 loc) · 19.5 KB
/
project.html
File metadata and controls
524 lines (454 loc) · 19.5 KB
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>FILPRIMO - Custom Shirt Store</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Playfair+Display:wght@500;600&display=swap" rel="stylesheet">
<style>
:root{
--header-footer:#393634;
--nav:#656565;
--bg:#f8f8f8;
--accent:#717171;
}
*{box-sizing:border-box}
body{
margin:0;
font-family:'Poppins',sans-serif;
background:var(--bg);
color:#333;
-webkit-font-smoothing:antialiased;
}
header{
background:var(--header-footer);
color:#fff;
text-align:center;
padding:24px 16px;
font-family:'Playfair Display',serif;
letter-spacing:1px;
}
nav{
background:var(--nav);
display:flex;
justify-content:center;
gap:28px;
padding:12px 10px;
}
nav a{
color:#fff;
text-decoration:none;
font-weight:500;
cursor:pointer;
transition:color .25s, transform .2s;
}
nav a:hover{ color:#bdb9b6; transform:scale(1.03) }
footer{
background:var(--header-footer);
color:white;
text-align:center;
padding:14px 10px;
margin-top:24px;
font-family:'Playfair Display',serif;
}
main{min-height:calc(100vh - 178px);}
section{
padding:40px 18px;
max-width:1200px;
margin:0 auto;
opacity:0;
transform: translateY(20px);
position:relative;
transition:opacity .6s ease, transform .6s ease;
display:none;
}
section.active{
display:block;
opacity:1;
transform: translateY(0);
}
.hero{
text-align:center;
padding:64px 18px;
background:linear-gradient(90deg,#e9e6e4,#f8f8f8);
border-radius:10px;
}
.hero h1{
margin:0 0 8px 0;
font-family:'Playfair Display',serif;
color:var(--header-footer);
font-size:2.4rem;
}
.tagline { color:#444; font-size:1.05rem; margin-bottom:14px; display:inline-block; white-space:nowrap; overflow:hidden; border-right:3px solid var(--header-footer); }
.about{
margin-top:32px;
background:#fff;
padding:28px;
border-radius:10px;
box-shadow:0 6px 18px rgba(0,0,0,0.06);
text-align:left;
}
.home-order {
display:flex;
gap:20px;
margin-top:26px;
flex-wrap:wrap;
justify-content:center;
}
.home-feature {
background:#fff;
padding:18px;
border-radius:10px;
max-width:360px;
box-shadow:0 6px 18px rgba(0,0,0,0.06);
text-align:center;
}
.home-feature img{ width:100%; border-radius:8px; max-width:300px; display:block; margin:0 auto 10px; }
.home-form {
background:#fff;
padding:18px;
border-radius:10px;
width:360px;
box-shadow:0 6px 18px rgba(0,0,0,0.06);
}
label{display:block;font-weight:600;margin-top:8px}
input,textarea,select{
width:100%; padding:8px; margin-top:6px; border-radius:6px; border:1px solid #ccc; font-family:inherit;
}
button{
background:var(--accent); color:white; border:0; padding:10px 14px; border-radius:8px; cursor:pointer; margin-top:12px;
}
button:hover{ background:#5f5f5f; transform:translateY(-1px); }
.prod-grid{
display:flex; flex-wrap:wrap; gap:18px; justify-content:center;
}
.card{
background:#fff; width:220px; border-radius:10px; padding:12px; text-align:center; box-shadow:0 10px 24px rgba(0,0,0,0.06); cursor:pointer;
transition:transform .35s, box-shadow .35s;
}
.card:hover{ transform:scale(1.05); box-shadow:0 14px 34px rgba(0,0,0,0.12) }
.card img{ width:100%; height:200px; object-fit:cover; border-radius:8px; }
.order-view{
display:none; width:100%; height:calc(100vh - 220px); gap:0; overflow:hidden;
}
.order-view.active{ display:flex; gap:0; }
.preview{
flex:1; background:#f1ebe9; display:flex; align-items:center; justify-content:center; border-right:3px solid #e0dcd9;
padding:32px;
}
.preview .box{
text-align:center;
}
.preview img{ max-width:70%; border-radius:12px; box-shadow:0 12px 30px rgba(0,0,0,0.12) }
.preview h3{ margin:18px 0 6px 0; color:var(--header-footer); font-family:'Playfair Display'; }
.form-panel{
width:480px; max-width:48%; background:#fff; padding:28px; display:flex; flex-direction:column; justify-content:center;
}
.gallery-grid{ display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }
.gallery-grid img{ width:260px; height:260px; object-fit:cover; border-radius:10px; cursor:pointer; transition:transform .35s, box-shadow .35s; }
.gallery-grid img:hover{ transform:scale(1.06); box-shadow:0 16px 34px rgba(0,0,0,0.18) }
.fs-modal{
display:none; position:fixed; inset:0; background:rgba(0,0,0,0.85); align-items:center; justify-content:center; z-index:9999;
}
.fs-modal img{ max-width:85%; max-height:85%; border-radius:8px; }
.contact-grid{ max-width:900px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; }
.contact-card{ background:#fff; padding:18px; border-radius:10px; box-shadow:0 10px 24px rgba(0,0,0,0.06) }
.modal{
display:none; position:fixed; inset:0; background:rgba(0,0,0,0.6); align-items:center; justify-content:center; z-index:99999;
}
.modal .box{ background:#fff; width:92%; max-width:540px; padding:20px; border-radius:10px; box-shadow:0 14px 34px rgba(0,0,0,0.2); position:relative; }
.modal .close{ position:absolute; right:12px; top:8px; font-size:20px; cursor:pointer; }
@media (max-width:1000px){
.form-panel{ width:420px; max-width:44% }
}
@media (max-width:860px){
.order-view.active{ flex-direction:column; height:auto; }
.form-panel{ width:100%; max-width:100%; padding:18px; }
.preview img{ max-width:80% }
}
@media (max-width:640px){
nav{ gap:14px; padding:10px 6px }
.contact-grid{ grid-template-columns:1fr }
.home-order{ flex-direction:column; align-items:center }
.form-panel{ padding:14px }
.card{ width:180px }
.gallery-grid img{ width:46vw; height:46vw }
}
</style>
</head>
<body>
<header>FILPRIMO - Custom Shirt Store</header>
<nav>
<a data-target="home">Home</a>
<a data-target="products">Products</a>
<a data-target="gallery">Gallery</a>
<a data-target="contact">Contact</a>
</nav>
<main>
<!-- HOME -->
<section id="home" class="active">
<div class="hero">
<h1>Where Style Meets Comfort</h1>
<div id="tagline" class="tagline tagline-text"></div>
<p style="max-width:780px;margin:12px auto 0;color:#555">FILPRIMO offers premium custom-designed shirts crafted with passion and precision. Elevate your everyday wear with designs made for you.</p>
</div>
<div class="about">
<h2 style="font-family:'Playfair Display',serif;color:var(--header-footer);margin-top:0">How FILPRIMO Started</h2>
<p>FILPRIMO began as a small passion project in 2020, founded by friends who shared a love for fashion and creativity. A weekend hobby designing shirts for local events grew into a brand committed to craftsmanship, comfort, and designs that tell a story. Today, we bring Filipino pride to every stitch.</p>
</div>
<div class="home-order" style="margin-top:22px">
<div class="home-feature">
<h3 align="center">Order our best Seller!!!<Br></h3>
<img src="FeaturedShirt.jpg" alt="Featured shirt">
<p style="margin:10px 0 0"><strong>BlackShirt + FilPrimo Towel</strong><br>Comfortable and stylish for everyday wear.</p>
</div>
<div class="home-form">
<h3 style="margin-top:0">Quick Order</h3>
<form id="quickForm" onsubmit="event.preventDefault(); submitQuickOrder()">
<label>Name</label><input id="q_name" required>
<label>Email</label><input id="q_email" type="email" required>
<label>Quantity</label><input id="q_quantity" type="number" min="1" value="1" required>
<label>Address</label><textarea id="q_address" rows="3" required></textarea>
<button type="submit">Place Quick Order</button>
</form>
</div>
</div>
</section>
<section id="products">
<h2 style="text-align:center;margin-top:0;font-family:'Playfair Display',serif;color:var(--header-footer)">Our Products</h2>
<!-- product grid -->
<div id="prodGrid" class="prod-grid" aria-live="polite">
<div class="card" onclick="openProductOrder('OG FilPrimo','Design1.jpg')" tabindex="0">
<img src="Design1.jpg" alt="OG FilPrimo">
<h4 style="margin:10px 0 4px">OG FilPrimo</h4>
<p style="margin:0; font-weight:600">₱499</p>
</div>
<div class="card" onclick="openProductOrder('White Blessed Shirt','Design2.jpg')" tabindex="0">
<img src="Design2.jpg" alt="White Blessed Shirt">
<h4 style="margin:10px 0 4px">White Blessed Shirt</h4>
<p style="margin:0; font-weight:600">₱899</p>
</div>
<div class="card" onclick="openProductOrder('Red Nazarene Shirt','Design3.jpg')" tabindex="0">
<img src="Design3.jpg" alt="Red Nazarene Shirt">
<h4 style="margin:10px 0 4px">Red Nazarene Shirt</h4>
<p style="margin:0; font-weight:600">₱599</p>
</div>
</div>
<!-- split order view (hidden until product selected) -->
<div id="orderView" class="order-view" aria-hidden="true">
<div class="preview" id="previewPane">
<div class="box">
<img id="previewImage" src="" alt="Selected design preview">
<h3 id="previewTitle"></h3>
<p id="previewPrice" style="font-weight:600"></p>
</div>
</div>
<div class="form-panel" role="region" aria-label="Order form">
<h3 style="margin-top:0">Place Your Order</h3>
<form id="productOrderForm" onsubmit="event.preventDefault(); submitProductOrder()">
<label>Full name</label><input id="p_name" required>
<label>Email</label><input id="p_email" type="email" required>
<label>Quantity</label><input id="p_quantity" type="number" min="1" value="1" required>
<label>Address</label><textarea id="p_address" rows="3" required></textarea>
<p style="margin:12px 0"><strong>Design:</strong> <span id="p_design"></span></p>
<div style="display:flex;gap:8px">
<button type="submit">Submit Order</button>
<button type="button" onclick="closeProductOrder()" style="background:#ccc;color:#222">Cancel</button>
</div>
</form>
</div>
</div>
</section>
<!-- GALLERY -->
<section id="gallery">
<h2 style="text-align:center;margin-top:0;font-family:'Playfair Display',serif;color:var(--header-footer)">Gallery</h2>
<div class="gallery-grid" id="galleryGrid">
<img src="gal1.jpg" alt="Gallery image 1" onclick="openFS(this.src)">
<img src="Gal2.jpg" alt="Gallery image 2" onclick="openFS(this.src)">
<img src="Gal3.jpg" alt="Gallery image 3" onclick="openFS(this.src)">
</div>
</section>
<!-- Contact -->
<section id="contact">
<h2 style="text-align:center;margin-top:0;font-family:'Playfair Display',serif;color:var(--header-footer)">Contact Us</h2>
<div class="contact-grid">
<div class="contact-card">
<h3 style="margin-top:0">Get in touch</h3>
<p>Questions about custom orders, bulk pricing, or delivery? Send us a message.</p>
<p><strong>Email:</strong> orders@filprimo.ph</p>
<p><strong>Phone:</strong> +63 912 345 6789</p>
</div>
<div class="contact-card">
<h3 style="margin-top:0">Send a message</h3>
<form id="contactForm" onsubmit="event.preventDefault(); submitContact()">
<label>Name</label><input id="c_name" required>
<label>Email</label><input id="c_email" type="email" required>
<label>Message</label><textarea id="c_message" rows="4" required></textarea>
<button type="submit">Send Message</button>
</form>
</div>
</div>
</section>
</main>
<footer>© 2025 FILPRIMO. All rights reserved.</footer>
<!-- fullscreen gallery modal -->
<div id="fsModal" class="fs-modal" onclick="closeFS()"><img id="fsImg" src="" alt="Full"></div>
<!-- shared receipt modal -->
<div id="receiptModal" class="modal" role="dialog" aria-modal="true">
<div class="box" id="receiptBox">
<span class="close" onclick="closeReceipt()">✕</span>
<div id="receiptContent"></div>
</div>
</div>
<script>
const navLinks = document.querySelectorAll('nav a');
const sections = document.querySelectorAll('main section');
let currentSection = document.querySelector('section.active');
function showSection(id){
if(currentSection && currentSection.id === id) return;
const target = document.getElementById(id);
// fade out current
if(currentSection){
currentSection.classList.remove('active');
setTimeout(()=> {
// show target
sections.forEach(s=> s.style.display='none');
target.style.display='block';
requestAnimationFrame(()=> target.classList.add('active'));
currentSection = target;
window.scrollTo({top:0,behavior:'smooth'});
}, 220);
} else {
sections.forEach(s=> s.style.display='none');
target.style.display='block'; target.classList.add('active'); currentSection = target;
}
}
navLinks.forEach(a => {
a.addEventListener('click', () => showSection(a.getAttribute('data-target')));
});
sections.forEach(s=>{ if(!s.classList.contains('active')) s.style.display='none' });
const taglineText = "Custom Shirts, Crafted with Passion.";
const taglineEl = document.getElementById('tagline');
let ti=0;
function typeWriter(){
if(ti < taglineText.length){
taglineEl.textContent += taglineText.charAt(ti++);
setTimeout(typeWriter,70);
}
}
document.addEventListener('DOMContentLoaded', typeWriter);
function submitQuickOrder(){
const name = document.getElementById('q_name').value.trim();
const email = document.getElementById('q_email').value.trim();
const qty = Number(document.getElementById('q_quantity').value);
const addr = document.getElementById('q_address').value.trim();
if(!name||!email||!qty||!addr){ alert('Fill all fields'); return; }
const orderNo = Math.floor(100000 + Math.random()*900000);
const date = new Date().toLocaleString();
const total = 499 * qty; // featured price
showReceipt({
orderNumber:orderNo, date, name, email, address:addr, design:'Classic Black Tee', quantity:qty, total
});
document.getElementById('quickForm').reset();
}
const products = {
"Classic Black Tee":{price:499},
"Streetwear Gray Hoodie":{price:899},
"Minimalist White Polo":{price:599}
};
function openProductOrder(title, img){
// show split view
document.getElementById('prodGrid').style.display = 'none';
const ov = document.getElementById('orderView');
document.getElementById('previewImage').src = img;
document.getElementById('previewTitle').textContent = title;
document.getElementById('previewPrice').textContent = '₱' + (products[title]?.price || '') ;
document.getElementById('p_design').textContent = title;
ov.classList.add('active'); ov.setAttribute('aria-hidden','false');
// scroll to products section (if not visible)
showSection('products');
setTimeout(()=> ov.scrollIntoView({behavior:'smooth',block:'start'}),240);
}
function closeProductOrder(){
document.getElementById('orderView').classList.remove('active');
document.getElementById('orderView').setAttribute('aria-hidden','true');
// restore grid
setTimeout(()=> { document.getElementById('prodGrid').style.display = 'flex'; document.getElementById('prodGrid').scrollIntoView({behavior:'smooth'}); }, 260);
}
function submitProductOrder(){
const name = document.getElementById('p_name').value.trim();
const email = document.getElementById('p_email').value.trim();
const qty = Number(document.getElementById('p_quantity').value);
const addr = document.getElementById('p_address').value.trim();
const design = document.getElementById('p_design').textContent;
if(!name||!email||!qty||!addr||!design){ alert('Fill all fields'); return; }
const orderNo = Math.floor(100000 + Math.random()*900000);
const date = new Date().toLocaleString();
const total = (products[design]?.price || 0) * qty;
showReceipt({orderNumber:orderNo,date,name,email,address:addr,design,quantity:qty,total});
document.getElementById('productOrderForm').reset();
closeProductOrder();
}
function showReceipt(data){
const content = document.getElementById('receiptContent');
content.innerHTML = `
<h3 style="margin-top:0">🧾 Order Receipt</h3>
<div id="receiptDetails">
<p><strong>Order Number:</strong> #${data.orderNumber}</p>
<p><strong>Date & Time:</strong> ${data.date}</p>
<p><strong>Name:</strong> ${escapeHtml(data.name)}</p>
<p><strong>Email:</strong> ${escapeHtml(data.email)}</p>
<p><strong>Address:</strong> ${escapeHtml(data.address)}</p>
<p><strong>Design:</strong> ${escapeHtml(data.design)}</p>
<p><strong>Quantity:</strong> ${data.quantity}</p>
<p><strong>Total:</strong> ₱${Number(data.total).toLocaleString()}</p>
<p style="margin-top:12px;"><em>Thank you for your order! We'll contact you for confirmation.</em></p>
</div>
<div style="margin-top:18px;display:flex;gap:10px;justify-content:flex-end">
<button onclick="printReceipt()">🖨️ Print / Download</button>
<button onclick="closeReceipt()" style="background:#ccc;color:#222">Close</button>
</div>
`;
document.getElementById('receiptModal').style.display = 'flex';
}
function closeReceipt(){ document.getElementById('receiptModal').style.display = 'none' }
function printReceipt(){
const html = document.getElementById('receiptDetails').innerHTML;
const w = window.open('','_blank','width=800,height=700');
w.document.write(`<html><head><title>Receipt</title>
<style>body{font-family:Arial,Helvetica,sans-serif;padding:20px} .box{max-width:600px;margin:auto}</style>
</head><body><div class="box"><h2>FILPRIMO ORDER RECEIPT</h2>${html}</div></body></html>`);
w.document.close(); setTimeout(()=> w.print(),400);
}
function escapeHtml(str){
return String(str).replace(/[&<>"']/g, s=>({ '&':'&','<':'<','>':'>','"':'"', "'":''' }[s]));
}
function openFS(src){
const m = document.getElementById('fsModal');
const i = document.getElementById('fsImg');
i.src = src; m.style.display = 'flex';
}
function closeFS(){ document.getElementById('fsModal').style.display = 'none'; }
function submitContact(){
const n = document.getElementById('c_name').value.trim();
const e = document.getElementById('c_email').value.trim();
const m = document.getElementById('c_message').value.trim();
if(!n||!e||!m){ alert('Please fill all fields'); return; }
alert('Thanks '+n+' — we received your message and will reply to '+e);
document.getElementById('contactForm').reset();
}
document.addEventListener('keydown', (ev)=>{
if(ev.key === 'Escape'){
// close modals/FS/recept
closeFS(); closeReceipt(); if(document.getElementById('orderView').classList.contains('active')) closeProductOrder();
}
});
const io = new IntersectionObserver(entries=>{
entries.forEach(ent=>{
if(ent.isIntersecting){ ent.target.style.opacity=1; ent.target.style.transform='translateY(0)'; }
});
},{threshold:0.08});
document.querySelectorAll('main section').forEach(s=> io.observe(s));
</script>
</body>
</html>