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: #f3f4f6; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif; } /* Optional: a container to center the card on the page for demonstration */ .demo-container-podcast { display: flex; justify-content: center; padding: 2rem; } /* === Podcast Episode Card Styles === */ .episode-card { --episode-radius: 12px; --episode-shadow: 0 4px 10px rgba(0,0,0,0.06); background-color: #ffffff; border-radius: var(--episode-radius); box-shadow: var(--episode-shadow); max-width: 600px; width: 100%; padding: 1.5rem; display: flex; flex-direction: column; } .episode-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; } .episode-card-meta { font-size: 0.875rem; font-weight: 500; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; } .episode-card-title { font-size: 1.375rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.75rem; } .episode-card-title-link { text-decoration: none; color: inherit; transition: color 0.2s ease; } .episode-card-title-link:hover { color: #4f46e5; } /* Play button */ .episode-play-btn { flex-shrink: 0; background-color: #4f46e5; color: #ffffff; border: none; border-radius: 50%; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3); transition: background-color 0.2s ease, transform 0.2s ease; } .episode-play-btn:hover { background-color: #4338ca; transform: scale(1.05); } .episode-play-btn svg { width: 24px; height: 24px; margin-left: 3px; /* Optical alignment */ } /* Episode Summary */ .episode-card-summary { font-size: 1rem; line-height: 1.6; color: #374151; margin: 1.25rem 0 0; padding-top: 1.25rem; border-top: 1px solid #e5e7eb; } </style> <!-- Place the following HTML in your <body> --> <div class="demo-container-podcast"> <article class="episode-card" aria-labelledby="episode-title-1"> <header class="episode-card-header"> <div> <p class="episode-card-meta">Episode 42 • 32 min</p> <a href="#" class="episode-card-title-link"> <h3 class="episode-card-title" id="episode-title-1">The Art of Component-Based Design</h3> </a> </div> <button class="episode-play-btn" type="button" aria-label="Play Episode"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M4.5 5.653c0-1.426 1.529-2.33 2.779-1.643l11.54 6.647c1.295.748 1.295 2.535 0 3.284L7.279 20.99c-1.25.715-2.779-.217-2.779-1.643V5.653z" clip-rule="evenodd" /></svg> </button> </header> <div class="episode-card-summary"> <p>We sit down with UX Architect, Elara Vance, to discuss the principles of atomic design, the challenges of building scalable UI libraries, and the future of component-driven development.</p> </div> </article> </div>