diff --git a/public/locales/en/home.json b/public/locales/en/home.json index db70819..9f541b7 100644 --- a/public/locales/en/home.json +++ b/public/locales/en/home.json @@ -1,5 +1,8 @@ { "select-categorie": "Please select a category", "or-create-one": "or create one", - "no-link": "No link for {{name}}" + "no-link": "No link for {{name}}", + "footer": { + "made_by": "Made with ❤\uFE0F by" + } } diff --git a/public/locales/fr/home.json b/public/locales/fr/home.json index bef936e..054b9d6 100644 --- a/public/locales/fr/home.json +++ b/public/locales/fr/home.json @@ -1,5 +1,8 @@ { "select-categorie": "Veuillez séléctionner une categorie", "or-create-one": "ou en créer une", - "no-link": "Aucun lien pour {{name}}" + "no-link": "Aucun lien pour {{name}}", + "footer": { + "made_by": "Fait avec ❤\uFE0F par" + } } diff --git a/src/components/Links/Links.tsx b/src/components/Links/Links.tsx index 44729e7..9eefa2d 100644 --- a/src/components/Links/Links.tsx +++ b/src/components/Links/Links.tsx @@ -12,6 +12,7 @@ import { TFunctionParam } from "types/i18next"; import LinkItem from "./LinkItem"; import styles from "./links.module.scss"; import clsx from "clsx"; +import PATHS from "constants/paths"; export default function Links({ category, @@ -98,6 +99,20 @@ export default function Links({ )} + ); } diff --git a/src/components/Links/links.module.scss b/src/components/Links/links.module.scss index 0fdd617..c17eb3f 100644 --- a/src/components/Links/links.module.scss +++ b/src/components/Links/links.module.scss @@ -25,7 +25,8 @@ .links-wrapper { height: calc(100%); // FIXME: eurk min-width: 0; - padding: 10px; + padding: 0.5em; + padding-bottom: 0; display: flex; flex: 1; flex-direction: column; @@ -189,3 +190,10 @@ animation: rotate 1s both reverse infinite linear; } } + +.footer { + font-size: 0.8em; + color: $grey; + text-align: center; + padding: 0.75em 0 0.25em; +} diff --git a/src/components/Modal/Modal.tsx b/src/components/Modal/Modal.tsx index abcdaad..f3be88d 100644 --- a/src/components/Modal/Modal.tsx +++ b/src/components/Modal/Modal.tsx @@ -1,7 +1,6 @@ import { ReactNode } from "react"; import { createPortal } from "react-dom"; import { GrClose } from "react-icons/gr"; - import { motion } from "framer-motion"; import styles from "./modal.module.scss"; @@ -15,6 +14,7 @@ interface ModalProps { noHeader?: boolean; padding?: string; } + export default function Modal({ close, title, @@ -40,6 +40,7 @@ export default function Modal({ initial={{ opacity: 0, y: "-6em" }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: "-6em", transition: { duration: 0.1 } }} + transition={{ type: "tween" }} > {!noHeader && (