Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangndm3139 committed Jul 17, 2024
1 parent d575742 commit 2c1cd5d
Show file tree
Hide file tree
Showing 22 changed files with 162 additions and 113 deletions.
Binary file modified public/img_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 78 additions & 46 deletions src/app/ecosystem/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,77 +6,110 @@ import aura_scan from "@/assets/images/ecosystem/aura_scan.png";
import band from "@/assets/images/ecosystem/band.png";
import bingx from "@/assets/images/ecosystem/bingx.png";
import c98 from "@/assets/images/ecosystem/c98.png";
import dev3 from "@/assets/images/ecosystem/dev3.png";
import gate from "@/assets/images/ecosystem/gate.png";
import halotrade from "@/assets/images/ecosystem/halotrade.png";
import horo from "@/assets/images/ecosystem/horo.png";
import nimbus from "@/assets/images/ecosystem/img_nimbus.png";
import keplr from "@/assets/images/ecosystem/keplr.png";
import klever from "@/assets/images/ecosystem/klever.png";
import leap from "@/assets/images/ecosystem/leap.png";
import metamask from "@/assets/images/ecosystem/metamask.png";
import mexc from "@/assets/images/ecosystem/mexc.png";
import micro3 from "@/assets/images/ecosystem/micro3.png";
import monsterra from "@/assets/images/ecosystem/monsterra.png";
import nois from "@/assets/images/ecosystem/nois.png";
import onus from "@/assets/images/ecosystem/onus.png";
import pyxis from "@/assets/images/ecosystem/pyxis.png";
import squid from "@/assets/images/ecosystem/squid.png";
import stakify from "@/assets/images/ecosystem/stakify.png";
import seekhype from "@/assets/images/ecosystem/seekhype.png";
import stakify from "@/assets/images/ecosystem/stakify.png";
import sub_wallet from "@/assets/images/ecosystem/sub_wallet.png";
import validator_0 from "@/assets/images/ecosystem/validator_0.png";
import validator_1 from "@/assets/images/ecosystem/validator_1.png";
import validator_10 from "@/assets/images/ecosystem/validator_10.png";
import validator_11 from "@/assets/images/ecosystem/validator_11.png";
import validator_2 from "@/assets/images/ecosystem/validator_2.png";
import validator_3 from "@/assets/images/ecosystem/validator_3.png";
import validator_4 from "@/assets/images/ecosystem/validator_4.png";
import validator_5 from "@/assets/images/ecosystem/validator_5.png";
import validator_6 from "@/assets/images/ecosystem/validator_6.png";
import validator_7 from "@/assets/images/ecosystem/validator_7.png";
import validator_8 from "@/assets/images/ecosystem/validator_8.png";
import validator_9 from "@/assets/images/ecosystem/validator_9.png";
import yooldo from "@/assets/images/ecosystem/yooldo.png";


import { useEffect, useState } from "react";
import Card from "../../components/Card";
import Select from "../../components/Select";
import useWindowSize from "../../hooks/useWindowSize";

const options = [
{ value: 'All', label: 'All ' },
{ value: 'Tools', label: 'Tools' },
{ value: 'Infrastructure', label: 'Infrastructure' },
{ value: 'NFT', label: 'NFT' },
{ value: 'DEX', label: 'DEX' },
{ value: 'CEX', label: 'CEX' },
{ value: 'Web3 Game', label: 'Web3 Game' },
{ value: 'Wallet', label: 'Wallet' },
{ value: 'SocialFi', label: 'SocialFi' },
{ value: 'Oracle', label: 'Oracle' },
{ value: 'DeFi', label: 'DeFi' },
{ value: 'Others', label: 'Others' },
{ value: 'Validator', label: 'Validator' },
{ value: 'Web3 Game', label: 'Web3 Game' },
{ value: 'SocialFi', label: 'SocialFi' },
{ value: 'Web2 Transition', label: 'Web2 Transition' },
];

