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:
32
packages/twenty-website/src/app/releases/page.tsx
Normal file
32
packages/twenty-website/src/app/releases/page.tsx
Normal 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;
|
||||
Reference in New Issue
Block a user