-
Notifications
You must be signed in to change notification settings - Fork 0
feat: for builders page #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9fdd614
feat: add for builders hero section
kemuru 7e6fea9
fix: make button secondary
kemuru 679b112
Merge branch 'master' into feat(frontend)/for-builders-page
kemuru 228536b
feat: add for builders page
kemuru 5d3812e
Merge branch 'master' into feat(frontend)/for-builders-page
kemuru 80f8f84
refactor(frontend): change name of DAOSection directory
alcercu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import React from "react"; | ||
|
||
import Image from "next/image"; | ||
import Link from "next/link"; | ||
|
||
import LinkArrow from "@/assets/svgs/icons/link-arrow.svg"; | ||
import Button from "@/components/Button"; | ||
import { HeroQueryType } from "@/queries/for-builders/hero"; | ||
|
||
interface IHero { | ||
heroData: HeroQueryType["forBuildersPageHero"]; | ||
} | ||
|
||
const Hero: React.FC<IHero> = ({ heroData }) => { | ||
return ( | ||
<div className="relative pt-32 pb-12 px-6"> | ||
<div className="space-y-6"> | ||
<h1 className="text-3xl w-min">{heroData.title}</h1> | ||
<p className="text-lg">{heroData.subtitle}</p> | ||
<div> | ||
<Link | ||
href={heroData.button.link.url} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Button variant="secondary"> | ||
<span>{heroData.button.text}</span> | ||
</Button> | ||
</Link> | ||
</div> | ||
<div className="block space-x-2"> | ||
{heroData.arrowLink.map((arrowLink) => ( | ||
<Link | ||
key={arrowLink.text} | ||
href={arrowLink.link.url} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<span className="mr-2">{arrowLink.text}</span> | ||
<Image | ||
src={LinkArrow} | ||
width="24" | ||
height="24" | ||
alt="Arrow link image" | ||
className="inline" | ||
/> | ||
</Link> | ||
))} | ||
</div> | ||
</div> | ||
<Image | ||
src={heroData.background.url} | ||
alt="Hero Image Background" | ||
width="1440" | ||
height="835" | ||
className="absolute top-0 h-full object-cover object-left left-0 z-[-1]" | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Hero; |
43 changes: 43 additions & 0 deletions
43
frontend/src/components/ForBuilders/IntegrateSection/GetInTouch.tsx
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import React from "react"; | ||
|
||
import Link from "next/link"; | ||
// import Image from "next/image"; | ||
|
||
import Button from "@/components/Button"; | ||
|
||
import { IntegrateQueryType } from "@/queries/for-builders/integrate"; | ||
|
||
interface IGetInTouch { | ||
integrateData: IntegrateQueryType["forBuildersPageIntegrateSection"]; | ||
} | ||
|
||
const GetInTouch: React.FC<IGetInTouch> = ({ integrateData }) => { | ||
return ( | ||
<> | ||
<div className="flex flex-col items-center justify-center flex-column mt-16"> | ||
<h2 className="text-primary-text text-xl mb-8"> | ||
{integrateData.getInTouchSection.header} | ||
</h2> | ||
<Link | ||
href={integrateData.getInTouchSection.button.link.url} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Button> | ||
<span className="text-background-2"> | ||
{integrateData.getInTouchSection.button.text} | ||
</span> | ||
</Button> | ||
</Link> | ||
alcercu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</div> | ||
{/* <Image | ||
src={integrateData.getInTouchSection.background.url} | ||
alt="Get In Touch Image Background" | ||
width="900" | ||
height="400" | ||
className="absolute z-[0]" | ||
/> */} | ||
</> | ||
); | ||
}; | ||
export default GetInTouch; |
35 changes: 35 additions & 0 deletions
35
frontend/src/components/ForBuilders/IntegrateSection/LearnMore.tsx
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React from "react"; | ||
|
||
import Link from "next/link"; | ||
import Image from "next/image"; | ||
|
||
import LinkArrow from "@/assets/svgs/icons/link-arrow.svg"; | ||
|
||
import { IntegrateQueryType } from "@/queries/for-builders/integrate"; | ||
|
||
interface ILearnMore { | ||
integrateData: IntegrateQueryType["forBuildersPageIntegrateSection"]; | ||
} | ||
|
||
const LearnMore: React.FC<ILearnMore> = ({ integrateData }) => { | ||
return ( | ||
<Link | ||
href={integrateData.arrowLink.link.url} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="block mt-16 text-center" | ||
> | ||
<span className="mr-4 text-lg text-primary-blue"> | ||
{integrateData.arrowLink.text} | ||
</span> | ||
<Image | ||
src={LinkArrow} | ||
width="24" | ||
height="24" | ||
alt="Arrow link image" | ||
className="inline" | ||
/> | ||
</Link> | ||
); | ||
}; | ||
export default LearnMore; |
27 changes: 27 additions & 0 deletions
27
frontend/src/components/ForBuilders/IntegrateSection/index.tsx
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from "react"; | ||
|
||
import AppsDropdownContent from "@/components/Navbar/AppsDropdownContent"; | ||
|
||
import { IntegrateQueryType } from "@/queries/for-builders/integrate"; | ||
import GetInTouch from "./GetInTouch"; | ||
import LearnMore from "./LearnMore"; | ||
|
||
interface IIntegrateSection { | ||
integrateData: IntegrateQueryType["forBuildersPageIntegrateSection"]; | ||
} | ||
|
||
const IntegrateSection: React.FC<IIntegrateSection> = ({ integrateData }) => { | ||
return ( | ||
<div className="bg-background-2 pt-12 pb-16 px-6"> | ||
<h2 className="text-lg text-primary-purple mb-8"> | ||
{integrateData.header} | ||
</h2> | ||
<h1 className="text-2xl text-primary-text mb-8">{integrateData.title}</h1> | ||
<p className="text-lg text-secondary-text">{integrateData.description}</p> | ||
<AppsDropdownContent appsSection={integrateData.appsSection} /> | ||
<GetInTouch {...{ integrateData }} /> | ||
<LearnMore {...{ integrateData }} /> | ||
</div> | ||
); | ||
}; | ||
alcercu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
export default IntegrateSection; |
29 changes: 29 additions & 0 deletions
29
frontend/src/components/ForBuilders/UseCasesSection/DAOSection/Header.tsx
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from "react"; | ||
|
||
import Image from "next/image"; | ||
|
||
import { UseCasesQueryType } from "@/queries/for-builders/use-cases"; | ||
|
||
interface IHeader { | ||
useCasesData: UseCasesQueryType["forBuildersPageUseCasesSection"]; | ||
} | ||
|
||
const Header: React.FC<IHeader> = ({ useCasesData }) => { | ||
return ( | ||
<div className="mb-16"> | ||
<h2 className="text-xl mb-6 text-primary-purple"> | ||
{useCasesData.useCaseTitle} | ||
</h2> | ||
<p className="text-lg mb-12 text-secondary-text"> | ||
{useCasesData.useCaseDescription} | ||
</p> | ||
<Image | ||
src={useCasesData.useCaseBanner.url} | ||
alt="UseCaseBanner mobile" | ||
width="400" | ||
height="835" | ||
/> | ||
</div> | ||
); | ||
}; | ||
alcercu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
export default Header; |
21 changes: 21 additions & 0 deletions
21
frontend/src/components/ForBuilders/UseCasesSection/DAOSection/KeyChallenges/Header.tsx
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from "react"; | ||
|
||
import { UseCasesQueryType } from "@/queries/for-builders/use-cases"; | ||
|
||
interface IHeader { | ||
useCasesData: UseCasesQueryType["forBuildersPageUseCasesSection"]; | ||
} | ||
|
||
const Header: React.FC<IHeader> = ({ useCasesData }) => { | ||
return ( | ||
<div> | ||
<h2 className="text-xl mb-6 text-primary-text"> | ||
{useCasesData.keyChallenges.title} | ||
</h2> | ||
<p className="text-lg mb-12 text-secondary-text"> | ||
{useCasesData.keyChallenges.description} | ||
</p> | ||
alcercu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</div> | ||
); | ||
}; | ||
export default Header; |
64 changes: 64 additions & 0 deletions
64
...src/components/ForBuilders/UseCasesSection/DAOSection/KeyChallenges/HowKlerosSolvesIt.tsx
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import React from "react"; | ||
|
||
import { UseCasesQueryType } from "@/queries/for-builders/use-cases"; | ||
import Card from "@/components/Navbar/AppsDropdownContent/Card"; | ||
import Image from "next/image"; | ||
import clsx from "clsx"; | ||
import Link from "next/link"; | ||
|
||
const hoverEffect = clsx( | ||
"hover:scale-[1.03] transform transition duration-100" | ||
); | ||
|
||
interface IHowKlerosSolvesIt { | ||
useCasesData: UseCasesQueryType["forBuildersPageUseCasesSection"]; | ||
} | ||
|
||
const HowKlerosSolvesIt: React.FC<IHowKlerosSolvesIt> = ({ useCasesData }) => { | ||
return ( | ||
<div> | ||
<h2 className="text-xl mb-6 text-primary-purple"> | ||
{useCasesData.solutionSections.header} | ||
</h2> | ||
<div className="bg-background-2 border border-stroke rounded-2xl p-6"> | ||
<h2 className="text-xl mb-4">{useCasesData.solutionSections.title}</h2> | ||
<div className="text-lg text-secondary-text mb-8"> | ||
{useCasesData.solutionSections.description} | ||
</div> | ||
<div className="text-secondary-text mb-4"> | ||
{useCasesData.solutionSections.solutionHeader} | ||
</div> | ||
<div className="mb-6"> | ||
<Card | ||
key={useCasesData.solutionSections?.solution?.solution_name} | ||
solution={useCasesData.solutionSections.solution} | ||
variant="small" | ||
/> | ||
</div> | ||
alcercu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<div className="text-secondary-text mb-4"> | ||
{useCasesData.solutionSections.partnersHeader} | ||
</div> | ||
<div className="flex flex-row border border-stroke rounded-2xl p-4 gap-x-6"> | ||
{useCasesData.solutionSections.partners.map((partner) => ( | ||
<Link | ||
key={partner?.name} | ||
href={partner?.url} | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
className={clsx(hoverEffect, "cursor-pointer")} | ||
> | ||
<Image | ||
key={partner?.name} | ||
src={partner?.icon_svg?.url} | ||
alt={partner?.name} | ||
width={64} | ||
height={64} | ||
/> | ||
</Link> | ||
))} | ||
alcercu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
export default HowKlerosSolvesIt; |
18 changes: 18 additions & 0 deletions
18
frontend/src/components/ForBuilders/UseCasesSection/DAOSection/KeyChallenges/index.tsx
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
import { UseCasesQueryType } from "@/queries/for-builders/use-cases"; | ||
import Header from "./Header"; | ||
import HowKlerosSolvesIt from "./HowKlerosSolvesIt"; | ||
|
||
interface IKeyChallenges { | ||
useCasesData: UseCasesQueryType["forBuildersPageUseCasesSection"]; | ||
} | ||
|
||
const KeyChallenges: React.FC<IKeyChallenges> = ({ useCasesData }) => { | ||
return ( | ||
<div> | ||
<Header {...{ useCasesData }} /> | ||
<HowKlerosSolvesIt {...{ useCasesData }} /> | ||
</div> | ||
alcercu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
); | ||
}; | ||
export default KeyChallenges; |
33 changes: 33 additions & 0 deletions
33
frontend/src/components/ForBuilders/UseCasesSection/DAOSection/LearnMore.tsx
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from "react"; | ||
|
||
import Link from "next/link"; | ||
import Image from "next/image"; | ||
|
||
import LinkArrow from "@/assets/svgs/icons/link-arrow.svg"; | ||
|
||
import { UseCasesQueryType } from "@/queries/for-builders/use-cases"; | ||
|
||
interface ILearnMore { | ||
useCasesData: UseCasesQueryType["forBuildersPageUseCasesSection"]; | ||
} | ||
|
||
const LearnMore: React.FC<ILearnMore> = ({ useCasesData }) => { | ||
return ( | ||
<Link | ||
href={useCasesData.arrowLink.link.url} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
className="block mt-16 text-center" | ||
> | ||
<span className="mr-4 text-lg text-primary-blue">{useCasesData.arrowLink.text}</span> | ||
<Image | ||
src={LinkArrow} | ||
width="24" | ||
height="24" | ||
alt="Arrow link image" | ||
className="inline" | ||
/> | ||
</Link> | ||
alcercu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
); | ||
}; | ||
export default LearnMore; |
22 changes: 22 additions & 0 deletions
22
frontend/src/components/ForBuilders/UseCasesSection/DAOSection/index.tsx
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from "react"; | ||
|
||
import KeyChallenges from "./KeyChallenges"; | ||
import Header from "./Header"; | ||
import LearnMore from "./LearnMore"; | ||
|
||
import { UseCasesQueryType } from "@/queries/for-builders/use-cases"; | ||
|
||
interface IDAOSection { | ||
useCasesData: UseCasesQueryType["forBuildersPageUseCasesSection"]; | ||
} | ||
|
||
const DAOSection: React.FC<IDAOSection> = ({ useCasesData }) => { | ||
return ( | ||
<div> | ||
<Header {...{ useCasesData }} /> | ||
<KeyChallenges {...{ useCasesData }} /> | ||
<LearnMore {...{ useCasesData }} /> | ||
</div> | ||
alcercu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
); | ||
}; | ||
export default DAOSection; |
26 changes: 26 additions & 0 deletions
26
frontend/src/components/ForBuilders/UseCasesSection/UseCasesCards.tsx
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { UseCasesQueryType } from "@/queries/for-builders/use-cases"; | ||
import React from "react"; | ||
|
||
interface IUseCasesCards { | ||
useCasesData: UseCasesQueryType["forBuildersPageUseCasesSection"]; | ||
} | ||
|
||
const UseCasesCards: React.FC<IUseCasesCards> = ({ useCasesData }) => { | ||
return ( | ||
<div className="flex mb-12 flex-row flex-wrap gap-4"> | ||
{useCasesData.useCases.map((useCase, index) => ( | ||
<div | ||
key={useCase.name} | ||
className={`${ | ||
index === 0 | ||
? "bg-primary-purple text-lg text-white px-8 py-4 rounded-full" | ||
: "border-gradient-purple-blue text-lg text-secondary-text px-8 py-4" | ||
}`} | ||
> | ||
{useCase.name} | ||
</div> | ||
))} | ||
</div> | ||
alcercu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
); | ||
}; | ||
export default UseCasesCards; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.