-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: As a user, I want to see a link to my attestations in the front…
… page jumbotron for quick navigation (#534)
- Loading branch information
1 parent
edcf863
commit d9493e7
Showing
2 changed files
with
27 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,46 @@ | ||
import { t } from "i18next"; | ||
import { ArrowUpRight } from "lucide-react"; | ||
import { ArrowUpRight, ChevronRight } from "lucide-react"; | ||
import { Trans } from "react-i18next"; | ||
|
||
import { Button } from "@/components/Buttons"; | ||
import { EButtonType } from "@/components/Buttons/enum"; | ||
import { Link } from "@/components/Link"; | ||
import { SearchInput } from "@/components/SearchInput"; | ||
import { veraxLink } from "@/constants"; | ||
import { APP_ROUTES } from "@/routes/constants"; | ||
|
||
export const Jumbotron: React.FC = () => { | ||
return ( | ||
<div className="w-full flex flex-col gap-6 relative"> | ||
<p className="self-stretch text-text-primary text-[2rem] font-medium leading-[110%] lg:leading-[3rem] md:text-4xl lg:text-[2.75rem] md:font-semibold dark:text-whiteDefault"> | ||
<div className="flex flex-col gap-6 lg:grid lg:grid-cols-[1fr_min-content] lg:auto-rows-auto"> | ||
<p className="self-stretch text-text-primary text-[2rem] font-medium leading-[110%] lg:leading-[3rem] md:text-4xl lg:text-[2.75rem] md:font-semibold dark:text-whiteDefault lg:col-span-2"> | ||
{t("home.title")} | ||
</p> | ||
<p className="self-stretch text-text-tertiary text-base not-italic font-normal leading-[140%] max-w-[32.5rem]"> | ||
<p className="self-stretch text-text-tertiary text-base not-italic font-normal leading-[140%] max-w-[32.5rem] lg:row-start-2"> | ||
{t("home.description")} | ||
</p> | ||
<div> | ||
<div className="flex flex-col items-start sm:flex-row sm:items-center gap-4"> | ||
<Button | ||
name={t("common.actions.learnMore")} | ||
handler={() => window.open(veraxLink, "_blank")} | ||
buttonType={EButtonType.PRIMARY_LIME} | ||
iconRight={<ArrowUpRight />} | ||
height="h-10" | ||
/> | ||
<p className="text-text-tertiary text-base not-italic font-normal leading-[140%]"> | ||
<Trans i18nKey="home.exploreEcosystem" components={{ bold: <strong /> }} /> | ||
</p> | ||
</div> | ||
<div className="flex flex-col items-start sm:flex-row sm:items-center gap-4 lg:col-start-1 lg:row-start-3"> | ||
<Button | ||
name={t("common.actions.learnMore")} | ||
handler={() => window.open(veraxLink, "_blank")} | ||
buttonType={EButtonType.PRIMARY_LIME} | ||
iconRight={<ArrowUpRight />} | ||
height="h-10" | ||
/> | ||
<p className="text-text-tertiary text-base not-italic font-normal leading-[140%]"> | ||
<Trans i18nKey="home.exploreEcosystem" components={{ bold: <strong /> }} /> | ||
</p> | ||
</div> | ||
<SearchInput | ||
className="pl-2 pr-1 py-2 md:max-w-full lg:absolute lg:w-[30rem] lg:bottom-0 lg:right-0 xl:w-[35.5625rem]" | ||
className="mt-2 pl-2 pr-1 py-2 md:max-w-full lg:w-[30rem] lg:mt-0 lg:col-start-2 lg:row-start-2 xl:w-[35.5625rem] lg:justify-self-end" | ||
height="h-10" | ||
/> | ||
<Link | ||
to={APP_ROUTES.MY_ATTESTATIONS} | ||
className="flex w-fit justify-center items-center gap-2 rounded-md text-text-tertiary text-base not-italic font-semibold lg:row-start-3 lg:justify-self-end transition-opacity hover:underline hover:opacity-80" | ||
> | ||
{t("common.actions.viewMyAttestations")} | ||
<ChevronRight /> | ||
</Link> | ||
</div> | ||
); | ||
}; |