feat: add next live announcement with multi-timezone display
This commit is contained in:
+410
-11
@@ -584,21 +584,32 @@ img {
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
/* Responsive breakpoint intermédiaire pour les 3 éléments */
|
||||
@media (max-width: 1200px) and (min-width: 1025px) {
|
||||
/* Responsive breakpoint pour écrans entre 1025px et 1699px */
|
||||
@media (max-width: 1699px) and (min-width: 1025px) {
|
||||
.hero-mastodon-wrapper {
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: auto auto;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
|
||||
.hero {
|
||||
grid-column: 1 / -1;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.timeline-wordpress-container {
|
||||
grid-column: 1 / -1;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 15px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.timeline-wordpress-container .wordpress-section {
|
||||
width: 100%;
|
||||
|
||||
#mt-container {
|
||||
grid-column: 1 / 2;
|
||||
}
|
||||
|
||||
.wordpress-section {
|
||||
grid-column: 2 / 3;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -729,6 +740,116 @@ img {
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
/* Annonce du prochain live dans le hero (page d'accueil) - Split gauche/droite */
|
||||
.hero-next-live {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.hero-next-live-image-container {
|
||||
flex: 0 0 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--bg-dark);
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.hero-next-live-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
object-position: center;
|
||||
}
|
||||
|
||||
.hero-next-live-content {
|
||||
flex: 0 0 50%;
|
||||
padding: 20px 15px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.hero-next-live-content i.fa-calendar-alt {
|
||||
font-size: 35px;
|
||||
margin-bottom: 8px;
|
||||
color: var(--primary-red);
|
||||
}
|
||||
|
||||
.hero-next-live-content h2 {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 8px;
|
||||
color: white;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.hero-next-live-content p {
|
||||
font-size: 14px;
|
||||
margin: 0 auto 12px;
|
||||
color: rgba(255, 255, 255, 0.95);
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.hero-next-live-date {
|
||||
font-size: 15px !important;
|
||||
font-weight: 600;
|
||||
color: white !important;
|
||||
background: var(--primary-red);
|
||||
padding: 7px 14px;
|
||||
border-radius: 8px;
|
||||
display: inline-block;
|
||||
margin-bottom: 12px !important;
|
||||
box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.hero-next-live-date i {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.hero-next-live-datetime {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hero-next-live-timezones {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
justify-content: center;
|
||||
margin-top: 12px;
|
||||
padding: 12px 16px;
|
||||
background-color: rgba(255, 255, 255, 0.15);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.hero-timezone-item {
|
||||
font-size: 13px;
|
||||
color: rgba(255, 255, 255, 0.95);
|
||||
white-space: nowrap;
|
||||
line-height: 1.5;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
padding: 5px 10px;
|
||||
border-radius: 5px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
flex: 0 1 auto;
|
||||
min-width: fit-content;
|
||||
}
|
||||
|
||||
.hero-timezone-item strong {
|
||||
color: white;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
#mt-container {
|
||||
width: 100%;
|
||||
height: 400px;
|
||||
@@ -1982,6 +2103,16 @@ img {
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
/* Augmenter la hauteur du hero quand il y a une annonce */
|
||||
.hero:has(.hero-next-live) {
|
||||
height: 600px;
|
||||
}
|
||||
|
||||
/* Augmenter aussi la hauteur du hero pour "no-live" pour cohérence */
|
||||
.hero:has(.hero-no-live) {
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
.hero-mastodon-wrapper #mt-container {
|
||||
height: 600px;
|
||||
@@ -1997,7 +2128,7 @@ img {
|
||||
font-size: 12px !important;
|
||||
padding: 5px 10px !important;
|
||||
}
|
||||
|
||||
|
||||
.hero-logo {
|
||||
font-size: 40px;
|
||||
}
|
||||
@@ -2342,6 +2473,129 @@ i.icon-mastodon,
|
||||
margin: 0 auto 30px;
|
||||
}
|
||||
|
||||
/* Annonce du prochain live - Split gauche/droite */
|
||||
.next-live-announcement {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
background-color: var(--card-bg);
|
||||
min-height: 500px;
|
||||
}
|
||||
|
||||
.next-live-image-container {
|
||||
flex: 0 0 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--bg-dark);
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.next-live-image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
object-position: center;
|
||||
max-height: 600px;
|
||||
}
|
||||
|
||||
.next-live-content {
|
||||
flex: 0 0 50%;
|
||||
padding: 50px 40px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-dark) 100%);
|
||||
}
|
||||
|
||||
.next-live-content i.fa-calendar-alt {
|
||||
font-size: 60px;
|
||||
margin-bottom: 20px;
|
||||
color: var(--primary-red);
|
||||
}
|
||||
|
||||
.next-live-content h2 {
|
||||
font-size: 32px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 20px;
|
||||
color: var(--text-color);
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.next-live-content p {
|
||||
font-size: 20px;
|
||||
margin: 0 auto 25px;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.5;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.next-live-date {
|
||||
font-size: 22px !important;
|
||||
font-weight: 600;
|
||||
color: white !important;
|
||||
background: var(--primary-red);
|
||||
padding: 12px 24px;
|
||||
border-radius: 8px;
|
||||
display: inline-block;
|
||||
margin-bottom: 30px !important;
|
||||
box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
.next-live-date i {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.utc-offset {
|
||||
font-size: 16px;
|
||||
opacity: 0.85;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.next-live-datetime {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.next-live-timezones {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
justify-content: center;
|
||||
margin-top: 15px;
|
||||
margin-bottom: 20px;
|
||||
padding: 16px 20px;
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.timezone-item {
|
||||
font-size: 16px;
|
||||
color: rgba(255, 255, 255, 0.95);
|
||||
white-space: nowrap;
|
||||
line-height: 1.5;
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
padding: 6px 12px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
flex: 0 1 auto;
|
||||
min-width: fit-content;
|
||||
}
|
||||
|
||||
.timezone-item strong {
|
||||
color: white;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.day-shift {
|
||||
font-size: 12px;
|
||||
color: var(--primary-red);
|
||||
font-weight: 700;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
display: inline-block;
|
||||
padding: 12px 25px;
|
||||
@@ -2361,6 +2615,32 @@ i.icon-mastodon,
|
||||
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
/* Responsive tablette/desktop étroit - 769px à 1024px */
|
||||
@media (max-width: 1024px) and (min-width: 769px) {
|
||||
.hero-mastodon-wrapper {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.hero {
|
||||
width: 100%;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.timeline-wordpress-container {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
#mt-container {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.wordpress-section {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive pour la page de direct */
|
||||
@media (max-width: 768px) {
|
||||
.live-title {
|
||||
@@ -2399,6 +2679,125 @@ i.icon-mastodon,
|
||||
.no-live-message p {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
/* Responsive mobile - Stack vertical pour l'annonce */
|
||||
.next-live-announcement {
|
||||
flex-direction: column;
|
||||
min-height: auto;
|
||||
}
|
||||
|
||||
.next-live-image-container {
|
||||
flex: 0 0 auto;
|
||||
width: 100%;
|
||||
max-height: 400px;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.next-live-image {
|
||||
max-height: 350px;
|
||||
}
|
||||
|
||||
.next-live-content {
|
||||
flex: 0 0 auto;
|
||||
width: 100%;
|
||||
padding: 30px 20px;
|
||||
overflow-y: auto;
|
||||
max-height: 600px;
|
||||
}
|
||||
|
||||
.next-live-content i.fa-calendar-alt {
|
||||
font-size: 45px;
|
||||
}
|
||||
|
||||
.next-live-content h2 {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.next-live-content p {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.next-live-date {
|
||||
font-size: 17px !important;
|
||||
padding: 10px 18px;
|
||||
}
|
||||
|
||||
.next-live-timezones {
|
||||
gap: 8px;
|
||||
padding: 14px 16px;
|
||||
margin-top: 12px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.timezone-item {
|
||||
font-size: 14px;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
/* Hero next live responsive */
|
||||
.hero-next-live {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.hero-next-live-image-container {
|
||||
flex: 0 0 300px;
|
||||
width: 100%;
|
||||
padding: 15px;
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
.hero-next-live-image {
|
||||
max-height: 270px;
|
||||
}
|
||||
|
||||
.hero-next-live-content {
|
||||
flex: 1;
|
||||
width: 100%;
|
||||
padding: 5px 15px 25px 15px;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.hero-next-live-content i.fa-calendar-alt {
|
||||
font-size: 35px;
|
||||
margin-bottom: 10px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.hero-next-live-content h2 {
|
||||
font-size: 20px;
|
||||
margin-bottom: 8px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.hero-next-live-content p {
|
||||
font-size: 13px;
|
||||
margin-bottom: 10px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.hero-next-live-date {
|
||||
font-size: 13px !important;
|
||||
padding: 6px 12px;
|
||||
margin-bottom: 10px !important;
|
||||
}
|
||||
|
||||
.hero-next-live-timezones {
|
||||
gap: 5px;
|
||||
padding: 8px 10px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.hero-timezone-item {
|
||||
font-size: 10px;
|
||||
padding: 3px 6px;
|
||||
}
|
||||
|
||||
.utc-offset {
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Catégories */
|
||||
|
||||
Reference in New Issue
Block a user