Skip to content

Commit b4c2955

Browse files
authored
Merge pull request #930 from HiEventsDev/develop
2 parents 1d0087b + ef07d6b commit b4c2955

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

frontend/src/components/layouts/EventHomepage/EventHomepage.module.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,18 +176,19 @@ $transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
176176
display: inline-flex;
177177
align-items: center;
178178
gap: 6px;
179-
background: rgba(255, 255, 255, 0.15);
179+
background: rgba(0, 0, 0, 0.5);
180180
backdrop-filter: blur(20px);
181-
border: 1px solid rgba(255, 255, 255, 0.2);
182181
border-radius: $radius-sm;
183182
padding: 8px 14px;
184183
font-size: 0.8rem;
185184
font-weight: 600;
186185
color: white;
186+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
187187

188188
svg {
189189
width: 0.7rem;
190190
height: 0.7rem;
191+
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
191192
}
192193
}
193194

frontend/src/components/layouts/EventHomepage/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,17 @@ const EventHomepage = ({...loaderData}: EventHomepageProps) => {
135135
return null;
136136
}
137137

138+
const availableProducts = products.filter(p => p.is_available && !p.is_sold_out);
138139
const allSoldOut = products.every(p => p.is_sold_out);
139140

140141
if (allSoldOut) {
141142
return {text: t`Sold Out`, variant: 'danger'};
142143
}
143144

145+
if (availableProducts.length === 0) {
146+
return null;
147+
}
148+
144149
return {text: t`Tickets Available`, variant: 'success'};
145150
};
146151

frontend/src/styles/widget/default.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
}
115115

116116
.hi-price-tier-row {
117-
margin-bottom: 10px;
117+
margin-bottom: 15px;
118118

119119
.hi-price-tier {
120120
.hi-price-tier-label {

0 commit comments

Comments
 (0)