Create Top page
This commit is contained in:
@@ -2,7 +2,9 @@
|
|||||||
"Index": {
|
"Index": {
|
||||||
"get_started": "Get Started",
|
"get_started": "Get Started",
|
||||||
"oss_tcmt": "Open Source Test Case Management Tool",
|
"oss_tcmt": "Open Source Test Case Management Tool",
|
||||||
"integrate_and_manage": "Integrate and manage all your software testing."
|
"integrate_and_manage": "Integrate and manage all your software testing.",
|
||||||
|
"features": "Features",
|
||||||
|
"demo_screen": "Demo Screen"
|
||||||
},
|
},
|
||||||
"Header": {
|
"Header": {
|
||||||
"title": "Open Source Test Case Management Tool",
|
"title": "Open Source Test Case Management Tool",
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
"Index": {
|
"Index": {
|
||||||
"get_started": "テスト管理を始める",
|
"get_started": "テスト管理を始める",
|
||||||
"oss_tcmt": "オープンソーステストケース管理ツール",
|
"oss_tcmt": "オープンソーステストケース管理ツール",
|
||||||
"integrate_and_manage": "ソフトウェア開発にかかわるすべてのテストを統合管理"
|
"integrate_and_manage": "ソフトウェア開発にかかわるすべてのテストを統合管理",
|
||||||
|
"features": "機能",
|
||||||
|
"demo_screen": "デモ画面"
|
||||||
},
|
},
|
||||||
"Header": {
|
"Header": {
|
||||||
"title": "オープンソーステストケース管理ツール",
|
"title": "オープンソーステストケース管理ツール",
|
||||||
|
|||||||
@@ -1,54 +1,58 @@
|
|||||||
import { title, subtitle } from "@/components/primitives";
|
import { title, subtitle } from "@/components/primitives";
|
||||||
|
import { Button, Link as NextUiLink } from "@nextui-org/react";
|
||||||
|
import { ExternalLink } from "lucide-react";
|
||||||
import { Link } from "@/src/navigation";
|
import { Link } from "@/src/navigation";
|
||||||
import { button as buttonStyles } from "@nextui-org/react";
|
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
|
|
||||||
export default function MainTitle() {
|
type Props = {
|
||||||
|
locale: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function MainTitle({ locale }: Props) {
|
||||||
const t = useTranslations("Index");
|
const t = useTranslations("Index");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="md:text-left text-center">
|
<div className="md:text-left text-center">
|
||||||
<h1 className={title({ color: "green", class: "lg:text-7xl md:text-7xl sm:text-7xl text-7xl" })}>TestPlat</h1>
|
<h1
|
||||||
|
className={title({
|
||||||
|
color: "green",
|
||||||
|
class: "lg:text-7xl md:text-7xl sm:text-7xl text-7xl",
|
||||||
|
})}
|
||||||
|
>
|
||||||
|
TestPlat
|
||||||
|
</h1>
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<h1 className={title({ class: "lg:text-5xl md:text-5xl sm:text-5xl text-5xl" })}>{t("oss_tcmt")} </h1>
|
<h1
|
||||||
|
className={title({
|
||||||
|
class: "lg:text-5xl md:text-5xl sm:text-5xl text-5xl",
|
||||||
|
})}
|
||||||
|
>
|
||||||
|
{t("oss_tcmt")}
|
||||||
|
</h1>
|
||||||
<h4 className={subtitle({ class: "mt-4" })}>
|
<h4 className={subtitle({ class: "mt-4" })}>
|
||||||
{t("integrate_and_manage")}
|
{t("integrate_and_manage")}
|
||||||
</h4>
|
</h4>
|
||||||
|
|
||||||
<div className="mt-5">
|
<div className="mt-5">
|
||||||
<Link
|
<Button color="primary" radius="full">
|
||||||
href="/projects"
|
<Link href={`/projects/`} locale={locale}>
|
||||||
className={buttonStyles({
|
{t("get_started")}
|
||||||
color: "primary",
|
</Link>
|
||||||
radius: "full",
|
</Button>
|
||||||
variant: "shadow",
|
|
||||||
})}
|
|
||||||
>
|
|
||||||
{t("get_started")}
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
<Link
|
<Button color="primary" radius="full" className="ms-3">
|
||||||
href="/projects"
|
<Link href={`/projects/`} locale={locale}>
|
||||||
className={buttonStyles({
|
GitHub
|
||||||
color: "primary",
|
</Link>
|
||||||
radius: "full",
|
<NextUiLink
|
||||||
variant: "shadow",
|
isExternal
|
||||||
})}
|
href="https://github.com/kimatata/TestCaseManager"
|
||||||
>
|
aria-label="Github"
|
||||||
Features
|
showAnchorIcon
|
||||||
</Link>
|
anchorIcon={<ExternalLink size={16} color="#fff" />}
|
||||||
|
></NextUiLink>
|
||||||
<Link
|
</Button>
|
||||||
href="/projects"
|
|
||||||
className={buttonStyles({
|
|
||||||
color: "primary",
|
|
||||||
radius: "full",
|
|
||||||
variant: "shadow",
|
|
||||||
})}
|
|
||||||
>
|
|
||||||
View on GitHub
|
|
||||||
</Link>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,19 +1,17 @@
|
|||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
import MainTitle from "./MainTitle";
|
import { title } from "@/components/primitives";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import heroImage from "./hero.png";
|
import heroImage from "./hero.png";
|
||||||
|
import MainTitle from "./MainTitle";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home(params: { locale: string }) {
|
||||||
const t = useTranslations("Index");
|
const t = useTranslations("Index");
|
||||||
|
|
||||||
return (
|
return (
|
||||||
// <section className="flex flex-col items-center justify-center gap-4 py-8 md:py-10">
|
|
||||||
// <MainTitle />
|
|
||||||
// </section>
|
|
||||||
<section className="mx-auto max-w-screen-lg my-12">
|
<section className="mx-auto max-w-screen-lg my-12">
|
||||||
<div className="flex flex-wrap">
|
<div className="flex flex-wrap">
|
||||||
<div className="w-full md:w-7/12 order-last md:order-first p-4">
|
<div className="w-full md:w-7/12 order-last md:order-first p-4">
|
||||||
<MainTitle />
|
<MainTitle locale={params.locale} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="w-full md:w-5/12 p-4">
|
<div className="w-full md:w-5/12 p-4">
|
||||||
@@ -49,8 +47,25 @@ export default function Home() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mt-12">
|
<div
|
||||||
<Image src={heroImage} alt="Hero" />
|
className="flex flex-wrap"
|
||||||
|
style={{
|
||||||
|
marginTop: "10rem",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<h2 className={title()}>{t("features")}</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
className="flex flex-wrap"
|
||||||
|
style={{
|
||||||
|
marginTop: "10rem",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<h2 className={title()}>{t("demo_screen")}</h2>
|
||||||
|
<div className="mt-12">
|
||||||
|
<Image src={heroImage} alt="Hero" />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import ProjectsPage from "./ProjectsPage";
|
import ProjectsPage from "./ProjectsPage";
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
|
|
||||||
export default function Page(params: { locale }) {
|
export default function Page(params: { locale: string }) {
|
||||||
const t = useTranslations("Projects");
|
const t = useTranslations("Projects");
|
||||||
const messages = {
|
const messages = {
|
||||||
projectList: t("projectList"),
|
projectList: t("projectList"),
|
||||||
|
|||||||
Reference in New Issue
Block a user