Skip to content

Commit

Permalink
feat: complete the Ecosystem page
Browse files Browse the repository at this point in the history
  • Loading branch information
TwilightLogic committed May 11, 2024
1 parent a470365 commit ca2ea45
Show file tree
Hide file tree
Showing 18 changed files with 237 additions and 10 deletions.
37 changes: 29 additions & 8 deletions docs/website/components/index/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
import Link from 'next/link'
import Image from 'next/image'
import brand from '../pages/brand'

interface Card {
title: string
description: string
logo: string
}

interface Brand {
brandLogo: string
brandTitle: string
}

interface IndexProps {
// HERO
heroTitle: string
Expand All @@ -27,6 +33,7 @@ interface IndexProps {
// ECOSYSTEM
ecosystemTitle: string
ecosystemContent: string
ecosystemBrand: Brand[]

// BLOGS
blogsTitle: string
Expand All @@ -46,13 +53,14 @@ export default function Index({
explores,
ecosystemTitle,
ecosystemContent,
ecosystemBrand,
blogsTitle,
blogs,
}: IndexProps) {
return (
<>
{/* HERO */}
<div className="mx-auto px-4 sm:px-6 lg:px-8 pt-60 pb-60">
<div className="flex flex-col items-center justify-center h-[85vh] px-4 sm:px-6 lg:px-8">
{/* <!-- Title --> */}
<div className="mt-5 max-w-3xl text-center mx-auto">
<p className="block font-bold text-gray-800 text-4xl md:text-5xl lg:text-5xl dark:text-gray-200">
Expand Down Expand Up @@ -93,8 +101,8 @@ export default function Index({
</div>

{/* FEATURES */}
<div className="py-16 md:py-32 px-6 md:px-24 bg-[#F5F5F5] flex flex-col md:flex-row items-center justify-center gap-6 md:gap-0">
<div className="px-4 max-w-[854px]">
<div className="py-16 md:py-32 px-4 sm:px-6 lg:px-8 bg-[#F5F5F5] flex flex-col md:flex-row items-center justify-center gap-6 md:gap-0">
<div className="px-4 max-w-[854px] w-full h-full">
<h2 className="text-4xl md:text-6xl font-semibold text-center md:text-start text-[#2E2929]">
{featuresTitle.split(' ').slice(0, -1).join(' ')}{' '}
<span className="text-[#FF914B]">{featuresTitle.split(' ').slice(-1)}</span>
Expand All @@ -118,7 +126,7 @@ export default function Index({
))}
</div>
</div>
<div>
<div className="flex flex-wrap justify-center gap-4 w-full md:w-[580px] md:h-[410px]">
<Image
src="/logo/features/features_logo.svg"
alt="features logo"
Expand All @@ -129,7 +137,7 @@ export default function Index({
</div>

{/* EXPLORE */}
<div className="py-16 md:py-32 px-6 md:px-24 bg-white flex flex-col md:flex-row items-center justify-center gap-6 md:gap-0">
<div className="py-16 md:py-32 px-4 sm:px-6 lg:px-8 bg-white flex flex-col md:flex-row items-center justify-center gap-6 md:gap-0">
<div className="px-4 max-w-[854px] h-full w-full">
<h2 className="text-4xl md:text-6xl font-semibold text-center md:text-start text-[#2E2929]">
{exploreTitle.split(' ').slice(0, -2).join(' ')}{' '}
Expand Down Expand Up @@ -170,11 +178,24 @@ export default function Index({
</div>

{/* ECOSYSTEM */}
<div className="py-20 bg-gray-100">
<div className="container mx-auto px-4 text-center">
<h2 className="text-3xl font-bold text-gray-800">{ecosystemTitle}</h2>
<div className="py-8 md:py-12 px-4 sm:px-6 lg:px-8 flex flex-col items-center justify-center gap-6 md:gap-0 bg-[#F5F5F5] w-full">
<div className="flex flex-col items-center justify-center h-full gap-2">
<h2 className="text-4xl md:text-6xl font-semibold text-center md:text-start text-[#2E2929]">
{ecosystemTitle.split(' ').slice(0, -1).join(' ')}{' '}
<span className="text-[#FF914B]">{ecosystemTitle.split(' ').slice(-1).join(' ')}</span>
</h2>
<p className="text-gray-600 mt-4">{ecosystemContent}</p>
</div>
<div className="flex items-center justify-center w-full mt-2">
<div className="grid grid-cols-2 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4 justify-items-center">
{ecosystemBrand.map((brand) => (
<div className="card bg-white rounded-lg p-4 flex flex-col items-center justify-center border border-b-4 border-black shadow-lg w-52 h-32 gap-2 hover:border-zinc-500 hover:cursor-pointer hover:shadow-xl transition-all">
<Image src={brand.brandLogo} alt={brand.brandTitle} width={60} height={60} />
<p className="text-center text-base font-semibold">{brand.brandTitle}</p>
</div>
))}
</div>
</div>
</div>

{/* BLOGS */}
Expand Down
66 changes: 64 additions & 2 deletions docs/website/pages/index.en-US.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,70 @@ Centric application layer on Bitcoin"
logo: '/logo/explore/explore_4.svg',
},
]}
ecosystemTitle="Explore Our Growing Ecosystem "
ecosystemContent="Ecosystem content here."
ecosystemTitle="Explore Our Growing Ecosystem"
ecosystemContent="All | Wallet | Bridge | Defi | NFT&Gaming | Infrastructrue"
ecosystemBrand={[
{
brandLogo: 'logo/ecosystem/meson_finance_logo.svg',
brandTitle: 'Meson Finance',
},
{
brandLogo: 'logo/ecosystem/supra_logo.svg',
brandTitle: 'Supra',
},
{
brandLogo: 'logo/ecosystem/obelisk_logo.svg',
brandTitle: 'Obelisk',
},
{
brandLogo: 'logo/ecosystem/nervos_logo.svg',
brandTitle: 'Nervos',
},
{
brandLogo: 'logo/ecosystem/block_vision_logo.svg',
brandTitle: 'BlockVision',
},
{
brandLogo: 'logo/ecosystem/aliva_logo.svg',
brandTitle: 'Aliva',
},
{
brandLogo: 'logo/ecosystem/ankr_logo.svg',
brandTitle: 'Ankr',
},
{
brandLogo: 'logo/ecosystem/ez_swap_logo.svg',
brandTitle: 'EzSwap',
},
{
brandLogo: 'logo/ecosystem/wisp_swap_logo.svg',
brandTitle: 'Wisp Swap',
},
{
brandLogo: 'logo/ecosystem/donut_logo.svg',
brandTitle: 'Donut',
},
{
brandLogo: 'logo/ecosystem/okx_wallet_logo.svg',
brandTitle: 'OKX Wallet',
},
{
brandLogo: 'logo/ecosystem/unisat_logo.svg',
brandTitle: 'Unisat',
},
{
brandLogo: 'logo/ecosystem/joyid_logo.svg',
brandTitle: 'JoyID Passkey',
},
{
brandLogo: 'logo/ecosystem/surf_wallet_logo.svg',
brandTitle: 'Surf Wallet',
},
{
brandLogo: 'logo/ecosystem/move_bit_logo.svg',
brandTitle: 'Movebit',
},
]}
blogsTitle="Latest Blogs"
blogs={[
{ title: 'Blog 1', date: '9th Sep,2024', link: '/blog/1' },
Expand Down
9 changes: 9 additions & 0 deletions docs/website/public/logo/ecosystem/aliva_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions docs/website/public/logo/ecosystem/ankr_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ca2ea45

Please sign in to comment.