Skip to content

Commit 7a21fa2

Browse files
committed
Final style tweaks
1 parent bfbc356 commit 7a21fa2

File tree

5 files changed

+21
-30
lines changed

5 files changed

+21
-30
lines changed

app/routes/jam/jam.css

+5-5
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ html {
117117
.photo-1 {
118118
--rotate: 6deg;
119119
--hover-rotate: -3deg;
120-
top: 300px;
120+
top: 110px;
121121
right: -210px;
122122
width: 220px;
123123
height: 165px;
@@ -153,7 +153,7 @@ html {
153153
.photo-2 {
154154
--rotate: -6deg;
155155
--hover-rotate: 3deg;
156-
top: 820px;
156+
top: 740px;
157157
left: -200px;
158158
width: 220px;
159159
height: 147px;
@@ -227,7 +227,7 @@ html {
227227
@screen md {
228228
.ticket {
229229
top: 850px;
230-
right: -120px;
230+
right: -180px;
231231
width: 375px;
232232
height: 131px;
233233
}
@@ -255,7 +255,7 @@ html {
255255
.boarding-pass {
256256
--rotate: -6deg;
257257
--hover-rotate: 3deg;
258-
top: 1500px;
258+
top: 650px;
259259
left: -220px;
260260
width: 260px;
261261
height: 97px;
@@ -301,7 +301,7 @@ html {
301301
.sticker {
302302
--rotate: -8deg;
303303
--hover-rotate: 5deg;
304-
top: 420px;
304+
top: 150px;
305305
right: -80px;
306306
width: 120px;
307307
height: 36px;

app/routes/jam/pages/2025.ticket.tsx

+4-5
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ function TicketPurchase({
139139
const fetcher = useFetcher();
140140
const isSubmitting = fetcher.state !== "idle";
141141

142-
const disabled = isSoldOut || isSubmitting;
143-
144142
return (
145143
<div className="z-10 flex w-[90%] flex-col items-center gap-3">
146144
<fetcher.Form
@@ -162,7 +160,7 @@ function TicketPurchase({
162160
className="size-6 text-white/30 transition-colors hover:text-white disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:text-white/30 md:size-8"
163161
aria-label="Decrease quantity"
164162
onClick={() => setQuantity(Math.max(1, quantity - 1))}
165-
disabled={quantity <= 1 || disabled}
163+
disabled={quantity <= 1 || isSoldOut}
166164
>
167165
<svg aria-hidden viewBox="0 0 24 24">
168166
<use href={`${iconsHref}#circle-minus`} />
@@ -183,7 +181,7 @@ function TicketPurchase({
183181
className="size-6 text-white/30 transition-colors hover:text-white disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:text-white/30 md:size-8"
184182
aria-label="Increase quantity"
185183
onClick={() => setQuantity(quantity + 1)}
186-
disabled={quantity >= maxQuantity || disabled}
184+
disabled={quantity >= maxQuantity || isSoldOut}
187185
>
188186
<svg aria-hidden viewBox="0 0 24 24">
189187
<use href={`${iconsHref}#circle-plus`} />
@@ -193,7 +191,8 @@ function TicketPurchase({
193191
</div>
194192
<JamButton
195193
type="submit"
196-
disabled={disabled}
194+
disabled={isSoldOut}
195+
active={isSubmitting}
197196
className="w-full md:w-auto"
198197
>
199198
{isSoldOut ? "Sold Out" : isSubmitting ? "Processing..." : "Checkout"}

app/routes/jam/pages/layout.tsx

+7-17
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,13 @@ function Background({ children }: { children: React.ReactNode }) {
172172
);
173173
}
174174

175+
const socialClassName = "size-6 transition-colors hover:text-white md:size-8";
176+
175177
function Footer({ className }: { className?: string }) {
176178
return (
177179
<footer
178180
className={clsx(
179-
"flex flex-col items-center gap-2 py-[160px] text-center font-conf-mono text-sm text-gray-400 md:text-base",
181+
"flex flex-col items-center gap-2 py-[160px] text-center font-conf-mono text-xs text-gray-400 md:text-base",
180182
className,
181183
)}
182184
>
@@ -193,43 +195,31 @@ function Footer({ className }: { className?: string }) {
193195
target="_blank"
194196
rel="noopener noreferrer"
195197
>
196-
<GitHub
197-
className="size-8 transition-colors hover:text-white"
198-
aria-hidden
199-
/>
198+
<GitHub className={socialClassName} aria-hidden />
200199
</a>
201200
<a
202201
href="https://twitter.com/remix_run"
203202
aria-label="Twitter"
204203
target="_blank"
205204
rel="noopener noreferrer"
206205
>
207-
<Twitter
208-
className="size-8 transition-colors hover:text-white"
209-
aria-hidden
210-
/>
206+
<Twitter className={socialClassName} aria-hidden />
211207
</a>
212208
<a
213209
href="https://youtube.com/remix_run"
214210
aria-label="YouTube"
215211
target="_blank"
216212
rel="noopener noreferrer"
217213
>
218-
<YouTube
219-
className="size-8 transition-colors hover:text-white"
220-
aria-hidden
221-
/>
214+
<YouTube className={socialClassName} aria-hidden />
222215
</a>
223216
<a
224217
href="https://rmx.as/discord"
225218
aria-label="Discord"
226219
target="_blank"
227220
rel="noopener noreferrer"
228221
>
229-
<Discord
230-
className="size-8 transition-colors hover:text-white"
231-
aria-hidden
232-
/>
222+
<Discord className={socialClassName} aria-hidden />
233223
</a>
234224
</div>
235225
<div className="flex flex-col items-center gap-2 uppercase leading-loose">

app/routes/jam/text.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import clsx from "clsx";
99
export function Title({ children }: { children: React.ReactNode }) {
1010
return (
1111
<h1
12-
className="flex flex-col gap-2 text-[2.75rem] font-extrabold uppercase leading-none tracking-tight text-white md:text-8xl md:leading-none"
12+
className="flex flex-col gap-2 text-[2.5rem] font-extrabold uppercase leading-none tracking-tight text-white md:text-8xl md:leading-none"
1313
role="banner"
1414
>
1515
{children}

app/routes/jam/utils.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Link, type LinkProps } from "react-router";
77
import { ButtonHTMLAttributes } from "react";
88

99
const jamStyles =
10-
"flex items-center justify-center gap-2 rounded-full bg-white px-4 py-3 text-sm font-semibold text-black transition-colors duration-300 hover:bg-blue-brand hover:text-white md:px-6 md:py-4 md:text-xl";
10+
"min-w-fit flex items-center justify-center gap-2 rounded-full px-4 py-3 text-sm font-semibold transition-colors duration-300 hover:bg-blue-brand hover:text-white md:px-6 md:py-4 md:text-xl";
1111

1212
export function usePrefersReducedMotion() {
1313
const [prefersReducedMotion, setPrefersReducedMotion] = useState(false);
@@ -57,13 +57,15 @@ export function JamButton({
5757
className,
5858
children,
5959
disabled,
60+
active,
6061
...props
61-
}: ButtonHTMLAttributes<HTMLButtonElement>) {
62+
}: ButtonHTMLAttributes<HTMLButtonElement> & { active?: boolean }) {
6263
return (
6364
<button
6465
className={clsx(
6566
jamStyles,
6667
"disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-white disabled:hover:text-black",
68+
active ? "bg-blue-brand text-white" : "bg-white text-black",
6769
className,
6870
)}
6971
disabled={disabled}

0 commit comments

Comments
 (0)