Skip to content

Commit

Permalink
add timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon-azerty committed May 19, 2024
1 parent 72230cd commit 16fb8b1
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Faq from '@/components/faq'
import Footer from '@/components/footer'
import Header from '@/components/header'
import Hero from '@/components/hero'
import Timeline from '@/components/timeline'

export default function Home() {
return (
Expand All @@ -12,6 +13,7 @@ export default function Home() {
<Hero />
<div className="lg:px-20">
<About />
<Timeline />
<Contact />
<Faq />
<Footer />
Expand Down
62 changes: 62 additions & 0 deletions src/components/timeline.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
const events = [
{
date: 'Released',
title: 'Solidity Basic Features',
description:
'Get access to syntax highlighting, linting, formatting, references, testing with Foundry, gas estimation, deploying and interacting with contracts and scripts, Foundry compiler integration, and static security analysis with Slither, all in one place.',
},
{
date: 'Q2 2024',
title: 'Massa Features',
description:
'Start a node and deploy a contract on the Massa network locally with gas estimation.',
},
{
date: 'Q3 2024',
title: 'Solidity Debugger',
description:
'With a debugger, our extension will completely support Solidity development.',
},
]

function Event({
date,
title,
description,
}: {
date: string
title: string
description: string
}) {
return (
<li className="mb-10 ms-4">
<div className="absolute -start-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700"></div>
<time className="mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500">
{date}
</time>
<h3 className="text-2xl font-semibold text-gray-900 dark:text-white">
{title}
</h3>
<p className="mb-4 w-60 text-xl font-normal text-gray-500 dark:text-gray-400 sm:w-[500px] md:w-[600px] xl:w-[800px]">
{description}
</p>
</li>
)
}

export default function Timeline() {
return (
<section className="flex w-full items-center justify-center px-36">
<ol className="relative border-s border-gray-200 dark:border-gray-700">
{events.map((event) => (
<Event
date={event.date}
title={event.title}
description={event.description}
key={event.title}
/>
))}
</ol>
</section>
)
}

0 comments on commit 16fb8b1

Please sign in to comment.