Skip to content

Commit

Permalink
stats update
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevcs committed Jan 30, 2025
1 parent c0435b8 commit 26f37ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
3 changes: 0 additions & 3 deletions src/components/sections/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ export default function Hero() {
</SectionHeading>
<div>
<Button className='text-white py-4 px-8' type="primary" href="https://www.npmjs.com/package/web3">npm i web3</Button>
<div className='mt-6 px-2 flex flex-row align-center gap-x-2'><img className='h-5 w-5' src="/cs.png" alt="ChainSafe Logo, maintainer of web3js"/>
<p className='text-md text-gray-300'>{" "} Maintained by ChainSafe</p>
</div>
</div>
</div>
<div className='flex flex-col w-full pt-8 lg:pt-0'>
Expand Down
32 changes: 1 addition & 31 deletions src/components/sections/Stats.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,4 @@
import SectionHeading from "../SectionHeading"

const stats = [
{
name: 'Monthly npm usage',
value: '2M',
},
{
name: 'Monthly CDN requests',
value: '2M',
},
{
name: 'Weekly downloads',
value: '500k',
},
{
name: 'GitHub stars',
value: '19K',
},
{
name: 'Dependent projects',
value: '3K+',
},
]

export default function Stats() {
return (
Expand All @@ -34,14 +11,7 @@ const stats = [
Web3.js was established in 2014, making it the oldest web3 library. With extensive documentation, an active community and modular design, Web3.js is powerful and easy-to-use.
</p>
</div>
<dl className="mt-16 grid grid-cols-1 gap-0.5 text-center sm:grid-cols-2 lg:grid-cols-5 lg:gap-x-2">
{stats.map((stat, index) => (
<div key={index} className="flex flex-col border-zinc-700 border py-4 rounded-xl">
<p className="my-4 text-6xl font-semibold text-brand-200">{stat.value}</p>
<p className="text-md leading-6 text-gray-400">{stat.name}</p>
</div>
))}
</dl>

</div>
</div>
</div>
Expand Down

0 comments on commit 26f37ec

Please sign in to comment.