-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update layout and add XatuCallToAction components
- Loading branch information
Showing
11 changed files
with
241 additions
and
178 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,35 @@ | ||
import { ArrowRight, Share2 } from 'lucide-react' | ||
import { Link } from 'react-router-dom' | ||
|
||
interface CallToActionProps { | ||
title: string | ||
description: string | ||
buttonText: string | ||
buttonLink: string | ||
} | ||
|
||
export const CallToAction = ({ title, description, buttonText, buttonLink }: CallToActionProps) => { | ||
return ( | ||
<div className="relative overflow-hidden rounded-xl border border-cyan-400/30 bg-gradient-to-br from-cyan-500/20 via-purple-500/10 to-cyan-500/20 shadow-[0_0_30px_-5px_rgba(6,182,212,0.25)]"> | ||
<div className="absolute inset-0 bg-grid-white/[0.02]" /> | ||
<div className="relative p-6"> | ||
<div className="flex items-center gap-4"> | ||
<div className="h-12 w-12 rounded-xl bg-cyan-400/20 p-2.5 flex items-center justify-center ring-1 ring-cyan-400/30 shadow-[0_0_15px_-3px_rgba(6,182,212,0.4)]"> | ||
<Share2 className="h-6 w-6 text-cyan-300" /> | ||
</div> | ||
<div className="flex-1"> | ||
<h3 className="text-xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-cyan-300 to-purple-400">{title}</h3> | ||
<p className="mt-1 text-base text-gray-200">{description}</p> | ||
</div> | ||
<Link | ||
to={buttonLink} | ||
className="flex-shrink-0 inline-flex items-center px-4 py-2 text-sm font-medium text-white bg-gradient-to-r from-cyan-500/20 to-purple-500/20 hover:from-cyan-500/30 hover:to-purple-500/30 border border-cyan-400/50 rounded-lg transition-all hover:scale-105 shadow-[0_0_15px_-3px_rgba(6,182,212,0.3)]" | ||
> | ||
{buttonText} | ||
<ArrowRight className="ml-2 h-4 w-4" /> | ||
</Link> | ||
</div> | ||
</div> | ||
</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
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,12 @@ | ||
import { CallToAction } from '../CallToAction' | ||
|
||
export const XatuCallToAction = () => { | ||
return ( | ||
<CallToAction | ||
title="Contribute to Xatu" | ||
description="Help improve Ethereum by contributing your node's data to our research. Data is published openly in a privacy-focused manner and used for research and analysis." | ||
buttonText="Contribute" | ||
buttonLink="https://docs.google.com/forms/d/e/1FAIpQLSfSCHLZv2xdDKceQ3ajzYbkm2jkQnG0lVBhjEX4c1Jxvf8QfA/viewform" | ||
/> | ||
) | ||
} |
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.