Skip to content

Commit ac4590d

Browse files
committed
small styling thing
1 parent 837a219 commit ac4590d

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

src/app/games/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import GamesClient from "./client";
33

44
export default function Games() {
55
return (
6-
<Suspense fallback={<p>Loading...</p>}>
6+
<Suspense fallback={<p className="text-center">Loading...</p>}>
77
<GamesClient />
88
</Suspense>
99
);

src/app/globals.css

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
:root {
44
--background: #ffffff;
5+
--background-2: #b19bba;
56
--foreground: #171717;
67
--primary: #768fe4;
78
--secondary: transparent;
89
}
910

1011
@theme inline {
1112
--color-background: var(--background);
13+
--color-background2: var(--background-2);
1214
--color-foreground: var(--foreground);
1315
--color-primary: var(--primary);
1416
--color-secondary: var(--secondary);
@@ -23,19 +25,39 @@
2325
@media (prefers-color-scheme: dark) {
2426
:root {
2527
--background: #0a0a0a;
28+
--background-2: #3e3641;
2629
--foreground: #ededed;
2730
--primary: #402bca;
2831
}
2932
}
3033

34+
@property --gradient-angle {
35+
syntax: "<angle>";
36+
initial-value: 45deg;
37+
inherits: false;
38+
}
39+
3140
body {
32-
background: var(--background);
41+
min-height: 100vh;
42+
margin: 0;
43+
44+
background: linear-gradient(var(--gradient-angle), var(--background), var(--background-2));
45+
transform: rotateZ(0deg);
46+
animation: rotateInCircle 10s linear infinite;
47+
background-attachment: fixed;
48+
49+
3350
color: var(--foreground);
3451
font-family:
3552
"Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans",
3653
Arial, sans-serif;
3754
}
3855

56+
@keyframes rotateInCircle {
57+
from { --gradient-angle: 0deg; }
58+
to { --gradient-angle: 360deg; }
59+
}
60+
3961
button {
4062
cursor: pointer;
4163
border: 1px solid transparent;

0 commit comments

Comments
 (0)