Compare commits
6 commits
8a3940b966
...
acc355fd09
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
acc355fd09 | ||
|
|
1bb632834a | ||
|
|
3695c6039c | ||
|
|
0532d57efb | ||
|
|
92bc04f148 | ||
|
|
779f447c13 |
|
|
@ -5,8 +5,6 @@ import eleventyPDF from "./_config/eleventy-plugin-pdf.js";
|
|||
export default async function (eleventyConfig) {
|
||||
eleventyConfig.setUseGitIgnore(false);
|
||||
|
||||
eleventyConfig.addPassthroughCopy({"./src/_includes/js/" : "/js"});
|
||||
|
||||
eleventyConfig.addLayoutAlias('base', 'layouts/base.html');
|
||||
eleventyConfig.addLayoutAlias('pdf', 'layouts/pdf.html');
|
||||
|
||||
|
|
@ -27,16 +25,19 @@ export default async function (eleventyConfig) {
|
|||
return [...collection.getFilteredByGlob('./src/experiences/*.md')]
|
||||
.sort((a, b) => a.data.startDate - b.data.startDate).reverse();
|
||||
});
|
||||
|
||||
eleventyConfig.addPlugin(eleventyPDF);
|
||||
|
||||
|
||||
eleventyConfig.addPassthroughCopy('src/favicon.ico')
|
||||
|
||||
|
||||
eleventyConfig.addPlugin(eleventyPDF);
|
||||
eleventyConfig.addPlugin(pluginIcons, {
|
||||
sources: [{ name: 'lucide', path: 'node_modules/lucide-static/icons', default: true }]
|
||||
sources: [
|
||||
{ name: 'lucide', path: 'node_modules/lucide-static/icons', default: true },
|
||||
{ name: 'simple-icons', path: 'node_modules/simple-icons/icons', default: false }
|
||||
]
|
||||
});
|
||||
|
||||
eleventyConfig.addBundle("css");
|
||||
eleventyConfig.addBundle("js");
|
||||
|
||||
return {
|
||||
markdownTemplateEngine: 'liquid',
|
||||
|
|
|
|||
16
package-lock.json
generated
16
package-lock.json
generated
|
|
@ -13,7 +13,8 @@
|
|||
"eleventy-plugin-icons": "^4.5.3",
|
||||
"lucide-static": "^0.503.0",
|
||||
"nanoid": "^5.1.5",
|
||||
"puppeteer-html-pdf": "^4.0.8"
|
||||
"puppeteer-html-pdf": "^4.0.8",
|
||||
"simple-icons": "^14.12.3"
|
||||
}
|
||||
},
|
||||
"node_modules/@11ty/dependency-tree": {
|
||||
|
|
@ -2996,6 +2997,19 @@
|
|||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/simple-icons": {
|
||||
"version": "14.12.3",
|
||||
"resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-14.12.3.tgz",
|
||||
"integrity": "sha512-P85Pqak4picfTzdujmGL7+pFfsd32K/tDjHPQ8vvJcr2Xk380A9kBVIW5QH86qWqa+YJgFa5huLcUuwmW+YBPQ==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=0.12.18"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/simple-icons"
|
||||
}
|
||||
},
|
||||
"node_modules/slash": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz",
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
"eleventy-plugin-icons": "^4.5.3",
|
||||
"lucide-static": "^0.503.0",
|
||||
"nanoid": "^5.1.5",
|
||||
"puppeteer-html-pdf": "^4.0.8"
|
||||
"puppeteer-html-pdf": "^4.0.8",
|
||||
"simple-icons": "^14.12.3"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
"socials": [
|
||||
{
|
||||
"title": "Mon Github",
|
||||
"icon": "github",
|
||||
"icon": "simple-icons:github",
|
||||
"link": "https://github.com/TheThomaas"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@
|
|||
|
||||
{% include "partials/footer.liquid" %}
|
||||
|
||||
<script src="/js/main.js"></script>
|
||||
{% js %}
|
||||
{% include "js/main.js" %}
|
||||
{% endjs %}
|
||||
<script src="{% getBundleFileUrl "js" %}"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -4,106 +4,16 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ title }}</title>
|
||||
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}
|
||||
{{ content }}
|
||||
{% endblock %}
|
||||
|
||||
<style>
|
||||
:root {
|
||||
--accent-color: blue;
|
||||
--font-body: Arial, sans-serif;
|
||||
--font-display: 'Times New Roman', Times, serif;
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: var(--font-body, Arial, sans-serif);
|
||||
margin: 0;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
*, ::before, ::after {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align:center;
|
||||
font-family: var(--font-display, 'Times New Roman', Times, serif);
|
||||
font-size: 2rem;
|
||||
margin: 0;
|
||||
line-height: 1.6;
|
||||
}
|
||||
h2 {
|
||||
color : var(--accent-color, blue);
|
||||
}
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
ul {
|
||||
margin: 0;
|
||||
}
|
||||
li::marker {
|
||||
color: var(--accent-color, blue);
|
||||
}
|
||||
section {margin-bottom: 1.2rem;}
|
||||
|
||||
.justify-center {
|
||||
justify-content: center;
|
||||
}
|
||||
.underline {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.list-inline {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
gap: .8rem;
|
||||
}
|
||||
.list-inline li {
|
||||
display: contents;
|
||||
}
|
||||
.list-inline li + li::before {
|
||||
content: '|';
|
||||
}
|
||||
|
||||
.title {
|
||||
display: flex;
|
||||
gap: .8rem;
|
||||
margin-bottom: .6rem;
|
||||
}
|
||||
.title h2 {
|
||||
margin: 0;
|
||||
}
|
||||
.title hr {
|
||||
align-self: center;
|
||||
flex: 1 0 auto;
|
||||
}
|
||||
|
||||
section ul {padding: 0;margin-left: 1.2rem;}
|
||||
.subtitle {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
justify-items: center;
|
||||
margin-inline: 1rem;
|
||||
margin-bottom: .4rem;
|
||||
}
|
||||
.subtitle .timeSection { font-size: .9rem; }
|
||||
.subtitle h3,
|
||||
.subtitle p { margin: 0; }
|
||||
.subtitle > :first-child {justify-self: start;}
|
||||
.subtitle > :last-child {justify-self: end;}
|
||||
.subtitle + ul {font-size: .9rem;}
|
||||
.subtitle ~ .subtitle {margin-top: 1rem;}
|
||||
</style>
|
||||
{% css "pdf" %}
|
||||
{% include "css/pdf.css" %}
|
||||
{% endcss %}
|
||||
|
||||
<style>{% getBundle "css" "pdf" %}</style>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -39,6 +39,10 @@
|
|||
gap: 0.35rem;
|
||||
display: flex;
|
||||
}
|
||||
.card .links svg {
|
||||
height: var(--card-icon-size, 1.2cap);
|
||||
width: auto;
|
||||
}
|
||||
.card .content {
|
||||
padding: 1rem 0.4rem 0;
|
||||
}
|
||||
|
|
@ -8,6 +8,10 @@
|
|||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
:where(svg.icon:not([fill])) {
|
||||
fill: currentColor;
|
||||
}
|
||||
|
||||
/* Utilities */
|
||||
.wrapper,
|
||||
.wrapper-full {
|
||||
|
|
|
|||
91
src/css/pdf.css
Normal file
91
src/css/pdf.css
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
:root {
|
||||
--accent-color: blue;
|
||||
--font-body: Arial, sans-serif;
|
||||
--font-display: 'Times New Roman', Times, serif;
|
||||
}
|
||||
|
||||
html {
|
||||
font-family: var(--font-body, Arial, sans-serif);
|
||||
margin: 0;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
*, ::before, ::after {
|
||||
-webkit-box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
h1 {
|
||||
text-align:center;
|
||||
font-family: var(--font-display, 'Times New Roman', Times, serif);
|
||||
font-size: 2rem;
|
||||
margin: 0;
|
||||
line-height: 1.6;
|
||||
}
|
||||
h2 {
|
||||
color : var(--accent-color, blue);
|
||||
}
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
ul {
|
||||
margin: 0;
|
||||
}
|
||||
li::marker {
|
||||
color: var(--accent-color, blue);
|
||||
}
|
||||
section {margin-bottom: 1.2rem;}
|
||||
|
||||
.justify-center {
|
||||
justify-content: center;
|
||||
}
|
||||
.underline {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.list-inline {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
gap: .8rem;
|
||||
}
|
||||
.list-inline li {
|
||||
display: contents;
|
||||
}
|
||||
.list-inline li + li::before {
|
||||
content: '|';
|
||||
}
|
||||
|
||||
.title {
|
||||
display: flex;
|
||||
gap: .8rem;
|
||||
margin-bottom: .6rem;
|
||||
}
|
||||
.title h2 {
|
||||
margin: 0;
|
||||
}
|
||||
.title hr {
|
||||
align-self: center;
|
||||
flex: 1 0 auto;
|
||||
}
|
||||
|
||||
section ul {padding: 0;margin-left: 1.2rem;}
|
||||
.subtitle {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
justify-items: center;
|
||||
margin-inline: 1rem;
|
||||
margin-bottom: .4rem;
|
||||
}
|
||||
.subtitle .timeSection { font-size: .9rem; }
|
||||
.subtitle h3,
|
||||
.subtitle p { margin: 0; }
|
||||
.subtitle > :first-child {justify-self: start;}
|
||||
.subtitle > :last-child {justify-self: end;}
|
||||
.subtitle + ul {font-size: .9rem;}
|
||||
.subtitle ~ .subtitle {margin-top: 1rem;}
|
||||
|
|
@ -5,5 +5,5 @@ template: 'hero'
|
|||
excludeFromPdf: true
|
||||
eleventyComputed:
|
||||
description: "{{ author.about }}"
|
||||
displayedTitle: "Moi c'est {{ author.firstName }}<br>Et je suis {{ author.occupation }}"
|
||||
displayedTitle: "Moi c'est <span class='accent-font'>{{ author.firstName }}</span><br>Et je suis {{ author.occupation }}"
|
||||
---
|
||||
|
|
@ -4,5 +4,5 @@ description: Un jeu fait pour les Portes Ouvertes 2020
|
|||
links:
|
||||
- title: Voir sur Github
|
||||
link: https://github.com
|
||||
icon: github
|
||||
icon: simple-icons:github
|
||||
---
|
||||
|
|
@ -4,5 +4,5 @@ description: Un "Qui est-ce ?" fait en Python et avec des LEGO Mindstorms
|
|||
links:
|
||||
- title: Voir sur Github
|
||||
link: https://github.com
|
||||
icon: github
|
||||
icon: simple-icons:github
|
||||
---
|
||||
|
|
@ -7,5 +7,5 @@ links:
|
|||
icon: link
|
||||
- title: Voir sur Github
|
||||
link: https://github.com
|
||||
icon: github
|
||||
icon: simple-icons:github
|
||||
---
|
||||
|
|
@ -7,5 +7,5 @@ links:
|
|||
icon: link
|
||||
- title: Voir sur Github
|
||||
link: https://github.com
|
||||
icon: github
|
||||
icon: simple-icons:github
|
||||
---
|
||||
|
|
@ -5,5 +5,5 @@ background: rgb(255, 143, 143)
|
|||
links:
|
||||
- title: Voir sur Github
|
||||
link: https://github.com
|
||||
icon: github
|
||||
icon: simple-icons:github
|
||||
---
|
||||
Loading…
Reference in a new issue