Skip to content

Commit 6bbca47

Browse files
committed
chore: home page refactoering some errors
Signed-off-by: Daniel Ntege <danientege785@gmail.com>
1 parent 81e8403 commit 6bbca47

File tree

7 files changed

+334
-349
lines changed

7 files changed

+334
-349
lines changed

nextjs/app/page.tsx

Lines changed: 244 additions & 6 deletions
Large diffs are not rendered by default.

nextjs/components/HeroSection.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1-
const heroData = {
2-
heading: "Hiero",
3-
text: "Open Source Distributed Ledger Technology",
1+
type HeroData = {
2+
heading: string;
3+
text: string;
44
};
55

6-
export default function HeroSection() {
6+
type HeroSectionProps = {
7+
data: HeroData;
8+
};
9+
10+
export default function HeroSection({ data }: HeroSectionProps) {
711
return (
812
<div id="hero" className="bg-linear-to-br from-red-dark via-red to-red relative">
913
<div className="container py-20 sm:py-36 text-white text-center">
1014
<h1 className="text-4xl sm:text-5xl leading-none relative mb-2.5">
11-
{heroData.heading}
15+
{data.heading}
1216
</h1>
1317
<p className="text-[24px] tracking-[-0.081rem] sm:text-xl relative">
14-
{heroData.text}
18+
{data.text}
1519
</p>
1620
</div>
1721
</div>

nextjs/components/MeetSection.tsx

Lines changed: 19 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -1,122 +1,36 @@
1-
const meetData = {
2-
heading: "Join our Hiero Community Calls",
3-
text: '<p>Join our open TSC, Community and Project meetings. We welcome your opinion and invite you to collaborate with the team!</p><p>Register to any of our current meeting series <a href="https://github.com/hiero-ledger#open-community-meetings-and-tsc-schedules" target="_blank" rel="noreferrer noopener">HERE</a></p><p>View all meeting schedules and access recordings via our <a href="https://zoom-lfx.platform.linuxfoundation.org/meetings/hiero?view=week" target="_blank" rel="noreferrer noopener">LFX Calendar</a>.</p>',
4-
calls: [
5-
{
6-
name: "TSC",
7-
description:
8-
"The Technical Steering Committee (TSC) meeting for project governance, roadmap planning, and key technical decisions.",
9-
schedule: "Fortnightly",
10-
registerLink:
11-
"https://zoom-lfx.platform.linuxfoundation.org/meeting/95775743341?password=c07443bf-b0e6-4a68-93f1-5c7ce9bb49ab&invite=true",
12-
},
13-
{
14-
name: "Community Call",
15-
description:
16-
"Open community meeting for general discussions, updates, and Q&A sessions with the Hiero community and TSC members.",
17-
schedule: "Monthly",
18-
registerLink:
19-
"https://zoom-lfx.platform.linuxfoundation.org/meeting/97122675754?password=7eaa865a-2f17-4a7c-97b0-aff51933991c&invite=true",
20-
},
21-
{
22-
name: "Python SDK",
23-
description:
24-
"Focused discussions on the Hiero Python SDK development, including new features, issues, and contributions.",
25-
schedule: "Monthly",
26-
registerLink:
27-
"https://zoom-lfx.platform.linuxfoundation.org/meeting/92041330205?password=2f345bee-0c14-4dd5-9883-06fbc9c60581&invite=true",
28-
},
29-
{
30-
name: "Docs",
31-
description:
32-
"Documentation working group meetings to improve and maintain Hiero project documentation.",
33-
schedule: "Monthly",
34-
registerLink:
35-
"https://zoom-lfx.platform.linuxfoundation.org/meeting/96247351493?password=54a04164-8618-458d-8176-4ca21b346291&invite=true",
36-
},
37-
{
38-
name: "Solo",
39-
description:
40-
"Discussions and updates about Solo, an opinionated CLI tool to deploy and manage standalone test networks.",
41-
schedule: "Fortnightly",
42-
registerLink:
43-
"https://zoom-lfx.platform.linuxfoundation.org/meeting/94695703550?password=e8819002-3f6e-4905-9916-b049f501e866&invite=true",
44-
},
45-
{
46-
name: "Solo Action",
47-
description:
48-
"Working sessions focused on Solo Action project development, issues, and contributions.",
49-
schedule: "Fortnightly",
50-
registerLink:
51-
"https://zoom-lfx.platform.linuxfoundation.org/meeting/92576669768?password=8dab94bb-7315-4d37-a944-b1fa0e924741&invite=true",
52-
},
53-
{
54-
name: "SDK",
55-
description:
56-
"General SDK working group for cross-SDK discussions, standards, and coordination across all Hiero SDK implementations.",
57-
schedule: "Monthly",
58-
registerLink:
59-
"https://zoom-lfx.platform.linuxfoundation.org/meeting/94709702244?password=bcba4892-928c-47e0-9a21-e1abca95f7d3&invite=true",
60-
},
61-
{
62-
name: "Hiero Website",
63-
description:
64-
"Planning and development meetings for the Hiero website, content strategy, and user experience improvements.",
65-
schedule: "Monthly",
66-
registerLink:
67-
"https://zoom-lfx.platform.linuxfoundation.org/meeting/94831465670?password=50e11cd2-6450-4a97-b9ae-7a7585c4409b&invite=true",
68-
},
69-
{
70-
name: "Hiero Marketing",
71-
description:
72-
"Marketing and community outreach discussions, including events, communications, and ecosystem growth strategies.",
73-
schedule: "Monthly",
74-
registerLink:
75-
"https://zoom-lfx.platform.linuxfoundation.org/meeting/91725705912?password=57115f71-9576-46dc-90f7-98be38aade2d&invite=true",
76-
},
77-
{
78-
name: "Monthly Maintainers",
79-
description:
80-
"Regular meeting for maintainers across all Hiero projects to coordinate, share updates, and discuss best practices.",
81-
schedule: "Monthly",
82-
registerLink:
83-
"https://zoom-lfx.platform.linuxfoundation.org/meeting/99574473075?password=deff3fc9-0e80-4877-80de-91499b5480e9&invite=true",
84-
},
85-
{
86-
name: "Hiero/Hedera Identity",
87-
description:
88-
"Working group focused on identity-related projects, DID SDK development, and identity standards implementation.",
89-
schedule: "Monthly",
90-
registerLink:
91-
"https://zoom-lfx.platform.linuxfoundation.org/meeting/99097542854?password=3ee2d9c9-32de-4758-8a23-417c751bd7ab&invite=true",
92-
},
93-
{
94-
name: "Hiero Mirror Node",
95-
description:
96-
"Development and maintenance discussions for the Hiero Mirror Node, which archives data from consensus nodes and serves it via an API.",
97-
schedule: "Monthly",
98-
registerLink:
99-
"https://zoom-lfx.platform.linuxfoundation.org/meeting/94618152832?password=3b037576-2aab-4f7e-ab24-acf9ca2c3734&invite=true",
100-
},
101-
],
1+
type MeetCall = {
2+
name: string;
3+
description: string;
4+
schedule: string;
5+
registerLink: string;
1026
};
1037

104-
export default function MeetSection() {
8+
type MeetData = {
9+
heading: string;
10+
text: string;
11+
calls: MeetCall[];
12+
};
13+
14+
type MeetSectionProps = {
15+
data: MeetData;
16+
};
17+
18+
export default function MeetSection({ data }: MeetSectionProps) {
10519
return (
10620
<div id="meet" className="anchor">
10721
<div className="bg-white">
10822
<div className="container pt-[40px] pb-[40px] sm:pt-[60px] sm:pb-[120px]">
10923
<div className="mb-10 sm:mb-16">
11024
<h2 className="text-2xl mb-2.5 sm:text-4xl sm:mb-5">
111-
{meetData.heading}
25+
{data.heading}
11226
</h2>
11327
<div
11428
className="text-lg max-w-full md:max-w-[800px] space-y-4"
115-
dangerouslySetInnerHTML={{ __html: meetData.text }}
29+
dangerouslySetInnerHTML={{ __html: data.text }}
11630
/>
11731
</div>
11832
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 sm:gap-8">
119-
{meetData.calls.map((call, i) => (
33+
{data.calls.map((call, i) => (
12034
<div
12135
key={i}
12236
className="border-2 border-white-dark rounded-2xl p-8 hover:border-red transition-colors duration-200 bg-white"

nextjs/components/OpenSourceSection.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
import Image from "next/image";
22

3-
const openSourceData = {
4-
whyHeading: "Why is Hiero Open Source?",
5-
whyText:
6-
"The main goal of Hiero is to create a diverse community of developers, dreamers, and builders working to make the world more fair, fast, and secure. To achieve that goal it is critical that everyone can access the source of Hiero and move the project forward. A decentralized network that is used by enterprises and critical infrastructure around the world must be vendor-neutral and fully auditable.",
7-
whatHeading: "What parts of Hiero are Open Source?",
8-
whatText:
9-
'Hiero is 100% open-source. While the transition of the project to Linux Foundation Decentralized Trust is still ongoing, a view into some additional contributions can be found in <a href="https://github.com/hashgraph" target="_blank" rel="noreferrer noopener">Hedera\'s GitHub organization</a>. As a first step, the technical steering committee (TSC) of Hiero will provide oversight to include projects that are needed to run an enterprise-ready decentralized network to a new Hiero GitHub organization. More information about the transition process can be found in the roadmap.',
3+
type OpenSourceData = {
4+
whyHeading: string;
5+
whyText: string;
6+
whatHeading: string;
7+
whatText: string;
108
};
119

12-
export default function OpenSourceSection() {
10+
type OpenSourceSectionProps = {
11+
data: OpenSourceData;
12+
};
13+
14+
export default function OpenSourceSection({ data }: OpenSourceSectionProps) {
1315
return (
1416
<div className="bg-white">
1517
<div className="container pt-[40px] pb-[40px] sm:pt-[92px] sm:pb-[154px] grid grid-cols-1 sm:grid-cols-2 gap-[80px] sm:gap-10 relative">
@@ -30,8 +32,8 @@ export default function OpenSourceSection() {
3032
loading="lazy"
3133
/>
3234
</div>
33-
<h2 className="text-2xl font-medium mb-5">{openSourceData.whyHeading}</h2>
34-
<p className="text-base max-w-[565px]">{openSourceData.whyText}</p>
35+
<h2 className="text-2xl font-medium mb-5">{data.whyHeading}</h2>
36+
<p className="text-base max-w-[565px]">{data.whyText}</p>
3537
</div>
3638
<div className="relative">
3739
<div className="h-14 w-14 mb-5">
@@ -43,10 +45,10 @@ export default function OpenSourceSection() {
4345
loading="lazy"
4446
/>
4547
</div>
46-
<h2 className="text-2xl font-medium mb-5">{openSourceData.whatHeading}</h2>
48+
<h2 className="text-2xl font-medium mb-5">{data.whatHeading}</h2>
4749
<p
4850
className="text-base max-w-[565px]"
49-
dangerouslySetInnerHTML={{ __html: openSourceData.whatText }}
51+
dangerouslySetInnerHTML={{ __html: data.whatText }}
5052
/>
5153
</div>
5254
</div>

nextjs/components/QuotesCarousel.tsx

Lines changed: 11 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -7,73 +7,17 @@ import { Autoplay } from "swiper/modules";
77
import type { SwiperRef } from "swiper/react";
88
import "swiper/css";
99

10-
const quotesData = [
11-
{
12-
quote:
13-
'\u201cHedera\'s participation in Linux Foundation\'s Decentralized Trust will undoubtedly accelerate development, enhance security, and foster unprecedented collaboration within the Hedera ecosystem, positioning it at the forefront of blockchain innovation. As the leading wallet on the network, HashPack is committed to playing an active role in this new open source structure, and we look forward to <a href="https://www.hashpack.app/post/hashpack-on-hedera" target="_blank" rel="noreferrer noopener">contributing our expertise</a> to help shape the future of Hedera and the broader decentralized technology landscape.\u201d',
14-
author:
15-
'May Chan, CEO, <a href="https://www.hashpack.app/" target="_blank" rel="noreferrer noopener">HashPack</a>',
16-
logo: "/images/Hiero-Logo-HashPack.png",
17-
},
18-
{
19-
quote:
20-
'\u201cBy contributing its codebase to the Linux Foundation\'s Decentralized Trust, Hedera is demonstrating the ultimate commitment to open development. As a leading <a href="https://www.hgraph.com/blog/hedera-mirror-node" target="_blank" rel="noreferrer noopener">data infrastructure provider</a> in the ecosystem, Hgraph is actively dedicated to supporting the Hiero project as it transforms the open source DLT space and empowers the Hedera developer community.\u201d',
21-
author:
22-
'Tyler McDonald, CEO, <a href="https://hgraph.com/" target="_blank" rel="noreferrer noopener">Hgraph</a>',
23-
logo: "/images/Hiero-Logo-Hgraph.png",
24-
},
25-
{
26-
quote:
27-
"\u201cThe HBAR Foundry community is excited to see the contribution of the Hedera software to the Linux Foundation Decentralized Trust project. We're delighted to see Hedera's commitment to growing an independently governed and transparent community with more resources and opportunities to engage and grow the ecosystem.\u201d",
28-
author:
29-
'<a href="https://hbarfoundry.com/" target="_blank" rel="noreferrer noopener">The HBAR Foundry</a>, A Community Of Expert Hedera Builders',
30-
logo: "/images/Hiero-Logo-HbarFoundry.png",
31-
},
32-
{
33-
quote:
34-
"\u201cHedera's contribution of its codebase to the Linux Foundation's Decentralized Trust initiative is great news for SentX.io. By open-sourcing the Hashgraph technology, Hedera is reinforcing its commitment to innovation and decentralization. We expect this move to boost developer engagement, speed up the adoption of decentralized applications, and attract more retail users, driving growth across the ecosystem.\u201d",
35-
author:
36-
'Sam Jimenez &amp; Patr\u00edcia Carapinha, Founders, <a href="http://sentx.io/" target="_blank" rel="noreferrer noopener">SentX.io</a>',
37-
logo: "/images/Hiero-Logo-Sentx.png",
38-
},
39-
{
40-
quote:
41-
"\u201cTransferring ownership of Hedera's codebase to the Linux Foundation Decentralized Trust project is a testament to the power of open collaboration and meritocracy. This landmark initiative will empower developers, entrepreneurs, and enterprises to actively participate in shaping the future of Hedera. We are thrilled to be part of this vibrant ecosystem and look forward to contributing to its growth and success.\u201d",
42-
author:
43-
'Ivan Saiz, CTO, <a href="https://io.builders/" target="_blank" rel="noreferrer noopener">ioBuilders</a>',
44-
logo: "/images/Hiero-Logo-ioBuilders.png",
45-
},
46-
{
47-
quote:
48-
"\u201cHedera's contribution of its codebase to the Linux Foundation's Decentralized Trust entirely reshapes decentralized governance. At Calaxy, we view this as more than an infrastructure change - it's a move that drives real-world innovation. Developers now have greater autonomy and access to tools to build more inclusive, user-driven applications. We're excited to see how this enables devs to push the boundaries of creator-focused economies and further integrate blockchain into our everyday social experiences and relationships.\u201d",
49-
author:
50-
'Solo Ceesay, CEO &amp; Co-founder, <a href="https://calaxy.com/" target="_blank" rel="noreferrer noopener">Calaxy</a>',
51-
logo: "/images/Hiero-Logo-Calaxy.png",
52-
},
53-
{
54-
quote:
55-
"\u201cHedera's decision to open-source its codebase under the Linux Foundation Decentralized Trust is a monumental leap forward for the entire blockchain industry. This bold move not only underscores Hedera's commitment to decentralization and transparency but also paves the way for unprecedented community-driven innovation. We are excited to collaborate with the growing ecosystem to build a future where the possibilities are limitless.\u201d",
56-
author:
57-
'Rajiv Sohal, CTO, <a href="https://www.diamondstandard.co/" target="_blank" rel="noreferrer noopener">Diamond Standard</a>',
58-
logo: "/images/Hiero-Logo-DiamondStandard.svg",
59-
},
60-
{
61-
quote:
62-
"\u201cThis contribution represents a historic moment in the evolution of decentralized networks and is setting a precedent for transparency and collaboration in the blockchain industry. By contributing our codebase to LF Decentralized Trust, as project Hiero, we are reaffirming our commitment to open governance and collaboration. LF Decentralized Trust's mission to advance decentralized systems aligns perfectly with our own goals. We look forward to providing developers with unmatched access to tools and resources, creating an environment where decentralized applications can truly thrive.\u201d",
63-
author:
64-
'Charles Adkins, President, <a href="https://hedera.com/" target="_blank" rel="noreferrer noopener">Hedera</a>',
65-
logo: "/images/Hiero-Logo-Hedera.png",
66-
},
67-
{
68-
quote:
69-
"\u201cBy contributing Hiero to the Linux Foundation, an organization with a long history of supporting open source and open innovation, Hedera demonstrates to Council Members, ecosystem partners, grantees, and the builder community that it is committed to growing the capabilities of its network through transparency and meritocracy.\u201d",
70-
author:
71-
'Dr. Leemon Baird, Inventor, Co-founder, &amp; Chief Scientist, <a href="https://hashgraph.com/" target="_blank" rel="noreferrer noopener">Hashgraph</a>',
72-
logo: "/images/Hiero-Logo-Hashgraph.png",
73-
},
74-
];
10+
type QuoteItem = {
11+
quote: string;
12+
author: string;
13+
logo: string;
14+
};
7515

76-
export default function QuotesCarousel() {
16+
type QuotesCarouselProps = {
17+
data: QuoteItem[];
18+
};
19+
20+
export default function QuotesCarousel({ data }: QuotesCarouselProps) {
7721
const swiperRef = useRef<SwiperRef>(null);
7822

7923
return (
@@ -99,7 +43,7 @@ export default function QuotesCarousel() {
9943
autoplay={{ delay: 30000 }}
10044
className="mySwiper"
10145
>
102-
{quotesData.map((quote, i) => (
46+
{data.map((quote, i) => (
10347
<SwiperSlide key={i}>
10448
<div className="mb-5 flex justify-center h-[38px]">
10549
<Image

0 commit comments

Comments
 (0)