Skip to content

Commit 940d94e

Browse files
committed
chore: upgrade dependencies
1 parent 967b52d commit 940d94e

File tree

13 files changed

+70
-2800
lines changed

13 files changed

+70
-2800
lines changed

app/globals.css

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,43 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
4-
5-
@layer utilities {
6-
.text-balance {
7-
text-wrap: balance;
1+
@import 'tailwindcss';
2+
3+
@custom-variant dark (&:is(.dark *));
4+
5+
@theme {
6+
--breakpoint-*: initial;
7+
--breakpoint-xs: 440px;
8+
--breakpoint-sm: 640px;
9+
--breakpoint-md: 768px;
10+
--breakpoint-lg: 1024px;
11+
--breakpoint-xl: 1280px;
12+
--breakpoint-2xl: 1536px;
13+
14+
--text-xxs: 0.625rem;
15+
}
16+
17+
/*
18+
The default border color has changed to `currentColor` in Tailwind CSS v4,
19+
so we've added these compatibility styles to make sure everything still
20+
looks the same as it did with Tailwind CSS v3.
21+
22+
If we ever want to remove these styles, we need to add an explicit border
23+
color utility to any element that depends on these defaults.
24+
*/
25+
@layer base {
26+
*,
27+
::after,
28+
::before,
29+
::backdrop,
30+
::file-selector-button {
31+
border-color: var(--color-gray-200, currentColor);
832
}
33+
}
934

10-
.text-shadow {
11-
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
12-
}
35+
@utility text-balance {
36+
text-wrap: balance;
37+
}
38+
39+
@utility text-shadow {
40+
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
1341
}
1442

1543
.title-highlight {
@@ -118,3 +146,7 @@ input[type='checkbox']:focus + .checkbox {
118146
opacity: 20%;
119147
animation: fadeInOut 4s ease-in-out infinite;
120148
}
149+
150+
button {
151+
cursor: pointer;
152+
}

app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default async function Home() {
3030
<Hero />
3131

3232
<div className="text-shadow py-16 lg:my-24">
33-
<h2 className="mx-auto max-w-screen-xs text-center text-2xl font-extrabold md:max-w-none md:text-3xl">
33+
<h2 className="mx-auto max-w-(--breakpoint-xs) text-center text-2xl font-extrabold md:max-w-none md:text-3xl">
3434
Suosituimmat keskustelunaiheet tänään
3535
</h2>
3636

bun.lockb

-7.89 KB
Binary file not shown.

components/BottomFade.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default function BottomFade() {
22
return (
3-
<div className="pointer-events-none fixed bottom-0 left-0 right-0 z-50 h-32 bg-gradient-to-t from-[#070b1e] to-black/0"></div>
3+
<div className="pointer-events-none fixed bottom-0 left-0 right-0 z-50 h-32 bg-linear-to-t from-[#070b1e] to-black/0"></div>
44
);
55
}

components/ChannelGrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const DELAYS = shuffle([0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1
44

55
export default function ChannelGrid({ channels }: { channels: Channel[] }) {
66
return (
7-
<div className="mt-8 grid gap-3 rounded-3xl border-t border-t-pink-100/10 bg-gradient-to-b from-black/10 to-black/0 p-6 backdrop-blur-sm xs:grid-cols-2 sm:grid-cols-3 md:grid-cols-4 md:p-12">
7+
<div className="mt-8 grid gap-3 rounded-3xl border-t border-t-pink-100/10 bg-linear-to-b from-black/10 to-black/0 p-6 backdrop-blur-xs xs:grid-cols-2 sm:grid-cols-3 md:grid-cols-4 md:p-12">
88
{channels.map((channel, i) => (
99
<div key={channel.id} className="relative h-[5.5rem]">
1010
<div

components/FeatureImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function FeatureImage({
1414
return (
1515
<div className="relative rounded-[18px] p-px shadow-2xl">
1616
<div
17-
className="fade-in-out absolute bottom-0 left-0 right-0 top-0 z-0 rounded-[17px] bg-gradient-to-tr from-[#4d094e] to-pink-500/70 p-[2px]"
17+
className="fade-in-out absolute bottom-0 left-0 right-0 top-0 z-0 rounded-[17px] bg-linear-to-tr from-[#4d094e] to-pink-500/70 p-[2px]"
1818
style={{
1919
WebkitMask: 'linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0))',
2020
animationDelay: `${Math.floor(Math.random() * 5) + 1 * 0.5}s`,

components/Form.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ export default function Form() {
9393
</h2>
9494

9595
<div className="mx-auto my-5 max-w-[300px] gap-2 space-y-2 sm:grid sm:max-w-none sm:grid-cols-4 sm:space-y-0">
96-
<div className="col-span-3 flex rounded-[5px] bg-gradient-to-b from-fuchsia-50/30 to-fuchsia-800/50 md:rounded-[9px]">
96+
<div className="col-span-3 flex rounded-[5px] bg-linear-to-b from-fuchsia-50/30 to-fuchsia-800/50 md:rounded-[9px]">
9797
<input
9898
type="email"
9999
name="email"
100100
required
101-
className={`m-px block grow rounded bg-gradient-to-b from-[#0b0b21] to-[#1e092e] px-3 py-2 text-fuchsia-100 placeholder:text-fuchsia-100/25 md:rounded-lg md:px-4 md:py-4 lg:px-5 lg:py-5 lg:text-lg ${isSubmitting ? 'opacity-75' : ''}`}
101+
className={`m-px block grow rounded-sm bg-linear-to-b from-[#0b0b21] to-[#1e092e] px-3 py-2 text-fuchsia-100 placeholder:text-fuchsia-100/25 md:rounded-lg md:px-4 md:py-4 lg:px-5 lg:py-5 lg:text-lg ${isSubmitting ? 'opacity-75' : ''}`}
102102
placeholder="[email protected]"
103103
tabIndex={1}
104104
/>
@@ -107,7 +107,7 @@ export default function Form() {
107107
<button
108108
tabIndex={3}
109109
type="submit"
110-
className="text-shadow bg-button block h-full w-full rounded border border-pink-400 border-b-pink-600 border-t-pink-300 px-3 py-2 font-bold sm:text-base md:rounded-lg md:px-4 md:py-4 lg:px-5 lg:py-5 lg:text-lg"
110+
className="text-shadow bg-button block h-full w-full rounded-sm border border-pink-400 border-b-pink-600 border-t-pink-300 px-3 py-2 font-bold sm:text-base md:rounded-lg md:px-4 md:py-4 lg:px-5 lg:py-5 lg:text-lg"
111111
>
112112
{isSubmitting ? <Spinner /> : 'Liity'}
113113
</button>
@@ -120,10 +120,10 @@ export default function Form() {
120120
type="checkbox"
121121
name="terms"
122122
required
123-
className="h-3 w-3 opacity-5 focus:outline-none"
123+
className="h-3 w-3 opacity-5 focus:outline-hidden"
124124
tabIndex={2}
125125
/>
126-
<div className="checkbox absolute left-0 top-0 flex h-full w-full items-center justify-center rounded border border-white bg-transparent transition-colors">
126+
<div className="checkbox absolute left-0 top-0 flex h-full w-full items-center justify-center rounded-sm border border-white bg-transparent transition-colors">
127127
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" className="h-5 w-5">
128128
<path
129129
fillRule="evenodd"
@@ -159,7 +159,7 @@ export default function Form() {
159159

160160
{message && (
161161
<>
162-
<div className="text-shadow text-balance rounded-2xl border-t border-t-pink-100/10 bg-gradient-to-b from-black/20 to-black/0 p-10 text-center font-mono text-sm backdrop-blur-sm">
162+
<div className="text-shadow text-balance rounded-2xl border-t border-t-pink-100/10 bg-linear-to-b from-black/20 to-black/0 p-10 text-center font-mono text-sm backdrop-blur-xs">
163163
{message}
164164
</div>
165165
{isSuccess && (

components/Spinner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function Spinner() {
66
fill="none"
77
viewBox="0 0 24 24"
88
>
9-
<circle className="opacity-35" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
9+
<circle className="opacity-35" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4"></circle>
1010
<path
1111
fill="currentColor"
1212
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,24 @@
1212
},
1313
"dependencies": {
1414
"lodash.shuffle": "4.2.0",
15-
"next": "15.0.3",
16-
"react": "18.3.1",
17-
"react-confetti": "6.1.0",
18-
"react-dom": "^18"
15+
"next": "15.2.3",
16+
"react": "19.0.0",
17+
"react-confetti": "6.4.0",
18+
"react-dom": "19.0.0"
1919
},
2020
"devDependencies": {
21+
"@tailwindcss/postcss": "4.0.15",
2122
"@types/lodash.shuffle": "4.2.9",
22-
"@types/node": "22.9.0",
23-
"@types/react": "18.3.12",
24-
"@types/react-dom": "18.3.1",
25-
"eslint": "9.15.0",
26-
"eslint-config-next": "15.0.3",
27-
"postcss": "8.4.49",
28-
"prettier": "3.3.3",
29-
"prettier-plugin-tailwindcss": "0.6.8",
30-
"tailwindcss": "3.4.15",
31-
"typescript": "5.6.3"
23+
"@types/node": "22.13.12",
24+
"@types/react": "19.0.12",
25+
"@types/react-dom": "19.0.4",
26+
"eslint": "9.23.0",
27+
"eslint-config-next": "15.2.3",
28+
"postcss": "8.5.3",
29+
"prettier": "3.5.3",
30+
"prettier-plugin-tailwindcss": "0.6.11",
31+
"tailwindcss": "4.0.15",
32+
"typescript": "5.8.2"
3233
},
3334
"prettier": {
3435
"printWidth": 120,

0 commit comments

Comments
 (0)