Import repositories from gitlab
This commit is contained in:
15
next/components/empty/index.jsx
Normal file
15
next/components/empty/index.jsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import Button from "../button";
|
||||
import styles from "./style.module.scss";
|
||||
|
||||
export default function Empty({message, ...props}) {
|
||||
return <section className={styles.empty}>
|
||||
<h2 {...props}>{message ?? "Il n'y a rien ici."}</h2>
|
||||
<Button
|
||||
as="a"
|
||||
type="secondary"
|
||||
href="/"
|
||||
>
|
||||
Retour à la page d'accueil
|
||||
</Button>
|
||||
</section>
|
||||
}
|
||||
9
next/components/empty/style.module.scss
Normal file
9
next/components/empty/style.module.scss
Normal file
@@ -0,0 +1,9 @@
|
||||
.empty {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
h2 {
|
||||
font-family: var(--font-details);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user