Skip to content

Commit 0b89a55

Browse files
committed
fix(site): updating and fixing up tailwind v4 issues
1 parent 683668f commit 0b89a55

File tree

6 files changed

+80
-72
lines changed

6 files changed

+80
-72
lines changed

package-lock.json

+23-56
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"devDependencies": {
1111
"@tailwindcss/cli": "^4.0.0-beta.7",
12-
"@tailwindcss/postcss": "^0.0.0-development.1",
12+
"@tailwindcss/postcss": "^4.0.0-beta.7",
1313
"@tailwindcss/typography": "^0.5.15",
1414
"autoprefixer": "^10.4.20",
1515
"concurrently": "^9.1.0",

postcss.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
plugins: {
3+
"@tailwindcss/postcss": {},
4+
},
5+
};
+46-10
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,76 @@
1-
@import "tailwindcss/preflight";
2-
@import "tailwindcss/utilities";
1+
@import "tailwindcss";
2+
@plugin "@tailwindcss/typography";
3+
4+
@theme {
5+
--color-aurelia: #ed2b88;
6+
--color-aurelia-light: #ff4da1;
7+
--color-aurelia-blue: #003f8c;
8+
--color-aurelia-blue-light: #0066cc;
9+
10+
--animation-float-slow: float 8s ease-in-out infinite;
11+
--animation-float-delayed: float 6s ease-in-out infinite 2s;
12+
--animation-grid: grid 20s linear infinite;
13+
--animation-pulse: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
14+
--animation-pulse-slow: pulse 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
15+
--animation-pulse-slower: pulse 12s cubic-bezier(0.4, 0, 0.6, 1) infinite;
16+
--animation-pulse-delayed: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite 2s;
17+
}
18+
19+
@layer keyframes {
20+
@keyframes float {
21+
0%,
22+
100% {
23+
transform: translateY(0) rotate(0);
24+
}
25+
50% {
26+
transform: translateY(-20px) rotate(5deg);
27+
}
28+
}
29+
@keyframes grid {
30+
0% {
31+
transform: translateY(0);
32+
}
33+
100% {
34+
transform: translateY(-100%);
35+
}
36+
}
37+
}
338

439
@layer utilities {
540
.animate-float {
641
animation: float 8s ease-in-out infinite;
742
}
8-
943
.animate-float-delayed {
1044
animation: float 8s ease-in-out infinite;
1145
animation-delay: -4s;
1246
}
13-
47+
1448
.animate-gradient-x {
1549
background-size: 200% 100%;
1650
animation: gradient-x 15s ease infinite;
1751
}
18-
52+
1953
.animate-gradient-x-fast {
2054
animation-duration: 8s;
2155
}
22-
56+
2357
@keyframes float {
24-
0%, 100% {
58+
0%,
59+
100% {
2560
transform: translateY(0) scale(1);
2661
}
2762
50% {
2863
transform: translateY(-20px) scale(1.05);
2964
}
3065
}
31-
66+
3267
@keyframes gradient-x {
33-
0%, 100% {
68+
0%,
69+
100% {
3470
background-position: 0% 50%;
3571
}
3672
50% {
3773
background-position: 100% 50%;
3874
}
3975
}
40-
}
76+
}

themes/aurelia-theme/layouts/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
</div>
2828

2929
<!-- Hero Content -->
30-
<div class="relative z-10 flex flex-col lg:flex-row items-center justify-center gap-8 lg:gap-16 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
30+
<div class="relative z-10 flex flex-col lg:flex-row items-center justify-between gap-8 lg:gap-16 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
3131
<!-- Left Column: Content -->
32-
<div class="text-center lg:text-left max-w-2xl w-full lg:w-auto">
32+
<div class="text-center lg:text-left lg:flex-1 max-w-xl">
3333
<div class="mb-4">
3434
<span class="inline-block px-4 py-1 rounded-full bg-aurelia/10 text-aurelia text-sm font-medium">
3535
<span class="mr-2">🚀</span> v2.0 Now Available
@@ -88,7 +88,7 @@ <h1 class="text-4xl sm:text-6xl font-bold mb-6">
8888
</div>
8989

9090
<!-- Right Column: Interactive Demo -->
91-
<div class="w-full lg:w-auto max-w-lg">
91+
<div class="lg:flex-1 w-full max-w-xl lg:max-w-md">
9292
<div class="relative">
9393
<!-- Code Preview Tabs -->
9494
<div class="rounded-xl bg-gray-900 p-4 shadow-2xl transform hover:-translate-y-1 transition-transform">

themes/aurelia-theme/layouts/partials/head/css.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{ $css := resources.Get "css/main.css" }}
2-
{{ $styles := $css | css.TailwindCSS }}
2+
{{ $styles := $css | css.PostCSS }}
33

44
{{ if hugo.IsProduction }}
5-
{{ $styles = $styles | minify | fingerprint }}
5+
{{ $styles = $styles | fingerprint }}
66
<link rel="stylesheet" href="{{ $styles.RelPermalink }}" integrity="{{ $styles.Data.Integrity }}">
77
{{ else }}
88
<link rel="stylesheet" href="{{ $styles.RelPermalink }}">

0 commit comments

Comments
 (0)