Skip to content

Commit eb38b48

Browse files
authored
Homepage style tweaks (#928)
1 parent d9dadba commit eb38b48

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

frontend/src/components/common/HomepageInfoMessage/HomepageInfoMessage.module.scss

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ $transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
1919
.card {
2020
width: 100%;
2121
max-width: 420px;
22-
background: var(--content-bg-color, #FFFFFF);
23-
border: 1px solid var(--border-color, #E5E7EB);
22+
background: var(--content-bg-color, var(--checkout-surface, #FFFFFF));
23+
border: 1px solid var(--border-color, var(--checkout-border, #E5E7EB));
2424
border-radius: $radius-lg;
2525
padding: 40px 32px;
2626
text-align: center;
@@ -39,7 +39,7 @@ $transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
3939
align-items: center;
4040
justify-content: center;
4141
margin: 0 auto 24px;
42-
background: var(--accent-soft, var(--mantine-primary-color-light));
42+
background: var(--accent-soft, var(--checkout-accent-soft, var(--mantine-primary-color-light)));
4343

4444
@include mixins.respond-below(sm) {
4545
width: 64px;
@@ -60,7 +60,7 @@ $transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
6060
font-family: $font-display;
6161
font-size: 20px;
6262
font-weight: 600;
63-
color: var(--primary-text-color, #111827);
63+
color: var(--primary-text-color, var(--checkout-text-primary, #111827));
6464
margin: 0 0 8px 0;
6565
line-height: 1.4;
6666

@@ -71,7 +71,7 @@ $transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
7171

7272
.subtitle {
7373
font-size: 15px;
74-
color: var(--secondary-color, #6B7280);
74+
color: var(--secondary-color, var(--checkout-text-secondary, #6B7280));
7575
margin: 0 0 24px 0;
7676
line-height: 1.5;
7777
}
@@ -84,25 +84,25 @@ $transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
8484
font-weight: 600 !important;
8585
font-size: 15px !important;
8686
margin-top: 16px;
87-
background: var(--primary-color, var(--mantine-primary-color-filled)) !important;
88-
color: var(--accent-contrast, #FFFFFF) !important;
87+
background: var(--primary-color, var(--checkout-accent, var(--mantine-primary-color-filled))) !important;
88+
color: var(--accent-contrast, var(--checkout-accent-contrast, #FFFFFF)) !important;
8989
transition: transform $transition-fast, box-shadow $transition-fast;
9090

9191
&:hover {
9292
transform: translateY(-1px);
93-
box-shadow: 0 4px 12px var(--accent-soft, rgba(0, 0, 0, 0.15));
93+
box-shadow: 0 4px 12px var(--accent-soft, var(--checkout-accent-soft, rgba(0, 0, 0, 0.15)));
9494
filter: brightness(1.05);
9595
}
9696
}
9797

9898
.helpText {
9999
margin-top: 24px;
100100
font-size: 14px;
101-
color: var(--secondary-color, #6B7280);
101+
color: var(--secondary-color, var(--checkout-text-secondary, #6B7280));
102102
}
103103

104104
.helpLink {
105-
color: var(--primary-color, var(--mantine-primary-color-filled));
105+
color: var(--primary-color, var(--checkout-accent, var(--mantine-primary-color-filled)));
106106
text-decoration: none;
107107

108108
&:hover {

frontend/src/components/common/InlineOrderSummary/InlineOrderSummary.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
padding: 16px 20px;
1818
cursor: pointer;
1919
user-select: none;
20-
transition: background-color 0.15s ease;
20+
transition: opacity 0.15s ease;
2121

2222
&:hover {
23-
background-color: var(--checkout-accent-soft, rgba(0, 0, 0, 0.02));
23+
opacity: 0.8;
2424
}
2525
}
2626

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,16 @@ const Checkout = () => {
244244
size="m"
245245
>
246246
<div style={{textAlign: 'center', padding: '20px 0'}}>
247-
<h3>
247+
<h3 style={{color: 'var(--checkout-text-primary)', margin: '0 0 8px 0'}}>
248248
{t`You have run out of time to complete your order.`}
249249
</h3>
250-
<p>
250+
<p style={{color: 'var(--checkout-text-secondary)', margin: '0'}}>
251251
{t`Please return to the event page to start over.`}
252252
</p>
253253
<Button
254254
onClick={handleReturn}
255255
variant="filled"
256+
mt="xl"
256257
>
257258
{t`Return to Event Page`}
258259
</Button>
@@ -267,10 +268,10 @@ const Checkout = () => {
267268
size="m"
268269
>
269270
<div style={{textAlign: 'center', padding: '20px 0'}}>
270-
<h3>
271+
<h3 style={{color: 'var(--checkout-text-primary)', margin: '0 0 8px 0'}}>
271272
{t`Are you sure you want to leave?`}
272273
</h3>
273-
<p>
274+
<p style={{color: 'var(--checkout-text-secondary)', margin: '0'}}>
274275
{t`Your current order will be lost.`}
275276
</p>
276277
<Group justify="center" gap="md" mt="xl">
@@ -282,8 +283,8 @@ const Checkout = () => {
282283
</Button>
283284
<Button
284285
onClick={handleAbandonConfirm}
285-
variant="filled"
286-
color="red"
286+
variant="outline"
287+
color="gray"
287288
loading={abandonOrderMutation.isPending}
288289
>
289290
{t`Yes, cancel my order`}

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,18 @@ $transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
132132
.coverWrapper {
133133
position: relative;
134134
width: 100%;
135-
aspect-ratio: 2.2 / 1;
135+
max-height: 560px;
136136
overflow: hidden;
137137

138138
@include mixins.respond-below(md) {
139-
aspect-ratio: 16 / 10;
139+
max-height: 400px;
140140
}
141141
}
142142

143143
.coverImage {
144144
width: 100%;
145-
height: 100%;
146-
object-fit: cover;
145+
height: auto;
146+
display: block;
147147
transition: transform $transition-slow;
148148

149149
.mainCard:hover & {
@@ -219,8 +219,7 @@ $transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
219219
cursor: pointer;
220220

221221
&:hover {
222-
background: var(--accent-muted);
223-
transform: translateY(-1px);
222+
transform: translateY(-1px) scale(1.02);
224223
}
225224
}
226225

@@ -573,7 +572,7 @@ $transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
573572
transition: all $transition-fast;
574573

575574
@include mixins.respond-below(md) {
576-
height: 140px;
575+
display: none;
577576
}
578577

579578
&:hover {

0 commit comments

Comments
 (0)