UI: center text and expand image to bottom in Activity/Promo Carousel

This commit is contained in:
2026-03-19 14:24:17 -05:00
parent 8a12c9fd19
commit 7e0856fc38

View File

@ -181,7 +181,7 @@ const currentPromo = computed(() => {
.sheet-card { .sheet-card {
width: 100%; width: 100%;
height: 200px; height: 250px;
background-size: cover; background-size: cover;
background-position: center; background-position: center;
position: relative; position: relative;
@ -194,10 +194,10 @@ const currentPromo = computed(() => {
height: 100%; height: 100%;
background: linear-gradient( background: linear-gradient(
to bottom, to bottom,
rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 0%,
rgba(0,0,0,0) 30%, rgba(0,0,0,0) 20%,
rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 50%,
rgba(0,0,0,0.85) 100% rgba(0,0,0,0.95) 100%
); );
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -205,6 +205,14 @@ const currentPromo = computed(() => {
padding: 1.25rem; padding: 1.25rem;
} }
.sheet-info {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding-bottom: 20px; /* Space for absolute dots below */
}
.sheet-biz-name { .sheet-biz-name {
font-size: 0.75rem; font-size: 0.75rem;
font-weight: 800; font-weight: 800;
@ -214,10 +222,19 @@ const currentPromo = computed(() => {
.sheet-promo-title { .sheet-promo-title {
margin: 0; margin: 0;
font-size: 1.1rem; font-size: 1.3rem;
font-weight: 900; font-weight: 900;
color: #fff; color: #fff;
margin-bottom: 0.5rem; margin-bottom: 0.75rem;
text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.sheet-actions {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
flex-wrap: wrap;
} }
.sheet-cta { .sheet-cta {
@ -235,15 +252,19 @@ const currentPromo = computed(() => {
color: #fff; color: #fff;
font-size: 0.75rem; font-size: 0.75rem;
font-weight: 900; font-weight: 900;
padding: 0.25rem 0.6rem; padding: 0.4rem 0.8rem;
border-radius: 8px; border-radius: 8px;
} }
.sheet-dots { .sheet-dots {
position: absolute;
bottom: 12px;
left: 0;
right: 0;
display: flex; display: flex;
justify-content: center; justify-content: center;
gap: 6px; gap: 6px;
padding: 0.25rem 0 0.25rem; z-index: 20;
} }
.sheet-dot { .sheet-dot {