All checks were successful
Update Memento Dev on VPS / deploy (push) Successful in 37s
Reviewed-on: #25 Co-authored-by: GauthierWebDev <gauthier@gauthierdaniels.fr> Co-committed-by: GauthierWebDev <gauthier@gauthierdaniels.fr>
35 lines
658 B
TypeScript
35 lines
658 B
TypeScript
import { Snippet } from "@/components/Snippet";
|
|
|
|
const htmlBasicAttributesSnippets = [
|
|
{
|
|
name: "Exemple d'attributs sur une image",
|
|
codeLanguage: "html",
|
|
withLineNumbers: true,
|
|
code: `<img
|
|
src="image.jpg"
|
|
alt="Une image d'exemple"
|
|
width="300"
|
|
height="200"
|
|
loading="lazy"
|
|
>`,
|
|
},
|
|
{
|
|
name: "Exemple d'attributs sur un lien",
|
|
codeLanguage: "html",
|
|
withLineNumbers: true,
|
|
code: `<a
|
|
href="https://example.com"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
title="Visitez notre site"
|
|
download
|
|
>
|
|
Visitez notre site
|
|
</a>`,
|
|
},
|
|
];
|
|
|
|
export default {
|
|
htmlBasicAttributes: () => <Snippet snippets={htmlBasicAttributesSnippets} />,
|
|
};
|