const data = [
{
title: 'Aurascan',
description: 'The next generation blockchain explorer for Aura Network',
tag: 'Tools',
tag: 'Infrastructure',
img: aura_scan,
link: 'https://aurascan.io/'
},
{
title: 'Pyxis Safe',
description: 'Multi-signature and fine -grain access control, asset management tool',
tag: 'Tools',
tag: 'Infrastructure',
img: pyxis,
link: 'https://pyxis.aura.network/'
},
{
title: 'Horoscope',
description: 'An indexing service to provide real-time data for Aura ecosystem',
tag: 'Tools',
tag: 'Infrastructure',
img: horo,
link: 'https://horoscope.aura.network/'
},
{
title: 'Band Protocol',
description: 'A cross-chain data oracle platform that aggregates and connects real-world data and APIs to smart contracts.',
tag: 'Infrastructure',
img: band,
link: 'https://www.bandprotocol.com/'
},
{
title: 'Nois Network',
description: 'Reliable Randomness For the Interchain',
tag: 'Infrastructure',
img: nois,
link: 'https://nois.network/'
},
{
title: 'Dev3Map',
description: 'The Interchain Developers Metrics Map',
tag: 'Infrastructure',
img: dev3,
link: 'https://beta.dev3map.com/'
},
{
title: 'Nimbus',
description: 'A Personalized Portfolio for Crypto investors',
tag: 'Tools',
tag: 'DeFi',
img: nimbus,
link: 'https://getnimbus.io/'
},
{
title: 'Halotrade',
description: 'Seamless crypto trading, built for all',
tag: 'DEX',
tag: 'DeFi',
img: halotrade,
link: 'https://halotrade.zone/'
},
Expand Down Expand Up @@ -128,17 +161,10 @@ const data = [
{
title: 'AhaFast Ride 2 Earn',
description: 'Spearheading the Blockchain O2O (Online-to-offline) movement in Vietnam',
tag: 'Others',
tag: 'Web2 Transition',
img: ahafast,
link: 'https://twitter.com/ahafastofficial'
},
{
title: 'Nois Network',
description: 'Reliable Randomness For the Interchain',
tag: 'Others',
img: nois,
link: 'https://nois.network/'
},
{
title: 'Coin98',
description: 'The #1 non-custodial, multi-chain wallet, and DeFi gateway, designed to seamlessly connect users to the crypto world in a safe and secure manner.',
Expand Down Expand Up @@ -174,27 +200,6 @@ const data = [
img: klever,
link: 'https://www.klever.io/'
},
{
title: 'Band Protocol',
description: 'A cross-chain data oracle platform that aggregates and connects real-world data and APIs to smart contracts.',
tag: 'Oracle',
img: band,
link: 'https://www.bandprotocol.com/'
},
{
title: 'Squid',
description: 'The first native-to-native cross-chain solution, replacing bridges with 1-click cross-chain swaps',
tag: 'DeFi',
img: squid,
link: 'https://www.squidrouter.com/'
},
{
title: 'Micro3',
description: 'A Decentralized SocialFi Mint-To-Earn platform that empowers Web3 projects and individuals through the creator economy, leveraging advanced LayerZero and Chainlink technologies.',
tag: 'SocialFi',
img: micro3,
link: 'https://micro3.io/'
},
{
title: 'SeekHYPE',
description: 'NFT Marketplace for IP',
Expand All @@ -209,6 +214,21 @@ const data = [
img: stakify,
link: 'https://stakify.zone/'
},
{
title: 'Aura Validators',
tag: 'Validator',
img: aura_scan,
listImgs: [validator_0, validator_1, validator_2, validator_3, validator_4, validator_5, validator_6, validator_7, validator_8, validator_9, validator_10, validator_11],
link: 'https://aurascan.io/validators'
},
{
title: 'Micro3',
description: 'A Decentralized SocialFi Mint-To-Earn platform that empowers Web3 projects and individuals through the creator economy, leveraging advanced LayerZero and Chainlink technologies.',
tag: 'SocialFi',
img: micro3,
link: 'https://micro3.io/',
isBigger: true
},
]

function Ecosystem() {
Expand Down Expand Up @@ -272,9 +292,21 @@ function Ecosystem() {
</div>
<div className="flex flex-col gap-4 flex-1">
<div className="grid grid-cols-1 lg:grid-cols-3 gap-4">
{visibleItems.map((e, index) => (
<Card key={index} data={e} />
))}
{visibleItems.map((e, index) => {
if (e.isBigger) {
return (
<div key={index} className="col-span-1 lg:col-span-2">
<Card data={e} />
</div>
);
}
return (
<div key={index} className="col-span-1">
<Card data={e} />
</div>
);
}
)}
</div>
{visibleItems.length < filteredData.length && (
<button
Expand Down
Binary file added src/assets/images/ecosystem/dev3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/images/ecosystem/leap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/ecosystem/validator_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/ecosystem/validator_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/ecosystem/validator_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/ecosystem/validator_11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/ecosystem/validator_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/ecosystem/validator_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/ecosystem/validator_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/ecosystem/validator_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/ecosystem/validator_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/ecosystem/validator_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/ecosystem/validator_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/ecosystem/validator_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/img_random_pirate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 20 additions & 2 deletions src/components/Card/index.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import Image from "next/image"
import Link from "next/link"
import arrow_up_right from "@/assets/images/arrow-up-right.png";
import Marquee from "react-fast-marquee";

type Card = {
title: string
img: any
description?: string
tag: string
link: string
listImgs?: any
isBigger?: boolean
}

type CardProps = {
Expand All @@ -16,15 +19,15 @@ type CardProps = {
}

function Card({ data }: CardProps) {
const { title, img, description, tag, link } = data
const { title, img, description, tag, link, listImgs } = data

return (
<div className="h-[280px] rounded-[20px] bg-dark-charcoal border border-[#221F19] p-6 flex flex-col justify-between w-full hover:bg-[#2A231A] group">
<div className="flex justify-between">
<div className="w-[62px] h-[62px] lg:h-16 lg:w-16 flex justify-center items-center bg-blur-brand-linear-gradient rounded-full">
<Image alt="" height={32} width={32} src={img} />
</div>
<div className="bg-[#3B3632] rounded-full py-1 px-4 max-h-8 text-[#968C7C]">
<div className="bg-light-charcoal rounded-full py-1 px-4 max-h-8 text-[#968C7C]">
{tag}
</div>
</div>
Expand All @@ -37,6 +40,21 @@ function Card({ data }: CardProps) {
</Link>
</div>
{description && <span className="text-[#968C7C] line-clamp-3">{description}</span>}
{listImgs &&
<Marquee className="mt-2">
<div className="flex h-fit relative">
{listImgs.map((e: any, i: number) => (
<div
key={i}
className="relative w-14 h-14 border-[3px] border-light-charcoal rounded-full"
style={{ left: `-${i * 15}px`, zIndex: listImgs.length - i }}
>
<Image className="rounded-full" alt="" height={56} width={56} src={e} />
</div>
))}
</div>
</Marquee>
}
</div>
</div>
);
Expand Down
36 changes: 36 additions & 0 deletions src/sections/explore/component/Slider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
'use client '

import Image from "next/image";
import { A11y, Navigation } from "swiper/modules";
import { Swiper, SwiperSlide } from "swiper/react";

function Slider({ data }: { data: any }) {
return (

<Swiper
modules={[A11y, Navigation]}
spaceBetween={16}
slidesPerView="auto"
pagination={{
clickable: true,
}}

>
<div className='flex gap-4'>
{data.map((item: any, i: number) => {
return (
<SwiperSlide key={i}>
<div className='rounded-lg object-cover'>
<Image className='rounded-lg h-[124px] w-[275px]' width={275} height={124} alt='img_catze_1' src={item} />
</div>
</SwiperSlide>
)
})}
</div>

</Swiper>

);
}

export default Slider;
Loading

0 comments on commit 2c1cd5d

Please sign in to comment.