Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
<!DOCTYPE html> <title>My Example</title> <!-- Place the following CSS in your <head> or stylesheet --> <style> /* This is an optional body style to provide a background for the page */ body { background-color: #f9fafb; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif; } /* === Grid Container for the Cards === */ .cards-grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; padding: 1.5rem; } /* === Conference Speaker Card Styles === */ .speaker-card { --speaker-card-radius: 12px; --speaker-card-shadow: 0 4px 10px rgba(0,0,0,0.08); background-color: #ffffff; border-radius: var(--speaker-card-radius); box-shadow: var(--speaker-card-shadow); overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease; } .speaker-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); } .speaker-card-link { display: block; text-decoration: none; color: inherit; } .speaker-card-link:hover .speaker-card-name { color: #4f46e5; } .speaker-card-image-container { position: relative; background-color: #e5e7eb; } .speaker-card-image { width: 100%; height: 280px; object-fit: cover; display: block; } .speaker-card-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem 1.25rem; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%); color: #ffffff; } .speaker-card-name { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.25rem; transition: color 0.2s ease; } .speaker-card-title { font-size: 0.95rem; opacity: 0.9; margin: 0; } /* Card body with talk info */ .speaker-card-body { padding: 1.25rem; } .speaker-card-body .talk-topic { font-size: 1rem; font-weight: 500; margin: 0 0 0.5rem; } .speaker-card-body .talk-excerpt { font-size: 0.95rem; line-height: 1.6; color: #4b5563; margin: 0; } </style> <!-- Place the following HTML in your <body> --> <div class="cards-grid-container"> <!-- Card 1 --> <article class="speaker-card"> <a href="#" class="speaker-card-link"> <div class="speaker-card-image-container"> <!-- Image by placehold.co. Replace with your own. --> <img class="speaker-card-image" src="https://placehold.co/600x560/a78bfa/ffffff/png?text=Elara" alt="Headshot of Elara Vance."> <div class="speaker-card-info"> <h3 class="speaker-card-name">Elara Vance</h3> <p class="speaker-card-title">Lead UX Architect, Starlight Solutions</p> </div> </div> <div class="speaker-card-body"> <h4 class="talk-topic">Topic: The Ethics of AI in Design</h4> <p class="talk-excerpt">Exploring the complex ethical landscape that designers must navigate in the age of artificial intelligence...</p> </div> </a> </article> <!-- Card 2 --> <article class="speaker-card"> <a href="#" class="speaker-card-link"> <div class="speaker-card-image-container"> <!-- Image by placehold.co. Replace with your own. --> <img class="speaker-card-image" src="https://placehold.co/600x560/7dd3fc/ffffff/png?text=Caspian" alt="Headshot of Caspian Reed."> <div class="speaker-card-info"> <h3 class="speaker-card-name">Caspian Reed</h3> <p class="speaker-card-title">Principal Engineer, Apex Digital</p> </div> </div> <div class="speaker-card-body"> <h4 class="talk-topic">Topic: Scaling Infrastructure for a Billion Users</h4> <p class="talk-excerpt">A deep dive into the architecture and strategies required to build systems that are both resilient and...</p> </div> </a> </article> <!-- Card 3 --> <article class="speaker-card"> <a href="#" class="speaker-card-link"> <div class="speaker-card-image-container"> <!-- Image by placehold.co. Replace with your own. --> <img class="speaker-card-image" src="https://placehold.co/600x560/fca5a5/ffffff/png?text=Zoya" alt="Headshot of Zoya Khan."> <div class="speaker-card-info"> <h3 class="speaker-card-name">Zoya Khan</h3> <p class="speaker-card-title">CEO, Quantum Innovations</p> </div> </div> <div class="speaker-card-body"> <h4 class="talk-topic">Keynote: The Future of Human-Computer Interaction</h4> <p class="talk-excerpt">Join us for an inspiring look at the technologies that will shape our digital interactions for the next decade...</p> </div> </a> </article> </div>