mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-08 22:53:25 +00:00
feat: add credits
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
{
|
{
|
||||||
"select-categorie": "Please select a category",
|
"select-categorie": "Please select a category",
|
||||||
"or-create-one": "or create one",
|
"or-create-one": "or create one",
|
||||||
"no-link": "No link for <b>{{name}}</b>"
|
"no-link": "No link for <b>{{name}}</b>",
|
||||||
|
"footer": {
|
||||||
|
"made_by": "Made with ❤\uFE0F by"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
{
|
{
|
||||||
"select-categorie": "Veuillez séléctionner une categorie",
|
"select-categorie": "Veuillez séléctionner une categorie",
|
||||||
"or-create-one": "ou en créer une",
|
"or-create-one": "ou en créer une",
|
||||||
"no-link": "Aucun lien pour <b>{{name}}</b>"
|
"no-link": "Aucun lien pour <b>{{name}}</b>",
|
||||||
|
"footer": {
|
||||||
|
"made_by": "Fait avec ❤\uFE0F par"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import { TFunctionParam } from "types/i18next";
|
|||||||
import LinkItem from "./LinkItem";
|
import LinkItem from "./LinkItem";
|
||||||
import styles from "./links.module.scss";
|
import styles from "./links.module.scss";
|
||||||
import clsx from "clsx";
|
import clsx from "clsx";
|
||||||
|
import PATHS from "constants/paths";
|
||||||
|
|
||||||
export default function Links({
|
export default function Links({
|
||||||
category,
|
category,
|
||||||
@@ -98,6 +99,20 @@ export default function Links({
|
|||||||
</LinkTag>
|
</LinkTag>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
<footer className={styles["footer"]}>
|
||||||
|
{t("home:footer.made_by")}{" "}
|
||||||
|
<LinkTag href={PATHS.AUTHOR} target="_blank">
|
||||||
|
Sonny
|
||||||
|
</LinkTag>
|
||||||
|
{" • "}
|
||||||
|
<LinkTag href={PATHS.REPO_GITHUB} target="_blank">
|
||||||
|
Github
|
||||||
|
</LinkTag>
|
||||||
|
{" • "}
|
||||||
|
<LinkTag href={PATHS.EXTENSION} target="_blank">
|
||||||
|
Extension
|
||||||
|
</LinkTag>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,8 @@
|
|||||||
.links-wrapper {
|
.links-wrapper {
|
||||||
height: calc(100%); // FIXME: eurk
|
height: calc(100%); // FIXME: eurk
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
padding: 10px;
|
padding: 0.5em;
|
||||||
|
padding-bottom: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -189,3 +190,10 @@
|
|||||||
animation: rotate 1s both reverse infinite linear;
|
animation: rotate 1s both reverse infinite linear;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
font-size: 0.8em;
|
||||||
|
color: $grey;
|
||||||
|
text-align: center;
|
||||||
|
padding: 0.75em 0 0.25em;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { ReactNode } from "react";
|
import { ReactNode } from "react";
|
||||||
import { createPortal } from "react-dom";
|
import { createPortal } from "react-dom";
|
||||||
import { GrClose } from "react-icons/gr";
|
import { GrClose } from "react-icons/gr";
|
||||||
|
|
||||||
import { motion } from "framer-motion";
|
import { motion } from "framer-motion";
|
||||||
import styles from "./modal.module.scss";
|
import styles from "./modal.module.scss";
|
||||||
|
|
||||||
@@ -15,6 +14,7 @@ interface ModalProps {
|
|||||||
noHeader?: boolean;
|
noHeader?: boolean;
|
||||||
padding?: string;
|
padding?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function Modal({
|
export default function Modal({
|
||||||
close,
|
close,
|
||||||
title,
|
title,
|
||||||
@@ -40,6 +40,7 @@ export default function Modal({
|
|||||||
initial={{ opacity: 0, y: "-6em" }}
|
initial={{ opacity: 0, y: "-6em" }}
|
||||||
animate={{ opacity: 1, y: 0 }}
|
animate={{ opacity: 1, y: 0 }}
|
||||||
exit={{ opacity: 0, y: "-6em", transition: { duration: 0.1 } }}
|
exit={{ opacity: 0, y: "-6em", transition: { duration: 0.1 } }}
|
||||||
|
transition={{ type: "tween" }}
|
||||||
>
|
>
|
||||||
{!noHeader && (
|
{!noHeader && (
|
||||||
<div className={styles["modal-header"]}>
|
<div className={styles["modal-header"]}>
|
||||||
|
|||||||
@@ -21,11 +21,7 @@ export default function PageTransition({
|
|||||||
className={className}
|
className={className}
|
||||||
initial={{ opacity: 0, scale: 0.95 }}
|
initial={{ opacity: 0, scale: 0.95 }}
|
||||||
animate={{ opacity: 1, scale: 1 }}
|
animate={{ opacity: 1, scale: 1 }}
|
||||||
transition={{
|
transition={{ type: "tween" }}
|
||||||
type: "spring",
|
|
||||||
stiffness: 260,
|
|
||||||
damping: 20,
|
|
||||||
}}
|
|
||||||
style={style}
|
style={style}
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
& .action {
|
& .action {
|
||||||
|
font-size: 0.95em;
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 0.5em;
|
gap: 0.5em;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,10 @@ const PATHS = {
|
|||||||
},
|
},
|
||||||
NOT_FOUND: "/404",
|
NOT_FOUND: "/404",
|
||||||
SERVER_ERROR: "/505",
|
SERVER_ERROR: "/505",
|
||||||
|
AUTHOR: "https://www.sonny.dev/",
|
||||||
|
REPO_GITHUB: "https://github.com/Sonny93/my-links",
|
||||||
|
EXTENSION:
|
||||||
|
"https://chromewebstore.google.com/detail/mylinks/agkmlplihacolkakgeccnbhphnepphma",
|
||||||
};
|
};
|
||||||
|
|
||||||
export default PATHS;
|
export default PATHS;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ $white: #fff;
|
|||||||
|
|
||||||
$lightest-grey: #dadce0;
|
$lightest-grey: #dadce0;
|
||||||
$light-grey: #f0eef6;
|
$light-grey: #f0eef6;
|
||||||
$grey: #bbb;
|
$grey: #aaa;
|
||||||
|
|
||||||
$black: #333;
|
$black: #333;
|
||||||
$black-blur: rgba(0, 0, 0, 0.3);
|
$black-blur: rgba(0, 0, 0, 0.3);
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ body {
|
|||||||
.App {
|
.App {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 1280px;
|
width: 1280px;
|
||||||
padding: 10px;
|
padding: 0.5em;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,6 +56,7 @@ h4,
|
|||||||
h5,
|
h5,
|
||||||
h6 {
|
h6 {
|
||||||
color: $blue;
|
color: $blue;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* width */
|
/* width */
|
||||||
|
|||||||
Reference in New Issue
Block a user