Website: markdown to release (#4146)

* website: markdown to release

* remove Image.png

* fixed font weight

* Change folder structure

* remove react-markdown

---------

Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
brendanlaschke
2024-02-24 12:29:37 +01:00
committed by GitHub
parent 87f7c75057
commit a2eca16646
7 changed files with 278 additions and 0 deletions

View File

@ -0,0 +1,32 @@
import React from 'react';
import { Metadata } from 'next';
import { Line } from '@/app/_components/releases/Line';
import { Release } from '@/app/_components/releases/Release';
import { Title } from '@/app/_components/releases/StyledTitle';
import { ContentContainer } from '@/app/_components/ui/layout/ContentContainer';
import { getReleases } from '@/app/get-releases';
export const metadata: Metadata = {
title: 'Twenty - Releases',
description: 'Latest releases of Twenty',
};
const Home = async () => {
const releases = await getReleases();
return (
<ContentContainer>
<Title />
{releases.map((note, index) => (
<React.Fragment key={note.slug}>
<Release release={note} />
{index != releases.length - 1 && <Line />}
</React.Fragment>
))}
</ContentContainer>
);
};
export default Home;