feat: add last podcast from castopod

This commit is contained in:
2025-10-17 17:38:16 +04:00
parent b35dbde8c9
commit 0319fa20c3
9 changed files with 692 additions and 87 deletions
+222
View File
@@ -0,0 +1,222 @@
/* Styles pour la liste compacte de podcasts Castopod */
.castopod-container {
background: var(--card-bg);
border-radius: 12px;
border: 1px solid var(--border-color);
box-shadow: var(--card-shadow);
overflow: hidden;
height: 400px;
display: flex;
flex-direction: column;
}
.castopod-section {
width: 100%;
min-width: 0;
margin-bottom: 1em;
}
.castopod-header {
background: var(--primary-red);
color: white;
padding: 12px 16px;
font-size: 1rem;
font-weight: bold;
display: flex;
align-items: center;
gap: 8px;
}
.castopod-header a {
color: white;
text-decoration: none;
transition: opacity 0.2s ease;
}
.castopod-header a:hover {
opacity: 0.8;
text-decoration: underline;
}
.castopod-episodes-list {
flex: 1;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--primary-red) transparent;
}
.castopod-episodes-list::-webkit-scrollbar {
width: 6px;
}
.castopod-episodes-list::-webkit-scrollbar-track {
background: transparent;
}
.castopod-episodes-list::-webkit-scrollbar-thumb {
background-color: var(--primary-red);
border-radius: 3px;
}
.castopod-episode-item {
display: flex;
padding: 8px 12px;
border-bottom: 1px solid var(--border-color);
text-decoration: none;
color: inherit;
transition: background-color 0.2s ease;
gap: 8px;
}
.castopod-episode-item:hover {
background: var(--hover-bg);
text-decoration: none;
color: inherit;
}
.castopod-episode-item:last-child {
border-bottom: none;
}
.castopod-episode-thumb {
width: 60px;
height: 60px;
border-radius: 8px;
overflow: hidden;
flex-shrink: 0;
background: var(--tag-bg);
display: flex;
align-items: center;
justify-content: center;
color: var(--text-secondary);
position: relative;
}
.castopod-episode-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
.castopod-play-icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 1.5rem;
color: rgba(255, 255, 255, 0.9);
text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
opacity: 0;
transition: opacity 0.2s ease;
pointer-events: none;
}
.castopod-episode-item:hover .castopod-play-icon {
opacity: 1;
}
.castopod-episode-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
justify-content: center;
}
.castopod-episode-title {
font-size: 0.8rem;
font-weight: 600;
color: var(--text-color);
margin: 0 0 4px 0;
line-height: 1.2;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.castopod-podcast-badge {
font-size: 0.65rem;
color: var(--primary-red);
font-weight: 600;
margin: 0 0 4px 0;
display: flex;
align-items: center;
gap: 4px;
}
.castopod-podcast-badge i {
font-size: 0.6rem;
}
.castopod-episode-meta {
font-size: 0.65rem;
color: var(--text-secondary);
display: flex;
gap: 6px;
align-items: center;
flex-wrap: wrap;
}
.castopod-episode-meta i {
font-size: 0.6rem;
}
.castopod-no-episodes {
text-align: center;
color: var(--text-secondary);
padding: 20px;
font-style: italic;
font-size: 0.9rem;
}
/* Ajustement du layout selon les contenus présents */
/* Ordre dans le HTML : 1. Castopod, 2. Mastodon, 3. WordPress */
/* Responsive Design */
@media (max-width: 1024px) {
/* Mobile/Tablette: layout vertical */
.timeline-container:has(.castopod-section) {
grid-template-columns: 1fr !important;
}
.castopod-section {
width: 100%;
}
.castopod-container {
height: auto;
max-height: 400px;
}
}
@media (max-width: 768px) {
.castopod-episode-thumb {
width: 65px;
height: 65px;
}
.castopod-episode-item {
padding: 10px 12px;
gap: 10px;
}
.castopod-episode-title {
font-size: 0.85rem;
}
.castopod-episode-meta {
font-size: 0.65rem;
}
.castopod-header {
padding: 10px 12px;
font-size: 0.9rem;
}
.castopod-play-icon {
font-size: 1.3rem;
}
}
+11 -32
View File
@@ -594,45 +594,24 @@ img {
align-items: start;
}
/* Quand pas de hero (HERO_TYPE = 'none') et pas de WordPress: centrer la timeline Mastodon */
.hero-mastodon-wrapper:has(.timeline-wordpress-container:only-child) .timeline-wordpress-container:not(:has(.wordpress-section)) {
grid-column: 1 / -1;
display: flex;
justify-content: center;
}
.hero-mastodon-wrapper:has(.timeline-wordpress-container:only-child) .timeline-wordpress-container:not(:has(.wordpress-section)) #mt-container {
.timeline-container {
max-width: 800px;
width: 100%;
justify-self: center;
}
/* Responsive breakpoint pour écrans entre 1025px et 1699px */
@media (max-width: 1699px) and (min-width: 1025px) {
.hero-mastodon-wrapper {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.hero {
grid-column: 1 / -1;
width: 100%;
}
.timeline-wordpress-container {
grid-column: 1 / -1;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-columns: 1fr 1fr;
gap: 20px;
}
#mt-container {
grid-column: 1 / 2;
}
.wordpress-section {
grid-column: 2 / 3;
}
}
.hero {
@@ -1032,6 +1011,7 @@ img {
border-radius: 8px;
display: flex;
flex-direction: column;
margin-bottom: 1em;
}
.mt-header {
@@ -2309,7 +2289,7 @@ img {
}
/* Pour le nouveau layout timeline-wordpress */
.timeline-wordpress-container #mt-container {
.timeline-container #mt-container {
height: 400px;
}
@@ -2855,17 +2835,16 @@ i.icon-mastodon,
display: block;
}
.timeline-container {
width: 100%;
max-width: 100%;
}
.hero {
width: 100%;
margin-bottom: 20px;
}
.timeline-wordpress-container {
display: flex;
flex-direction: row;
gap: 20px;
}
#mt-container {
flex: 1;
}
+4 -4
View File
@@ -1,7 +1,7 @@
/* Styles pour la liste compacte d'articles WordPress */
/* Container principal pour timeline + wordpress */
.timeline-wordpress-container {
.timeline-container {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 20px;
@@ -27,7 +27,7 @@
}
/* Assurer que le container Mastodon garde son scroll */
.timeline-wordpress-container .mt-container {
.timeline-container .mt-container {
height: 400px !important;
overflow-y: auto !important;
}
@@ -155,7 +155,7 @@
/* Responsive Design */
@media (max-width: 1024px) {
/* Mobile/Tablette: layout vertical */
.timeline-wordpress-container {
.timeline-container {
grid-template-columns: 1fr;
gap: 15px;
}
@@ -165,7 +165,7 @@
}
/* Maintenir la hauteur et le scroll du container Mastodon en mobile */
.timeline-wordpress-container .mt-container {
.timeline-container .mt-container {
height: 400px !important;
overflow-y: auto !important;
max-height: 400px !important;