Skip to content

Commit

Permalink
Merge pull request #1560 from hngprojects/feat/marketing-video
Browse files Browse the repository at this point in the history
chore: added video markerters page
  • Loading branch information
incredible-phoenix246 authored Aug 25, 2024
2 parents 22fa81e + d44acdf commit af7f56f
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 67 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const page = () => {
return <div>page</div>;
};

export default page;
149 changes: 82 additions & 67 deletions src/components/layouts/homepage/HowItWorks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,83 +5,98 @@ import { Easy, Prebuilt, Scalable } from "./svgs";
const HowItWorks = () => {
const t = useTranslations("howItWorks");
return (
<div className="bg-[#ffffff] py-20">
<div className="mx-auto max-w-7xl px-5 md:px-10 lg:px-10 xl:px-10">
<div className="flex flex-col items-center lg:flex-row">
<div className="w-full md:pr-10 lg:w-3/5 lg:pr-20">
<h1 className="font-inter text-3xl font-bold leading-snug md:text-4xl md:leading-tight">
<span className="text-primary">{t("howItWorksTitlePrefix")}</span>{" "}
{t("howItWorksTitleHighlight")}
</h1>
<p className="font-inter mb-12 mt-6 text-lg font-normal">
{t("howItWorksDescription")}
</p>
</div>

<div className="flex w-full flex-col items-end md:items-start lg:w-2/5">
<div className="mb-9 flex space-x-5">
<div>
<Prebuilt />
</div>
<div>
<h3
className="font-inter mb-2 text-lg font-bold md:text-xl"
data-testid="prebuilt"
>
{t("prebuiltTitle")}
</h3>
<small
className="font-inter text-base font-normal"
data-testid="section"
>
{t("prebuiltDescription")}
</small>
</div>
<>
<video
src={
"https://res.cloudinary.com/dif45jmwd/video/upload/v1724572073/aivideo/nofcx7ddauggumuxhb3h.mp4"
}
controls
muted
autoPlay
loop
className="min-w-lg mx-auto my-[50px] w-full max-w-2xl rounded-lg"
style={{ height: "350px" }}
/>
<div className="bg-[#ffffff] py-20">
<div className="mx-auto max-w-7xl px-5 md:px-10 lg:px-10 xl:px-10">
<div className="flex flex-col items-center lg:flex-row">
<div className="w-full md:pr-10 lg:w-3/5 lg:pr-20">
<h1 className="font-inter text-3xl font-bold leading-snug md:text-4xl md:leading-tight">
<span className="text-primary">
{t("howItWorksTitlePrefix")}
</span>{" "}
{t("howItWorksTitleHighlight")}
</h1>
<p className="font-inter mb-12 mt-6 text-lg font-normal">
{t("howItWorksDescription")}
</p>
</div>

<div className="mb-9 flex space-x-5">
<div>
<Scalable />
<div className="flex w-full flex-col items-end md:items-start lg:w-2/5">
<div className="mb-9 flex space-x-5">
<div>
<Prebuilt />
</div>
<div>
<h3
className="font-inter mb-2 text-lg font-bold md:text-xl"
data-testid="prebuilt"
>
{t("prebuiltTitle")}
</h3>
<small
className="font-inter text-base font-normal"
data-testid="section"
>
{t("prebuiltDescription")}
</small>
</div>
</div>
<div>
<h3
className="font-inter mb-2 text-lg font-bold md:text-xl"
data-testid="scalable"
>
{t("scalableTitle")}
</h3>
<small
className="font-inter text-base font-normal"
data-testid="boilerplate"
>
{t("scalableDescription")}
</small>
</div>
</div>

<div className="mb-9 flex space-x-5">
<div>
<Easy />
<div className="mb-9 flex space-x-5">
<div>
<Scalable />
</div>
<div>
<h3
className="font-inter mb-2 text-lg font-bold md:text-xl"
data-testid="scalable"
>
{t("scalableTitle")}
</h3>
<small
className="font-inter text-base font-normal"
data-testid="boilerplate"
>
{t("scalableDescription")}
</small>
</div>
</div>
<div>
<h3
className="font-inter mb-2 text-lg font-bold md:text-xl"
data-testid="easy"
>
{t("easyTitle")}
</h3>
<small
className="font-inter text-base font-normal"
data-testid="tailor"
>
{t("easyDescription")}
</small>

<div className="mb-9 flex space-x-5">
<div>
<Easy />
</div>
<div>
<h3
className="font-inter mb-2 text-lg font-bold md:text-xl"
data-testid="easy"
>
{t("easyTitle")}
</h3>
<small
className="font-inter text-base font-normal"
data-testid="tailor"
>
{t("easyDescription")}
</small>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</>
);
};

Expand Down

0 comments on commit af7f56f

Please sign in to comment.