Create Top page

This commit is contained in:
Takeshi Kimata
2024-05-10 23:53:03 +09:00
parent 6d95fc1510
commit 3fb03256c7
5 changed files with 90 additions and 22 deletions

View File

@@ -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": {

View File

@@ -1,6 +1,7 @@
{ {
"Index": { "Index": {
"get_started": "テスト管理を始める", "get_started": "テスト管理を始める",
"oss_tcmt": "オープンソーステストケース管理ツール",
"integrate_and_manage": "ソフトウェア開発にかかわるすべてのテストを統合管理" "integrate_and_manage": "ソフトウェア開発にかかわるすべてのテストを統合管理"
}, },
"Header": { "Header": {

View 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>
);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

View File

@@ -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&nbsp;</h1> // </section>
<h1 className={title()}>Test Case Management Tool&nbsp;</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>
<div className="flex gap-3"> <div className="w-full md:w-5/12 p-4">
<Link <div style={{ position: "relative", textAlign: "center", padding: "1rem" }}>
href="/projects" <span style={{ fontSize: "10rem", position: "relative", zIndex: 1 }}>
className={buttonStyles({
color: "primary", </span>
radius: "full", <div
variant: "shadow", style={{
})} position: "absolute",
> top: 0,
{t("get_started")} left: 0,
</Link> width: "100%",
height: "100%",
filter: "blur(48px)",
zIndex: 0,
background: "linear-gradient(to bottom, #ffecd2, #fcb69f)",
}}
></div>
</div>
</div>
</div>
<div className="mt-12">
<Image src={heroImage} alt="Hero" />
</div> </div>
</section> </section>
); );