UI: center text and expand image to bottom in Activity/Promo Carousel
This commit is contained in:
@ -181,7 +181,7 @@ const currentPromo = computed(() => {
|
||||
|
||||
.sheet-card {
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
height: 250px;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
position: relative;
|
||||
@ -194,10 +194,10 @@ const currentPromo = computed(() => {
|
||||
height: 100%;
|
||||
background: linear-gradient(
|
||||
to bottom,
|
||||
rgba(0,0,0,0.5) 0%,
|
||||
rgba(0,0,0,0) 30%,
|
||||
rgba(0,0,0,0) 60%,
|
||||
rgba(0,0,0,0.85) 100%
|
||||
rgba(0,0,0,0.2) 0%,
|
||||
rgba(0,0,0,0) 20%,
|
||||
rgba(0,0,0,0.4) 50%,
|
||||
rgba(0,0,0,0.95) 100%
|
||||
);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@ -205,6 +205,14 @@ const currentPromo = computed(() => {
|
||||
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 {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 800;
|
||||
@ -214,10 +222,19 @@ const currentPromo = computed(() => {
|
||||
|
||||
.sheet-promo-title {
|
||||
margin: 0;
|
||||
font-size: 1.1rem;
|
||||
font-size: 1.3rem;
|
||||
font-weight: 900;
|
||||
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 {
|
||||
@ -235,15 +252,19 @@ const currentPromo = computed(() => {
|
||||
color: #fff;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 900;
|
||||
padding: 0.25rem 0.6rem;
|
||||
padding: 0.4rem 0.8rem;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.sheet-dots {
|
||||
position: absolute;
|
||||
bottom: 12px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
padding: 0.25rem 0 0.25rem;
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
.sheet-dot {
|
||||
|
||||
Reference in New Issue
Block a user