create-next-pro-cli 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/Page/layout.tsx +11 -0
- package/templates/Page/page-ui.tsx +6 -11
- package/templates/Page/page.tsx +22 -13
package/package.json
CHANGED
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
("");
|
|
1
|
+
("use client");
|
|
2
2
|
import { useTranslations } from "next-intl";
|
|
3
3
|
import BackButton from "@/ui/_global/BackButton";
|
|
4
|
-
import WelcomeCard from "@/ui/dashboard/WelcomeCard";
|
|
5
|
-
import StatsCard from "@/ui/dashboard/StatsCard";
|
|
6
4
|
|
|
7
|
-
export default function
|
|
8
|
-
const t = useTranslations("
|
|
5
|
+
export default function template() {
|
|
6
|
+
const t = useTranslations("template");
|
|
9
7
|
return (
|
|
10
|
-
|
|
8
|
+
<main className="py-8 px-4 max-w-3xl mx-auto">
|
|
11
9
|
<div className="flex items-center justify-between mb-6">
|
|
12
10
|
<h1 className="text-2xl font-bold">{t("title")}</h1>
|
|
13
11
|
<BackButton />
|
|
14
12
|
</div>
|
|
15
13
|
<p className="text-muted mb-8">{t("description")}</p>
|
|
16
|
-
<section className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
17
|
-
|
|
18
|
-
<StatsCard t={t} />
|
|
19
|
-
</section>
|
|
20
|
-
</>
|
|
14
|
+
<section className="grid grid-cols-1 md:grid-cols-2 gap-6"></section>
|
|
15
|
+
</main>
|
|
21
16
|
);
|
|
22
17
|
}
|
package/templates/Page/page.tsx
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useTranslations } from "next-intl";
|
|
3
|
-
import
|
|
3
|
+
import templatePageUI from "@/ui/template/page-ui";
|
|
4
4
|
|
|
5
|
-
export default function
|
|
6
|
-
const t = useTranslations("
|
|
7
|
-
return
|
|
8
|
-
<main className="py-8 px-4 max-w-3xl mx-auto">
|
|
9
|
-
<div className="flex items-center justify-between mb-6">
|
|
10
|
-
<h1 className="text-2xl font-bold">{t("title")}</h1>
|
|
11
|
-
<BackButton />
|
|
12
|
-
</div>
|
|
13
|
-
<p className="text-muted mb-8">{t("description")}</p>
|
|
14
|
-
<section className="grid grid-cols-1 md:grid-cols-2 gap-6"></section>
|
|
15
|
-
</main>
|
|
16
|
-
);
|
|
5
|
+
export default function LoginPage() {
|
|
6
|
+
const t = useTranslations("Login");
|
|
7
|
+
return <templatePageUI />;
|
|
17
8
|
}
|
|
9
|
+
|
|
10
|
+
// "use client";
|
|
11
|
+
// import { useTranslations } from "next-intl";
|
|
12
|
+
// import BackButton from "@/ui/_global/BackButton";
|
|
13
|
+
|
|
14
|
+
// export default function templatePage() {
|
|
15
|
+
// const t = useTranslations("template");
|
|
16
|
+
// return (
|
|
17
|
+
// <main className="py-8 px-4 max-w-3xl mx-auto">
|
|
18
|
+
// <div className="flex items-center justify-between mb-6">
|
|
19
|
+
// <h1 className="text-2xl font-bold">{t("title")}</h1>
|
|
20
|
+
// <BackButton />
|
|
21
|
+
// </div>
|
|
22
|
+
// <p className="text-muted mb-8">{t("description")}</p>
|
|
23
|
+
// <section className="grid grid-cols-1 md:grid-cols-2 gap-6"></section>
|
|
24
|
+
// </main>
|
|
25
|
+
// );
|
|
26
|
+
// }
|
|
18
27
|
// This page is the main entry point for the page
|
|
19
28
|
// It uses the `useTranslations` hook to fetch localized strings
|
|
20
29
|
// The `t` function is used to get the translated strings for the page
|