-
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.
feat: create intro page with header, missingSection, and tradewithsup…
…erpowerSection
- Loading branch information
Showing
19 changed files
with
161 additions
and
26 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
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,8 +1,14 @@ | ||
import Header from "@/components/Header"; | ||
import NavBars from "@/components/NavBars"; | ||
import { Outlet } from "react-router-dom"; | ||
|
||
export default function App() { | ||
return ( | ||
<Header /> | ||
<> | ||
<NavBars /> | ||
<div className="pt-20" > | ||
<Outlet /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default function Footer() { | ||
return ( | ||
<div>Footer</div> | ||
) | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
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,5 +1,5 @@ | ||
export default function Logo({ className = "" }: { className?: string }) { | ||
return ( | ||
<img className={`w-7 h-7 ${className}`} src="/syncswap-logo.svg" alt="Sync Swap Logo" /> | ||
<img className={`w-7 h-7 ${className}`} src="/images/syncswap-logo.svg" alt="Sync Swap Logo" /> | ||
) | ||
} |
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
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,6 @@ | ||
export default function BuiltWithTheBestSection() { | ||
return ( | ||
<div>BuiltWithTheBestSection</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default function CommunityOwnershipSection() { | ||
return ( | ||
<div>CommunityOwnershipSection</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export interface FeatureArticleProps { | ||
name: string; | ||
description: string; | ||
} | ||
|
||
export default function FeatureArticle({ name, description }: FeatureArticleProps) { | ||
return ( | ||
<article className="bg-white p-6 text-left rounded-lg grid gap-y-4 hover:bg-gray-100"> | ||
<h3 className="text-xl font-semibold">{name}</h3> | ||
<p className="text-gray-500 text-[15px]">{description}</p> | ||
</article> | ||
) | ||
} | ||
|
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,14 @@ | ||
export default function Header() { | ||
return ( | ||
<header className="h-screen md:pt-24 flex flex-col-reverse justify-end items-center md:block"> | ||
<article className='md:ml-[12.50%] flex flex-col gap-y-8 font-semibold text-left px-5 md:px-0'> | ||
<h1 className='mx-auto md:mx-0 text-center md:text-left text-[40px] max-w-[500px] xl:text-5xl xl:w-[700px] leading-[1.2] font-Public'>Seamless and Efficient Trading on | ||
<span className="bg-zKTextGradient text-transparent bg-clip-text"> zk Rollups</span> | ||
</h1> | ||
<p className='text-center md:text-left md:w-1/2 text-gray-500 font-medium'>SyncSwap brings more people easy-to-use and low-cost DeFi with complete Ethereum security powered by zero-knowledge technology.</p> | ||
</article> | ||
<img className='md:absolute top-14 z-[-1]' src='/images/syncswap-cover-art-min.png' alt='Sync Swap Cover art' /> | ||
</header> | ||
) | ||
} | ||
|
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,26 @@ | ||
import { buttonVariants } from "@/components/ui/button"; | ||
import { MdArrowOutward } from "react-icons/md"; | ||
import { Link } from "react-router-dom"; | ||
|
||
export default function MissionSection() { | ||
return ( | ||
<section className="mb-10 md:mb-80 text-center flex flex-col gap-y-6 relative"> | ||
<h2 className="text-[40px] font-Public font-medium">An Aligned Mission </h2> | ||
<p className="mx-auto text-lg text-gray-500 max-w-[750px]">SyncSwap aligns with the mission of zkSync | ||
to accelerate the mass adoption of crypto for | ||
personal sovereignty.</p> | ||
|
||
<Link className={buttonVariants({ | ||
variant: "outline", | ||
className: "mx-auto max-w-[400px] flex gap-x-3 text-primary bg-transparent text-[16px]", | ||
size: "xl" | ||
})} to="https://matterlabs.notion.site/Why-zkSync-On-Maximizing-Freedom-6265ef48c6af490f83926e907d959035" > | ||
Learn | ||
<MdArrowOutward /> | ||
</Link> | ||
|
||
<img className="absolute top-44 md:top-24 max-w-[85%] left-0 right-0 md:mx-auto z-[-1]" src="/images/curve.png" alt="Curve" /> | ||
</section> | ||
) | ||
} | ||
|
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,26 @@ | ||
import FeatureArticle from "@/pages/intro/components/FeatureArticle"; | ||
|
||
export default function TradeWithSuperpowerSection() { | ||
return ( | ||
<section className="text-center py-10"> | ||
<p className="text-lg font-medium leading-[1.2]"> Your DeFi Hub on Ethereum zk Rollups </p> | ||
<h2 className="text-[40px] font-medium font-Public my-2"> Trade with Superpowers </h2> | ||
|
||
<div className="grid grid-cols-1 md:grid-cols-3 gap-4 mt-10 max-w-[950px] mx-auto"> | ||
<FeatureArticle | ||
name="Complete Security" | ||
description=" Stay the same security as Ethereum mainnet " | ||
/> | ||
<FeatureArticle | ||
name=" Seamless UX " | ||
description=" Enjoy up to 100x scaling with lower gas costs " | ||
/> | ||
<FeatureArticle | ||
name=" Efficient Trades " | ||
description=" Next generation multi-pool enables higher capital efficiency " | ||
/> | ||
</div> | ||
</section> | ||
) | ||
} | ||
|
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,24 @@ | ||
import Header from '@/pages/intro/components/Header'; | ||
import MissionSection from '@/pages/intro/components/MissionSection'; | ||
import TradeWithSuperpowerSection from '@/pages/intro/components/TradeWithSuperpowerSection'; | ||
import CommunityOwnershipSection from '@/pages/intro/components/CommunityOwnershipSection'; | ||
import BuiltWithTheBestSection from "@/pages/intro/components/BuiltWithTheBestSection"; | ||
import Footer from "@/components/Footer"; | ||
|
||
export default function Intro() { | ||
return ( | ||
<> | ||
<Header /> | ||
<main className="md:mt-10 mx-3 md:px-5 md:px-0"> | ||
|
||
<MissionSection /> | ||
<TradeWithSuperpowerSection /> | ||
<CommunityOwnershipSection /> | ||
<BuiltWithTheBestSection /> | ||
<Footer /> | ||
</main> | ||
|
||
</> | ||
) | ||
} | ||
|
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