style: refactor PDF viewer structure for improved readability and maintainability
This commit is contained in:
@@ -7,19 +7,27 @@ sitemapChangefreq: "monthly"
|
|||||||
---
|
---
|
||||||
|
|
||||||
<div style="max-width: 900px; margin: auto;">
|
<div style="max-width: 900px; margin: auto;">
|
||||||
<div style="position: relative; padding-top: 129.41%;">
|
<div style="position: relative; padding-top: 129.41%;">
|
||||||
<object
|
<object
|
||||||
id="pdf-viewer"
|
id="pdf-viewer"
|
||||||
data="/resume/jesus.pdf#view=FitH&toolbar=0&navpanes=0"
|
data="/resume/jesus.pdf#view=FitH&toolbar=0&navpanes=0"
|
||||||
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;">
|
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;">
|
||||||
<div class="flex flex-col items-center justify-center h-full text-center p-8 bg-gray-800 rounded-lg">
|
<iframe
|
||||||
<i class="fas fa-file-pdf fa-3x text-red-500 mb-4"></i>
|
src="document.pdf"
|
||||||
<p class="text-xl font-semibold text-white mb-2">Oops! Your browser doesn't support embedded PDFs.</p>
|
width="100%"
|
||||||
<p class="text-gray-400 mb-6">You can download the resume to view it directly.</p>
|
height="100%"
|
||||||
<a href="/resume/jesus.pdf" download="Jesus_E_Otero_Lagunes_Resume.pdf" class="btn">
|
style="border: none"
|
||||||
<i class="fas fa-download mr-2"></i>Download
|
title="Fallback PDF Viewer"
|
||||||
</a>
|
>
|
||||||
</div>
|
<div class="flex flex-col items-center justify-center h-full text-center p-8 bg-gray-800 rounded-lg">
|
||||||
</object>
|
<i class="fas fa-file-pdf fa-3x text-red-500 mb-4"></i>
|
||||||
</div>
|
<p class="text-xl font-semibold text-white mb-2">Oops! Your browser doesn't support embedded PDFs.</p>
|
||||||
|
<p class="text-gray-400 mb-6">You can download the resume to view it directly.</p>
|
||||||
|
<a href="/resume/jesus.pdf" download="Jesus_E_Otero_Lagunes_Resume.pdf" class="btn">
|
||||||
|
<i class="fas fa-download mr-2"></i>Download
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</iframe>
|
||||||
|
</object>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
Reference in New Issue
Block a user