feat: increase verification QR code sizes and adjust PDF image scaling logic

This commit is contained in:
Ümit Tunç
2026-06-08 18:27:34 +03:00
parent 612a24042b
commit af82f47ea0
@@ -86,8 +86,8 @@
<!-- Footer Section (Signatures & Verification QR) -->
<div class="grid grid-cols-3 items-end pt-6 border-t border-slate-100/50">
<!-- Left: QR Code -->
<div class="flex items-center gap-3">
<img src="https://api.qrserver.com/v1/create-qr-code/?size=100x100&data={{ urlencode(route('internship.verify', $application->certificate_code)) }}" alt="QR Code" class="w-16 h-16 border border-slate-200 p-1 rounded-xl bg-white shadow-sm">
<div class="flex items-center gap-4">
<img src="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data={{ urlencode(route('internship.verify', $application->certificate_code)) }}" alt="QR Code" class="w-28 h-28 border border-slate-200 p-1 rounded-xl bg-white shadow-sm">
<div class="text-left hidden sm:block">
<span class="text-[8px] font-bold text-slate-400 uppercase tracking-wider block">Dijital Doğrulama</span>
<span class="text-[9px] text-slate-500 block">Karekod okutularak belgenin güncelliği e-Devlet stilinde doğrulanabilir.</span>
@@ -163,8 +163,8 @@
<!-- Footer with verification details -->
<div class="w-full flex justify-between items-center pt-4 border-t border-slate-100 gap-6 mt-auto">
<div class="flex items-center gap-3">
<img src="https://api.qrserver.com/v1/create-qr-code/?size=100x100&data={{ urlencode(route('internship.verify', $application->certificate_code)) }}" alt="QR Code" class="w-10 h-10 border border-slate-200 p-0.5 rounded-lg bg-white">
<div class="flex items-center gap-4">
<img src="https://api.qrserver.com/v1/create-qr-code/?size=120x120&data={{ urlencode(route('internship.verify', $application->certificate_code)) }}" alt="QR Code" class="w-20 h-20 border border-slate-200 p-0.5 rounded-lg bg-white">
<div>
<span class="text-[8px] font-bold text-slate-400 uppercase tracking-wider block">Güvenli Doğrulama Kodu</span>
<span class="text-xs font-mono font-bold text-slate-800 block">{{ $application->certificate_code }}</span>
@@ -391,8 +391,8 @@
// Add portrait page to PDF
pdf.addPage('a4', 'portrait');
// Avoid vertical squishing by printing at its natural aspect ratio up to page height
pdf.addImage(transImgData, 'JPEG', 0, 0, transWidth, Math.min(transHeight, 297));
// Avoid vertical squishing by printing at its natural aspect ratio
pdf.addImage(transImgData, 'JPEG', 0, 0, transWidth, transHeight);
// Trigger Save File
pdf.save('{{ str()->slug($application->name) }}-staj-belgesi.pdf');