Skip to content

Commit f64e2ed

Browse files
authored
updates (#86)
1 parent 3de5267 commit f64e2ed

File tree

6 files changed

+8
-45
lines changed

6 files changed

+8
-45
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @sweetpea22 @web3/web3-js
1+
* @AlexeyKrasnoperov

src/app/page.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import Banner from "@/components/Banner";
22
import Footer from "@/components/Footer";
33
import Navbar from "@/components/Navbar";
4-
import Ambassadors from "@/components/sections/Ambassadors";
54
import Features from "@/components/sections/Features";
65
import Hero from "@/components/sections/Hero";
76
import LogoCloud from "@/components/sections/LogoCloud";
87
import Stats from "@/components/sections/Stats";
98
import Testimonials from "@/components/sections/Testimonials";
109
import ThreeSteps from "@/components/sections/ThreeSteps";
11-
import WhyBeAmbassador from "@/components/sections/WhyBeAmbassador";
1210
import YouCan from "@/components/sections/YouCan";
1311

1412
export default function Home() {
@@ -21,8 +19,6 @@ export default function Home() {
2119
<Stats />
2220
<YouCan />
2321
<Features />
24-
<Ambassadors />
25-
<WhyBeAmbassador />
2622
<ThreeSteps />
2723
<Testimonials />
2824
<Footer />

src/components/Banner.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { docsUrl } from "./urls"
1+
22

33
export default function Banner() {
44
return (
55
<div className="relative isolate flex justify-center items-center gap-x-6 overflow-hidden bg-brand-400 px-6 py-2 sm:px-3">
66
<p className="text-md text-center font-semibold leading-6 text-gray-900">
7-
v4 is here! {" "}
8-
<a href={docsUrl} target="_blank" rel="noreferrer" className="whitespace-nowrap font-semibold">
9-
Read all about it <span aria-hidden="true">&rarr;</span>
7+
Web3.js libraries are being sunset on March 4th, 2025. For migration guides and more details please refer to
8+
<a href="https://blog.chainsafe.io/web3-js-sunset/" target="_blank" rel="noreferrer" className="whitespace-nowrap font-semibold">
9+
Chainsafe blog <span aria-hidden="true">&rarr;</span>
1010
</a>
1111
</p>
1212
</div>

src/components/Footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default function Footer() {
5454
alt='Web3js Logo'
5555
/>
5656
<p className='text-lg leading-6 text-neutral-400'>
57-
Web3js - The longest-running web3 library.
57+
Web3js
5858
</p>
5959

6060
</div>
@@ -104,7 +104,7 @@ export default function Footer() {
104104
</div>
105105
<div className='mt-4 border-t border-green-400/10 py-2 sm:mt-8 lg:mt-12'>
106106
<p className='py-3 text-sm text-center leading-5 text-neutral-400'>
107-
&copy; {currentYear} Maintained with ❤️ by ChainSafe
107+
&copy; {currentYear}
108108
</p>
109109
</div>
110110
</footer>

src/components/sections/Hero.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ export default function Hero() {
1313
</SectionHeading>
1414
<div>
1515
<Button className='text-white py-4 px-8' type="primary" href="https://www.npmjs.com/package/web3">npm i web3</Button>
16-
<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"/>
17-
<p className='text-md text-gray-300'>{" "} Maintained by ChainSafe</p>
18-
</div>
1916
</div>
2017
</div>
2118
<div className='flex flex-col w-full pt-8 lg:pt-0'>

src/components/sections/Stats.tsx

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,4 @@
11
import SectionHeading from "../SectionHeading"
2-
3-
const stats = [
4-
{
5-
name: 'Monthly npm usage',
6-
value: '2M',
7-
},
8-
{
9-
name: 'Monthly CDN requests',
10-
value: '2M',
11-
},
12-
{
13-
name: 'Weekly downloads',
14-
value: '500k',
15-
},
16-
{
17-
name: 'GitHub stars',
18-
value: '19K',
19-
},
20-
{
21-
name: 'Dependent projects',
22-
value: '3K+',
23-
},
24-
]
252

263
export default function Stats() {
274
return (
@@ -34,14 +11,7 @@ const stats = [
3411
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.
3512
</p>
3613
</div>
37-
<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">
38-
{stats.map((stat, index) => (
39-
<div key={index} className="flex flex-col border-zinc-700 border py-4 rounded-xl">
40-
<p className="my-4 text-6xl font-semibold text-brand-200">{stat.value}</p>
41-
<p className="text-md leading-6 text-gray-400">{stat.name}</p>
42-
</div>
43-
))}
44-
</dl>
14+
4515
</div>
4616
</div>
4717
</div>

0 commit comments

Comments
 (0)