Create Top page
This commit is contained in:
@@ -1,54 +1,58 @@
|
||||
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 { button as buttonStyles } from "@nextui-org/react";
|
||||
import { useTranslations } from "next-intl";
|
||||
|
||||
export default function MainTitle() {
|
||||
type Props = {
|
||||
locale: string;
|
||||
};
|
||||
|
||||
export default function MainTitle({ locale }: Props) {
|
||||
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>
|
||||
<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>
|
||||
<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>
|
||||
<Button color="primary" radius="full">
|
||||
<Link href={`/projects/`} locale={locale}>
|
||||
{t("get_started")}
|
||||
</Link>
|
||||
</Button>
|
||||
|
||||
<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>
|
||||
<Button color="primary" radius="full" className="ms-3">
|
||||
<Link href={`/projects/`} locale={locale}>
|
||||
GitHub
|
||||
</Link>
|
||||
<NextUiLink
|
||||
isExternal
|
||||
href="https://github.com/kimatata/TestCaseManager"
|
||||
aria-label="Github"
|
||||
showAnchorIcon
|
||||
anchorIcon={<ExternalLink size={16} color="#fff" />}
|
||||
></NextUiLink>
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -1,19 +1,17 @@
|
||||
import { useTranslations } from "next-intl";
|
||||
import MainTitle from "./MainTitle";
|
||||
import { title } from "@/components/primitives";
|
||||
import Image from "next/image";
|
||||
import heroImage from "./hero.png";
|
||||
import MainTitle from "./MainTitle";
|
||||
|
||||
export default function Home() {
|
||||
export default function Home(params: { locale: string }) {
|
||||
const t = useTranslations("Index");
|
||||
|
||||
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">
|
||||
<div className="flex flex-wrap">
|
||||
<div className="w-full md:w-7/12 order-last md:order-first p-4">
|
||||
<MainTitle />
|
||||
<MainTitle locale={params.locale} />
|
||||
</div>
|
||||
|
||||
<div className="w-full md:w-5/12 p-4">
|
||||
@@ -49,8 +47,25 @@ export default function Home() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="mt-12">
|
||||
<Image src={heroImage} alt="Hero" />
|
||||
<div
|
||||
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>
|
||||
</section>
|
||||
);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import ProjectsPage from "./ProjectsPage";
|
||||
import { useTranslations } from "next-intl";
|
||||
|
||||
export default function Page(params: { locale }) {
|
||||
export default function Page(params: { locale: string }) {
|
||||
const t = useTranslations("Projects");
|
||||
const messages = {
|
||||
projectList: t("projectList"),
|
||||
|
||||
Reference in New Issue
Block a user