Create Top page
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"Index": {
|
"Index": {
|
||||||
"get_started": "Get Started",
|
"get_started": "Get Started",
|
||||||
|
"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."
|
||||||
},
|
},
|
||||||
"Header": {
|
"Header": {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"Index": {
|
"Index": {
|
||||||
"get_started": "テスト管理を始める",
|
"get_started": "テスト管理を始める",
|
||||||
|
"oss_tcmt": "オープンソーステストケース管理ツール",
|
||||||
"integrate_and_manage": "ソフトウェア開発にかかわるすべてのテストを統合管理"
|
"integrate_and_manage": "ソフトウェア開発にかかわるすべてのテストを統合管理"
|
||||||
},
|
},
|
||||||
"Header": {
|
"Header": {
|
||||||
|
|||||||
55
frontend/src/app/[locale]/MainTitle.tsx
Normal file
55
frontend/src/app/[locale]/MainTitle.tsx
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
import { title, subtitle } from "@/components/primitives";
|
||||||
|
import { Link } from "@/src/navigation";
|
||||||
|
import { button as buttonStyles } from "@nextui-org/react";
|
||||||
|
import { useTranslations } from "next-intl";
|
||||||
|
|
||||||
|
export default function MainTitle() {
|
||||||
|
const t = useTranslations("Index");
|
||||||
|
|
||||||
|
return (
|
||||||
|
<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>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
<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" })}>
|
||||||
|
{t("integrate_and_manage")}
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
<div className="mt-5">
|
||||||
|
<Link
|
||||||
|
href="/projects"
|
||||||
|
className={buttonStyles({
|
||||||
|
color: "primary",
|
||||||
|
radius: "full",
|
||||||
|
variant: "shadow",
|
||||||
|
})}
|
||||||
|
>
|
||||||
|
{t("get_started")}
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
<Link
|
||||||
|
href="/projects"
|
||||||
|
className={buttonStyles({
|
||||||
|
color: "primary",
|
||||||
|
radius: "full",
|
||||||
|
variant: "shadow",
|
||||||
|
})}
|
||||||
|
>
|
||||||
|
Features
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
<Link
|
||||||
|
href="/projects"
|
||||||
|
className={buttonStyles({
|
||||||
|
color: "primary",
|
||||||
|
radius: "full",
|
||||||
|
variant: "shadow",
|
||||||
|
})}
|
||||||
|
>
|
||||||
|
View on GitHub
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
BIN
frontend/src/app/[locale]/hero.png
Normal file
BIN
frontend/src/app/[locale]/hero.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 156 KiB |
@@ -1,33 +1,44 @@
|
|||||||
import { button as buttonStyles } from "@nextui-org/react";
|
|
||||||
import { title, subtitle } from "@/components/primitives";
|
|
||||||
import { useTranslations } from "next-intl";
|
import { useTranslations } from "next-intl";
|
||||||
import { Link } from "@/src/navigation";
|
import MainTitle from "./MainTitle";
|
||||||
|
import Image from "next/image";
|
||||||
|
import heroImage from "./hero.png";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
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">
|
// <section className="flex flex-col items-center justify-center gap-4 py-8 md:py-10">
|
||||||
<div className="inline-block max-w-lg text-center justify-center">
|
// <MainTitle />
|
||||||
<h1 className={title({ color: "pink" })}>Open Source </h1>
|
// </section>
|
||||||
<h1 className={title()}>Test Case Management Tool </h1>
|
<section className="mx-auto max-w-screen-lg my-12">
|
||||||
<br />
|
<div className="flex flex-wrap">
|
||||||
<h2 className={subtitle({ class: "text-inherit mt-4" })}>
|
<div className="w-full md:w-7/12 order-last md:order-first p-4">
|
||||||
{t("integrate_and_manage")}
|
<MainTitle />
|
||||||
</h2>
|
</div>
|
||||||
|
|
||||||
|
<div className="w-full md:w-5/12 p-4">
|
||||||
|
<div style={{ position: "relative", textAlign: "center", padding: "1rem" }}>
|
||||||
|
<span style={{ fontSize: "10rem", position: "relative", zIndex: 1 }}>
|
||||||
|
⚗️
|
||||||
|
</span>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
position: "absolute",
|
||||||
|
top: 0,
|
||||||
|
left: 0,
|
||||||
|
width: "100%",
|
||||||
|
height: "100%",
|
||||||
|
filter: "blur(48px)",
|
||||||
|
zIndex: 0,
|
||||||
|
background: "linear-gradient(to bottom, #ffecd2, #fcb69f)",
|
||||||
|
}}
|
||||||
|
></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex gap-3">
|
<div className="mt-12">
|
||||||
<Link
|
<Image src={heroImage} alt="Hero" />
|
||||||
href="/projects"
|
|
||||||
className={buttonStyles({
|
|
||||||
color: "primary",
|
|
||||||
radius: "full",
|
|
||||||
variant: "shadow",
|
|
||||||
})}
|
|
||||||
>
|
|
||||||
{t("get_started")}
|
|
||||||
</Link>
|
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user