-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(home): hero section #7
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
88d3a77
feat: partners carousel
dohaki b280395
fixup
dohaki d13627d
feat(home): hero section
dohaki e105d81
refactor: cleaner file structure
dohaki 8492292
fix: formatting
dohaki 17dcd1e
fixup
dohaki 16830da
fixup
dohaki d8398a9
feat: add reusable text component
dohaki f0793ad
rename carousel to ticker
dohaki 6ff0e0e
fix: format
dohaki 92d93d0
Merge remote-tracking branch 'origin/partners-carousel' into home-her…
dohaki 1061ad8
Merge branch 'master' into home-hero-section
dohaki 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 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 Image from "next/image"; | ||
|
||
import { Hero } from "../../_components/hero"; | ||
import { Text } from "../../_components/text"; | ||
import { ArrowRightIcon } from "../../_components/icons/arrow-right"; | ||
import landingHeroSrc from "../../_assets/landing-1.png"; | ||
import { INFORMATION_LINKS } from "../../_constants"; | ||
|
||
export function HeroSection() { | ||
return ( | ||
<Hero> | ||
<div className="container mx-auto flex flex-col items-center gap-16 px-4 pb-16 pt-8 md:flex-row-reverse"> | ||
<div className="flex max-w-80 flex-1 sm:max-w-100 md:max-w-full"> | ||
<Image src={landingHeroSrc} alt="Picture of the author" /> | ||
</div> | ||
<div className="flex flex-1 flex-col gap-6"> | ||
<Text variant="heading-1" className="text-center md:text-left"> | ||
<span className="text-aqua-100">Interoperability</span> | ||
<br /> | ||
<span className="text-light-100">Powered By</span>{" "} | ||
<br className="hidden md:block" /> | ||
<span className="text-aqua-100">Intents</span> | ||
</Text> | ||
<Text variant="body-nums" className="max-w-[433px] text-center md:text-left"> | ||
A new paradigm in cross-chain experiences, seamlessly connecting users with | ||
applications. | ||
</Text> | ||
<a | ||
className="flex cursor-pointer flex-row items-center justify-center gap-2 text-aqua-100 md:justify-start" | ||
href={INFORMATION_LINKS.docs.href} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<Text variant="cap-case">start building</Text> | ||
<div className="flex h-5 w-5 items-center justify-center rounded-full bg-aqua-100"> | ||
<ArrowRightIcon /> | ||
</div> | ||
</a> | ||
</div> | ||
</div> | ||
</Hero> | ||
); | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { SVGProps } from "react"; | ||
|
||
export function ArrowRightIcon(props: SVGProps<SVGSVGElement>) { | ||
return ( | ||
<svg | ||
width="16" | ||
height="16" | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
{...props} | ||
> | ||
<path | ||
d="M3.33203 8H12.6654" | ||
stroke="#2D2E33" | ||
strokeWidth="1.5" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
<path | ||
d="M8 3.33334L12.6667 8.00001L8 12.6667" | ||
stroke="#2D2E33" | ||
strokeWidth="1.5" | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
/> | ||
</svg> | ||
); | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { ComponentProps } from "react"; | ||
import { twMerge } from "tailwind-merge"; | ||
|
||
type TextVariant = | ||
| "cap-case" | ||
| "heading-1" | ||
| "heading-2" | ||
| "heading-3" | ||
| "heading-4" | ||
| "body-nums"; | ||
|
||
type Props = ComponentProps<"div"> & { | ||
variant: TextVariant; | ||
}; | ||
|
||
const textBaseClasses = { | ||
"cap-case": | ||
"text-medium text-xs uppercase lining-nums tabular-nums tracking-wide-4 sm:text-md", | ||
"heading-1": | ||
"text-heading-3 font-lighter lining-nums tabular-nums tracking-tight-5 sm:text-heading-2 md:text-heading-1", | ||
"heading-2": | ||
"text-heading-3 font-lighter lining-nums tabular-nums tracking-tight-5 sm:text-heading-2", | ||
"heading-3": | ||
"text-heading-3 font-lighter lining-nums tabular-nums tracking-tight-5 sm:text-heading-3", | ||
"heading-4": | ||
"text-heading-4 font-lighter lining-nums tabular-nums tracking-tight-5 sm:text-heading-4", | ||
"body-nums": "text-md lining-nums tabular-nums sm:text-lg", | ||
}; | ||
|
||
export function Text({ variant, className, children, ...props }: Props) { | ||
return ( | ||
<div className={twMerge(textBaseClasses[variant], className)} {...props}> | ||
{children} | ||
</div> | ||
); | ||
} |
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OOC why was the
@/
changed?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the path is shorter