DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
Blog card - Preview | DevPlatform
DevPlatform
Categories
Accordion
Animation
Box Shadow
Button
Card
Footer
Form
Gallery
Hero Section
Inputs
Loader
Marquee
Modal
Modules
Navbar
Progress Bar
Radio Buttons
Search-Bar
Sections
Slider
Tab
Timeline
Toggle
Blog card
jitesh208
Jan 21, 2026
2
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<div class="wrapper"> <div class="modern-card"> <div class="card-image"> <div class="image-overlay"></div> <div class="floating-badge">Featured</div> </div> <div class="card-content"> <div class="content-header"> <div class="tag-group"> <span class="tag">Technology</span> <span class="tag">Innovation</span> </div> <div class="date">Jan 21, 2026</div> </div> <h3 class="card-title">The Future of AI Development</h3> <p class="card-text">Exploring cutting-edge innovations and breakthrough technologies shaping tomorrow.</p> <div class="card-footer"> <div class="author"> <div class="author-avatar">AM</div> <div class="author-info"> <div class="author-name">Alex Morgan</div> <div class="author-role">Tech Writer</div> </div> </div> <button class="read-more"> <span>Read</span> <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"> <line x1="5" y1="12" x2="19" y2="12"></line> <polyline points="12 5 19 12 12 19"></polyline> </svg> </button> </div> </div> </div> </div>
1
* { margin: 0; padding: 0; box-sizing: border-box; } body { min-height: 100vh; display: flex; justify-content: center; align-items: center; background: linear-gradient(135deg, #1e3c72, #2a5298); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; padding: 20px; } .wrapper { width: 100%; max-width: 400px; } .modern-card { width: 100%; height: 350px; background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; display: flex; flex-direction: column; } .modern-card:hover { transform: translateY(-8px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); } .card-image { position: relative; height: 150px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); overflow: hidden; } .card-image::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="35" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="85" cy="50" r="2.5" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="70" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="80" r="3" fill="rgba(255,255,255,0.1)"/></svg>'); background-size: 200px 200px; animation: floatPattern 20s linear infinite; } @keyframes floatPattern { 0% { transform: translate(0, 0); } 100% { transform: translate(50px, 50px); } } .image-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 50%; background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent); } .floating-badge { position: absolute; top: 15px; right: 15px; background: rgba(255, 255, 255, 0.95); color: #667eea; padding: 6px 16px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); animation: floatBadge 3s ease-in-out infinite; } @keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } } .card-content { flex: 1; padding: 20px; display: flex; flex-direction: column; } .content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .tag-group { display: flex; gap: 6px; } .tag { padding: 4px 10px; background: #f0f0f0; color: #555; border-radius: 12px; font-size: 10px; font-weight: 600; text-transform: uppercase; } .date { font-size: 11px; color: #999; font-weight: 500; } .card-title { font-size: 20px; font-weight: 700; color: #2c3e50; margin-bottom: 8px; line-height: 1.3; } .card-text { font-size: 13px; color: #7f8c8d; line-height: 1.5; margin-bottom: auto; } .card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid #f0f0f0; } .author { display: flex; align-items: center; gap: 12px; } .author-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2); color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } .author-info { display: flex; flex-direction: column; gap: 2px; } .author-name { font-size: 13px; font-weight: 600; color: #2c3e50; } .author-role { font-size: 11px; color: #95a5a6; } .read-more { display: flex; align-items: center; gap: 6px; padding: 10px 18px; background: linear-gradient(135deg, #667eea, #764ba2); color: white; border: none; border-radius: 12px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } .read-more:hover { transform: translateX(4px); box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4); } .read-more svg { width: 16px; height: 16px; transition: transform 0.3s ease; } .read-more:hover svg { transform: translateX(3px); } @media (max-width: 420px) { .modern-card { height: auto; min-height: 350px; } .card-content { padding: 16px; } .card-title { font-size: 18px; } .tag-group { flex-wrap: wrap; } }
1
Comments
0
Want to comment?
Please
login
or
sign up
to post comments.
No comments yet
Be the first to comment on this component!
Comments 0
Want to comment?
Please login or sign up to post comments.
No comments yet
Be the first to comment on this component!