Merge branch 'master' into develop
This commit is contained in:
commit
a1388c6962
23 files changed
+9209
-156
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import Image from 'next/image'
|
||||
import logo from '../public/images/logo.webp';
|
||||
import logoInstagram from '../public/images/logo instagram.webp';
|
||||
import logoLinkedin from '../public/images/logo linkedin.webp';
|
||||
import logoFacebook from '../public/images/png/logo_facebook.png';
|
||||
import style from '../styles/Footer.module.css'
|
||||
|
||||
import Link from 'next/link';
|
||||
@@ -40,14 +40,14 @@ const Footer = () => {
|
||||
<ul className="nav flex-md-column">
|
||||
<li className="nav-item py-2 px-2">
|
||||
<Link href="https://www.instagram.com/the_tip_top_acem/?hl=fr" legacyBehavior><a className={style.link} >
|
||||
<Image src={logoInstagram} alt="lien instagram" width="40"
|
||||
height="40" />
|
||||
<Image src={logoInstagram} alt="lien instagram" width="40"
|
||||
height="40" />
|
||||
</a></Link>
|
||||
</li>
|
||||
<li className="nav-item py-2 px-2">
|
||||
<Link href="https://www.facebook.com/profile.php?id=100088390638593" legacyBehavior><a className={style.link} >
|
||||
<Image src={logoLinkedin} alt="lien facebook" width="40"
|
||||
height="40" />
|
||||
<Image src={logoFacebook} alt="lien facebook" width="40"
|
||||
height="40" />
|
||||
</a></Link>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
import React from "react";
|
||||
import Router from "next/router";
|
||||
import ReactMarkdown from "react-markdown";
|
||||
|
||||
export type PostProps = {
|
||||
id: number;
|
||||
title: string;
|
||||
author: {
|
||||
name: string;
|
||||
email: string;
|
||||
} | null;
|
||||
content: string;
|
||||
published: boolean;
|
||||
};
|
||||
|
||||
const Post = ( {post} : {post : PostProps}) => {
|
||||
const authorName = post.author ? post.author.name : "Unknown author";
|
||||
return (
|
||||
<div onClick={() => Router.push("/p/[id]", `/p/${post.id}`)}>
|
||||
<h2>{post.title}</h2>
|
||||
<small>By {authorName}</small>
|
||||
<ReactMarkdown children={post.content} />
|
||||
<style jsx>{`
|
||||
div {
|
||||
color: inherit;
|
||||
padding: 2rem;
|
||||
}
|
||||
`}</style>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Post;
|
||||
Reference in new issue
Block a user