Add stunning info button with glassmorphism modal
Features: - Info button fixed on bottom-left (matches back-to-top on bottom-right) - Modern glassmorphism modal with backdrop blur - Smooth animations: scale + bounce effect on open - Floating code icon animation - Gradient text for title - Tech stack showcase with hover effects (Go, HTMX, HTML5, CSS3) - Beautiful GitHub link button with gradient and hover effects - Multiple close methods: X button, click backdrop, Escape key - Fully responsive for mobile devices - No external libraries - pure CSS3 magic Design highlights: - Backdrop blur for depth - White glass-effect card with subtle gradient - Green accent color (#27ae60) throughout - Smooth cubic-bezier transitions - Rotating close button on hover - Tech items lift on hover with shadows - GitHub button with gradient that reverses on hover Showcases modern web development skills with cutting-edge CSS
This commit is contained in:
@@ -284,6 +284,60 @@
|
||||
<iconify-icon icon="mdi:arrow-up" width="24" height="24"></iconify-icon>
|
||||
</button>
|
||||
|
||||
<!-- Info Button (Bottom Left) -->
|
||||
<button id="info-button" class="info-button no-print" aria-label="{{if eq .Lang "es"}}Información{{else}}Information{{end}}" onclick="openInfoModal()">
|
||||
<iconify-icon icon="mdi:information-outline" width="24" height="24"></iconify-icon>
|
||||
</button>
|
||||
|
||||
<!-- Info Modal -->
|
||||
<div id="info-modal" class="info-modal no-print" onclick="closeInfoModalOnBackdrop(event)">
|
||||
<div class="info-modal-content" onclick="event.stopPropagation()">
|
||||
<button class="info-modal-close" onclick="closeInfoModal()" aria-label="Close">
|
||||
<iconify-icon icon="mdi:close" width="24" height="24"></iconify-icon>
|
||||
</button>
|
||||
|
||||
<div class="info-modal-header">
|
||||
<iconify-icon icon="mdi:code-braces" width="48" height="48" class="info-modal-icon"></iconify-icon>
|
||||
<h2>{{if eq .Lang "es"}}Acerca de este CV{{else}}About this CV{{end}}</h2>
|
||||
</div>
|
||||
|
||||
<div class="info-modal-body">
|
||||
<p class="info-modal-description">
|
||||
{{if eq .Lang "es"}}
|
||||
Este CV interactivo fue construido con <strong>Go + HTMX</strong>, demostrando arquitectura moderna de hipermedia sin frameworks pesados de JavaScript.
|
||||
{{else}}
|
||||
This interactive CV was built with <strong>Go + HTMX</strong>, showcasing modern hypermedia architecture without heavy JavaScript frameworks.
|
||||
{{end}}
|
||||
</p>
|
||||
|
||||
<div class="info-modal-tech">
|
||||
<div class="info-tech-item">
|
||||
<iconify-icon icon="mdi:language-go" width="32" height="32"></iconify-icon>
|
||||
<span>Go + Hono</span>
|
||||
</div>
|
||||
<div class="info-tech-item">
|
||||
<iconify-icon icon="mdi:lightning-bolt" width="32" height="32"></iconify-icon>
|
||||
<span>HTMX</span>
|
||||
</div>
|
||||
<div class="info-tech-item">
|
||||
<iconify-icon icon="mdi:language-html5" width="32" height="32"></iconify-icon>
|
||||
<span>Semantic HTML5</span>
|
||||
</div>
|
||||
<div class="info-tech-item">
|
||||
<iconify-icon icon="mdi:language-css3" width="32" height="32"></iconify-icon>
|
||||
<span>Pure CSS3</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a href="https://github.com/juanatsap/cv-site" target="_blank" rel="noopener noreferrer" class="info-modal-github">
|
||||
<iconify-icon icon="mdi:github" width="24" height="24"></iconify-icon>
|
||||
<span>{{if eq .Lang "es"}}Ver código fuente{{else}}View Source Code{{end}}</span>
|
||||
<iconify-icon icon="mdi:arrow-right" width="20" height="20"></iconify-icon>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// Toggle navigation menu
|
||||
function toggleMenu() {
|
||||
@@ -605,6 +659,32 @@
|
||||
});
|
||||
});
|
||||
|
||||
// Info Modal Functions
|
||||
function openInfoModal() {
|
||||
const modal = document.getElementById('info-modal');
|
||||
modal.classList.add('active');
|
||||
document.body.style.overflow = 'hidden'; // Prevent scrolling when modal is open
|
||||
}
|
||||
|
||||
function closeInfoModal() {
|
||||
const modal = document.getElementById('info-modal');
|
||||
modal.classList.remove('active');
|
||||
document.body.style.overflow = ''; // Restore scrolling
|
||||
}
|
||||
|
||||
function closeInfoModalOnBackdrop(event) {
|
||||
if (event.target.id === 'info-modal') {
|
||||
closeInfoModal();
|
||||
}
|
||||
}
|
||||
|
||||
// Close modal with Escape key
|
||||
document.addEventListener('keydown', function(event) {
|
||||
if (event.key === 'Escape') {
|
||||
closeInfoModal();
|
||||
}
|
||||
});
|
||||
|
||||
// Error handling utility
|
||||
function showError(message) {
|
||||
const errorToast = document.getElementById('error-toast');
|
||||
|
||||
Reference in New Issue
Block a user