diff --git a/src/app/page.tsx b/src/app/page.tsx
index 043e1cf..63cb73c 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -1,9 +1,22 @@
import { ImageConverter } from "@/components/image-converter";
+import { changelogData } from "@/lib/changelog-data";
import Link from "next/link";
export default function Home() {
+ const latestVersion = changelogData[0]?.version;
+
return (
+ {latestVersion && (
+
+ )}
@@ -15,11 +28,6 @@ export default function Home() {
-
);
}
\ No newline at end of file
diff --git a/src/components/changelog.tsx b/src/components/changelog.tsx
index 0acd015..3de260e 100644
--- a/src/components/changelog.tsx
+++ b/src/components/changelog.tsx
@@ -3,34 +3,7 @@
import { Badge } from "@/components/ui/badge";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { cn } from "@/lib/utils";
-
-const changelogData = [
- {
- version: "1.2.0",
- date: "July 26, 2024",
- changes: [
- { type: "New", text: "Added a changelog page to track updates and new features." },
- { type: "Improved", text: "Implemented 'auto' dimensioning for batch processing. When one dimension (width or height) is set, the other is calculated automatically for each image to maintain its aspect ratio." },
- { type: "Fixed", text: "Enabled the 'Reset' and 'Apply' buttons to be used even when no images are uploaded." },
- ],
- },
- {
- version: "1.1.0",
- date: "July 25, 2024",
- changes: [
- { type: "Improved", text: "Aspect ratio is now automatically detected from the first uploaded image and can be locked." },
- { type: "Fixed", text: "Corrected an issue where swapping dimensions would not update the aspect ratio to 'Custom'."}
- ],
- },
- {
- version: "1.0.0",
- date: "July 24, 2024",
- changes: [
- { type: "New", text: "Initial release of the Image Web Exporter." },
- { type: "New", text: "Features include image uploading, format conversion (PNG, JPEG, WEBP), resizing, quality adjustment, and filename customization." },
- ],
- },
-];
+import { changelogData } from "@/lib/changelog-data";
export function Changelog() {
return (
diff --git a/src/lib/changelog-data.ts b/src/lib/changelog-data.ts
new file mode 100644
index 0000000..2f0fb96
--- /dev/null
+++ b/src/lib/changelog-data.ts
@@ -0,0 +1,27 @@
+export const changelogData = [
+ {
+ version: "1.2.0",
+ date: "July 26, 2024",
+ changes: [
+ { type: "New", text: "Added a changelog page to track updates and new features." },
+ { type: "Improved", text: "Implemented 'auto' dimensioning for batch processing. When one dimension (width or height) is set, the other is calculated automatically for each image to maintain its aspect ratio." },
+ { type: "Fixed", text: "Enabled the 'Reset' and 'Apply' buttons to be used even when no images are uploaded." },
+ ],
+ },
+ {
+ version: "1.1.0",
+ date: "July 25, 2024",
+ changes: [
+ { type: "Improved", text: "Aspect ratio is now automatically detected from the first uploaded image and can be locked." },
+ { type: "Fixed", text: "Corrected an issue where swapping dimensions would not update the aspect ratio to 'Custom'."}
+ ],
+ },
+ {
+ version: "1.0.0",
+ date: "July 24, 2024",
+ changes: [
+ { type: "New", text: "Initial release of the Image Web Exporter." },
+ { type: "New", text: "Features include image uploading, format conversion (PNG, JPEG, WEBP), resizing, quality adjustment, and filename customization." },
+ ],
+ },
+];
\ No newline at end of file