-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsuresh-poster-eps-admk.html
More file actions
637 lines (564 loc) · 18.8 KB
/
Copy pathsuresh-poster-eps-admk.html
File metadata and controls
637 lines (564 loc) · 18.8 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
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
<!DOCTYPE html>
<html lang="ta">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Suresh G - EPS ADMK Poster</title>
<style>
/* ===== Reset & Base ===== */
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #1a1a2e;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 20px;
}
/* ===== Poster Container ===== */
.poster {
width: 800px;
max-width: 100%;
background: linear-gradient(135deg, #000000 0%, #1a0a2e 30%, #0d0d3b 60%, #000000 100%);
border: 6px solid #d4af37;
border-radius: 16px;
overflow: hidden;
position: relative;
box-shadow: 0 0 40px rgba(212, 175, 55, 0.3), 0 20px 60px rgba(0,0,0,0.5);
}
/* ===== Decorative Top Banner ===== */
.top-banner {
background: linear-gradient(90deg, #d4af37, #f5d76e, #d4af37);
padding: 8px 20px;
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
}
.top-banner .party-symbol {
font-size: 28px;
font-weight: 900;
color: #000;
text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
}
.top-banner .party-name-banner {
font-size: 16px;
font-weight: 800;
color: #1a0a2e;
letter-spacing: 2px;
text-transform: uppercase;
}
/* ===== Party Header ===== */
.party-header {
background: linear-gradient(180deg, rgba(212,175,55,0.15) 0%, transparent 100%);
text-align: center;
padding: 25px 20px 15px;
}
.party-name-tamil {
font-size: 28px;
font-weight: 900;
color: #d4af37;
text-shadow: 0 0 20px rgba(212,175,55,0.5);
letter-spacing: 3px;
margin-bottom: 5px;
}
.party-name-english {
font-size: 14px;
font-weight: 600;
color: #c0a030;
letter-spacing: 4px;
text-transform: uppercase;
}
/* ===== Two Leaves Symbol ===== */
.symbol-section {
text-align: center;
padding: 10px;
}
.two-leaves {
display: inline-block;
position: relative;
width: 100px;
height: 80px;
}
.leaf {
position: absolute;
width: 40px;
height: 60px;
border-radius: 50% 0 50% 0;
top: 10px;
}
.leaf-left {
background: linear-gradient(135deg, #2d8a2d, #4caf50, #2d8a2d);
left: 12px;
transform: rotate(-20deg);
box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}
.leaf-right {
background: linear-gradient(225deg, #2d8a2d, #4caf50, #2d8a2d);
right: 12px;
transform: rotate(20deg) scaleX(-1);
box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}
.leaf-vein {
position: absolute;
width: 2px;
height: 45px;
background: rgba(255,255,255,0.3);
top: 8px;
left: 50%;
transform: translateX(-50%) rotate(0deg);
}
.stem {
position: absolute;
width: 4px;
height: 25px;
background: linear-gradient(to bottom, #4caf50, #2d6a2d);
bottom: 0;
left: 50%;
transform: translateX(-50%);
border-radius: 2px;
}
/* ===== Leader Section ===== */
.leader-section {
text-align: center;
padding: 20px 30px;
position: relative;
}
.leader-frame {
display: inline-block;
padding: 6px;
border: 3px solid #d4af37;
border-radius: 50%;
background: linear-gradient(135deg, #d4af37, #f5d76e, #d4af37);
box-shadow: 0 0 30px rgba(212,175,55,0.4);
margin-bottom: 15px;
}
.leader-photo-placeholder {
width: 160px;
height: 160px;
border-radius: 50%;
background: linear-gradient(135deg, #2a2a5a, #1a1a3a);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #d4af37;
font-size: 14px;
font-weight: 600;
border: 2px solid #3a3a6a;
}
.leader-photo-placeholder .initials {
font-size: 48px;
font-weight: 900;
color: #d4af37;
text-shadow: 0 0 10px rgba(212,175,55,0.5);
}
.leader-title {
font-size: 14px;
color: #f5d76e;
font-weight: 600;
letter-spacing: 2px;
text-transform: uppercase;
margin-bottom: 5px;
}
.leader-name {
font-size: 32px;
font-weight: 900;
color: #ffffff;
text-shadow: 0 0 20px rgba(255,255,255,0.3);
margin-bottom: 5px;
}
.leader-name-tamil {
font-size: 26px;
font-weight: 900;
color: #d4af37;
text-shadow: 0 0 15px rgba(212,175,55,0.4);
margin-bottom: 5px;
}
.leader-designation {
font-size: 13px;
color: #c0c0c0;
font-weight: 500;
letter-spacing: 1px;
}
/* ===== Greeting Message ===== */
.greeting-section {
background: linear-gradient(180deg, transparent, rgba(212,175,55,0.08), transparent);
padding: 25px 40px;
text-align: center;
}
.greeting-title-tamil {
font-size: 22px;
font-weight: 800;
color: #f5d76e;
margin-bottom: 10px;
text-shadow: 0 0 10px rgba(245,215,110,0.3);
}
.greeting-message {
font-size: 16px;
color: #e0e0e0;
line-height: 1.8;
max-width: 600px;
margin: 0 auto 15px;
}
.greeting-message-tamil {
font-size: 18px;
color: #e8d5a3;
line-height: 2;
max-width: 600px;
margin: 0 auto;
}
/* ===== Decorative Divider ===== */
.divider {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 15px 40px;
}
.divider-line {
flex: 1;
height: 2px;
background: linear-gradient(90deg, transparent, #d4af37, transparent);
}
.divider-diamond {
width: 12px;
height: 12px;
background: #d4af37;
transform: rotate(45deg);
box-shadow: 0 0 10px rgba(212,175,55,0.5);
}
/* ===== Poster Creator Section ===== */
.creator-section {
text-align: center;
padding: 20px 30px;
}
.creator-frame {
display: inline-block;
padding: 4px;
border: 2px solid #d4af37;
border-radius: 50%;
background: linear-gradient(135deg, #d4af37, #f5d76e, #d4af37);
margin-bottom: 10px;
}
.creator-photo-placeholder {
width: 100px;
height: 100px;
border-radius: 50%;
background: linear-gradient(135deg, #2a2a5a, #1a1a3a);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #d4af37;
border: 2px solid #3a3a6a;
}
.creator-photo-placeholder .initials {
font-size: 32px;
font-weight: 900;
color: #d4af37;
text-shadow: 0 0 10px rgba(212,175,55,0.5);
}
.creator-label {
font-size: 12px;
color: #c0a030;
letter-spacing: 3px;
text-transform: uppercase;
font-weight: 600;
margin-bottom: 5px;
}
.creator-name {
font-size: 24px;
font-weight: 900;
color: #ffffff;
text-shadow: 0 0 15px rgba(255,255,255,0.2);
margin-bottom: 3px;
}
.creator-name-tamil {
font-size: 20px;
font-weight: 800;
color: #d4af37;
margin-bottom: 5px;
}
.creator-designation {
font-size: 13px;
color: #b0b0b0;
font-weight: 500;
}
/* ===== Bottom Banner ===== */
.bottom-banner {
background: linear-gradient(90deg, #d4af37, #f5d76e, #d4af37);
padding: 10px 20px;
text-align: center;
}
.bottom-banner .slogan {
font-size: 16px;
font-weight: 900;
color: #1a0a2e;
letter-spacing: 2px;
}
.bottom-banner .slogan-english {
font-size: 11px;
font-weight: 700;
color: #3a2a4e;
letter-spacing: 3px;
text-transform: uppercase;
}
/* ===== Flag Colors Accent ===== */
.flag-accent {
display: flex;
height: 6px;
}
.flag-accent .red { flex: 1; background: #e53935; }
.flag-accent .black { flex: 1; background: #212121; }
/* ===== Corner Decorations ===== */
.poster::before,
.poster::after {
content: '';
position: absolute;
width: 60px;
height: 60px;
border: 3px solid rgba(212,175,55,0.3);
pointer-events: none;
}
.poster::before {
top: 15px;
left: 15px;
border-right: none;
border-bottom: none;
border-radius: 8px 0 0 0;
}
.poster::after {
top: 15px;
right: 15px;
border-left: none;
border-bottom: none;
border-radius: 0 8px 0 0;
}
/* ===== Sparkle / Decorative Dots ===== */
.sparkle-container {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
pointer-events: none;
overflow: hidden;
}
.sparkle {
position: absolute;
width: 4px;
height: 4px;
background: #d4af37;
border-radius: 50%;
opacity: 0.4;
animation: twinkle 3s infinite alternate;
}
@keyframes twinkle {
0% { opacity: 0.2; transform: scale(0.8); }
100% { opacity: 0.7; transform: scale(1.2); }
}
/* ===== Print / Download Button ===== */
.controls {
margin-top: 25px;
display: flex;
gap: 15px;
}
.btn {
padding: 12px 30px;
font-size: 15px;
font-weight: 700;
border: 2px solid #d4af37;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
letter-spacing: 1px;
}
.btn-print {
background: linear-gradient(135deg, #d4af37, #f5d76e);
color: #1a0a2e;
}
.btn-print:hover {
transform: translateY(-2px);
box-shadow: 0 5px 20px rgba(212,175,55,0.4);
}
.btn-download {
background: transparent;
color: #d4af37;
}
.btn-download:hover {
background: rgba(212,175,55,0.1);
transform: translateY(-2px);
}
/* ===== Responsive ===== */
@media (max-width: 600px) {
.poster { border-width: 4px; }
.party-name-tamil { font-size: 20px; }
.leader-name { font-size: 24px; }
.leader-name-tamil { font-size: 20px; }
.greeting-section { padding: 20px 20px; }
.greeting-title-tamil { font-size: 18px; }
.greeting-message-tamil { font-size: 16px; }
.creator-name { font-size: 20px; }
}
/* ===== Print Styles ===== */
@media print {
body { background: white; padding: 0; }
.controls { display: none; }
.poster {
box-shadow: none;
border-radius: 0;
width: 100%;
max-width: 100%;
}
}
</style>
</head>
<body>
<div class="poster" id="poster">
<!-- Sparkle Decorations -->
<div class="sparkle-container" id="sparkles"></div>
<!-- Flag Colors Accent Top -->
<div class="flag-accent">
<div class="red"></div>
<div class="black"></div>
</div>
<!-- Top Gold Banner -->
<div class="top-banner">
<span class="party-symbol">🌿</span>
<span class="party-name-banner">AIADMK</span>
<span class="party-symbol">🌿</span>
</div>
<!-- Party Header -->
<div class="party-header">
<div class="party-name-tamil">அ.இ.அ.தி.மு.க</div>
<div class="party-name-english">All India Anna Dravida Munnetra Kazhagam</div>
</div>
<!-- Two Leaves Symbol -->
<div class="symbol-section">
<div class="two-leaves">
<div class="leaf leaf-left">
<div class="leaf-vein"></div>
</div>
<div class="leaf leaf-right">
<div class="leaf-vein"></div>
</div>
<div class="stem"></div>
</div>
</div>
<!-- Leader Section -->
<div class="leader-section">
<div class="leader-title">Our Beloved Leader</div>
<div class="leader-frame">
<div class="leader-photo-placeholder">
<span class="initials">EPS</span>
</div>
</div>
<div class="leader-name-tamil">எடப்பாடி கே. பழனிசாமி</div>
<div class="leader-name">Edappadi K. Palaniswami</div>
<div class="leader-designation">General Secretary, AIADMK</div>
</div>
<!-- Divider -->
<div class="divider">
<div class="divider-line"></div>
<div class="divider-diamond"></div>
<div class="divider-line"></div>
</div>
<!-- Greeting Message -->
<div class="greeting-section">
<div class="greeting-title-tamil">வாழ்த்துச் செய்தி</div>
<div class="greeting-message-tamil">
எங்கள் அன்பிற்குரிய தலைவர்<br>
<strong>எடப்பாடி கே. பழனிசாமி</strong> அவர்களுக்கு<br>
மனமார்ந்த வாழ்த்துக்கள்!<br><br>
தங்களின் தலைமையில்<br>
அ.இ.அ.தி.மு.க மேலும் வலிமை பெற்று<br>
தமிழகத்தின் வளர்ச்சிக்காக பாடுபட<br>
இறைவனை வேண்டுகிறோம்!<br><br>
<em>இரட்டை இலை வெல்லும்!</em>
</div>
</div>
<!-- Divider -->
<div class="divider">
<div class="divider-line"></div>
<div class="divider-diamond"></div>
<div class="divider-line"></div>
</div>
<!-- Creator / Suresh G Section -->
<div class="creator-section">
<div class="creator-label">With Regards</div>
<div class="creator-frame">
<div class="creator-photo-placeholder">
<span class="initials">SG</span>
</div>
</div>
<div class="creator-name-tamil">சுரேஷ் ஜி</div>
<div class="creator-name">Suresh G</div>
<div class="creator-designation">Loyal Party Worker | AIADMK</div>
</div>
<!-- Bottom Gold Banner -->
<div class="bottom-banner">
<div class="slogan">இரட்டை இலை வெல்லும்!</div>
<div class="slogan-english">Two Leaves Shall Triumph</div>
</div>
<!-- Flag Colors Accent Bottom -->
<div class="flag-accent">
<div class="black"></div>
<div class="red"></div>
</div>
</div>
<!-- Controls -->
<div class="controls">
<button class="btn btn-print" onclick="window.print()">Print Poster</button>
<button class="btn btn-download" onclick="downloadPoster()">Download as Image</button>
</div>
<script>
// Generate sparkle decorations
(function generateSparkles() {
const container = document.getElementById('sparkles');
const count = 30;
for (let i = 0; i < count; i++) {
const sparkle = document.createElement('div');
sparkle.className = 'sparkle';
sparkle.style.left = Math.random() * 100 + '%';
sparkle.style.top = Math.random() * 100 + '%';
sparkle.style.animationDelay = (Math.random() * 3) + 's';
sparkle.style.animationDuration = (2 + Math.random() * 3) + 's';
container.appendChild(sparkle);
}
})();
// Download poster as image using canvas
function downloadPoster() {
const poster = document.getElementById('poster');
// Use html2canvas if available, otherwise fallback to print
if (typeof html2canvas !== 'undefined') {
html2canvas(poster, { scale: 2, useCORS: true }).then(function(canvas) {
const link = document.createElement('a');
link.download = 'Suresh_G_EPS_ADMK_Poster.png';
link.href = canvas.toDataURL('image/png');
link.click();
});
} else {
// Dynamically load html2canvas
const script = document.createElement('script');
script.src = 'https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js';
script.onload = function() {
html2canvas(poster, { scale: 2, useCORS: true }).then(function(canvas) {
const link = document.createElement('a');
link.download = 'Suresh_G_EPS_ADMK_Poster.png';
link.href = canvas.toDataURL('image/png');
link.click();
});
};
document.head.appendChild(script);
}
}
</script>
</body>
</html>