feat: Add video embedding for YouTube and Vimeo links in PostCard.

This commit is contained in:
Christopher
2026-01-22 18:40:26 -08:00
parent 72d148066e
commit 59ba9f7d8b
3 changed files with 76 additions and 0 deletions
+19
View File
@@ -338,6 +338,25 @@ a.btn-primary:visited {
display: block;
}
.video-embed-container {
position: relative;
padding-bottom: 56.25%; /* 16:9 aspect ratio */
height: 0;
overflow: hidden;
border-radius: var(--radius-md);
margin-bottom: 12px;
border: 1px solid var(--border);
background: #000;
}
.video-embed-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.post-actions {
display: flex;
gap: 24px;