fix: formatting (editorconfig)

+ hack to convert resumes to be paginable
This commit is contained in:
Laureηt 2021-05-21 16:54:45 +02:00
parent 44a10b45d6
commit a84b50bd3a
12 changed files with 310 additions and 272 deletions

12
.editorconfig Normal file
View file

@ -0,0 +1,12 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

View file

@ -2,25 +2,41 @@
background: #c0c5ce; background: #c0c5ce;
color: #1c1f26; color: #1c1f26;
} }
*::-moz-selection { *::-moz-selection {
background: #c0c5ce; background: #c0c5ce;
color: #1c1f26; color: #1c1f26;
} }
*::-webkit-selection { *::-webkit-selection {
background: #c0c5ce; background: #c0c5ce;
color: #1c1f26; color: #1c1f26;
} }
@keyframes blink { @keyframes blink {
0% { opacity: 1.0; } 0% {
50% { opacity: 0.0; } opacity: 1.0;
100% { opacity: 1.0; } }
50% {
opacity: 0.0;
}
100% {
opacity: 1.0;
}
} }
@-webkit-keyframes blink { @-webkit-keyframes blink {
0% { opacity: 1.0; } 0% {
50% { opacity: 0.0; } opacity: 1.0;
100% { opacity: 1.0; } }
50% {
opacity: 0.0;
}
100% {
opacity: 1.0;
}
} }
.blink { .blink {
animation: blink 1s step-start 0s infinite; animation: blink 1s step-start 0s infinite;
-webkit-animation: blink 1.5s step-start 0s infinite; -webkit-animation: blink 1.5s step-start 0s infinite;

View file

@ -2,7 +2,8 @@
scrollbar-color: #202324 #454a4d; scrollbar-color: #202324 #454a4d;
} }
html, body { html,
body {
background-color: #232830; background-color: #232830;
} }
@ -15,7 +16,8 @@ body {
padding: 1em; padding: 1em;
} }
body, a { body,
a {
color: #c0c5ce; color: #c0c5ce;
} }
@ -41,7 +43,8 @@ h1 {
margin-bottom: .7em; margin-bottom: .7em;
} }
ol, ul { ol,
ul {
margin: .7em 0 0 1.4em; margin: .7em 0 0 1.4em;
} }
@ -77,7 +80,7 @@ footer {
} }
.btn-back span { .btn-back span {
display:inline-block; display: inline-block;
transform: scale(2.5); transform: scale(2.5);
translate: -.2em -.1em; translate: -.2em -.1em;
} }
@ -86,7 +89,8 @@ footer {
body { body {
font-size: 17px; font-size: 17px;
} }
ol, ul { ol,
ul {
padding-left: 17px; padding-left: 17px;
} }
} }
@ -98,13 +102,13 @@ video {
margin: 0 auto; margin: 0 auto;
} }
header > ul { header>ul {
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 1em 0 0 0; margin: 1em 0 0 0;
} }
header > ul > li { header>ul>li {
display: inline; display: inline;
margin-right: .5em; margin-right: .5em;
} }

View file

@ -23,11 +23,11 @@ ul {
padding-left: 1em; padding-left: 1em;
} }
section > ul { section>ul {
padding-left: 2em; padding-left: 2em;
} }
.timeline > li { .timeline>li {
margin: 0; margin: 0;
} }
@ -50,7 +50,7 @@ small {
vertical-align: middle; vertical-align: middle;
} }
h1 > small { h1>small {
font-size: .45em; font-size: .45em;
} }
@ -58,12 +58,13 @@ section {
padding-left: 1em; padding-left: 1em;
} }
section > p { section>p {
padding-left: 1em; padding-left: 1em;
margin: 0; margin: 0;
margin-bottom: 0.2em; margin-bottom: 0.2em;
} }
section > h3 {
section>h3 {
margin-bottom: .3em; margin-bottom: .3em;
} }
@ -71,7 +72,7 @@ section > h3 {
padding-left: 1em; padding-left: 1em;
} }
.project-links > a { .project-links>a {
padding-left: .3em; padding-left: .3em;
text-decoration: none; text-decoration: none;
} }
@ -96,34 +97,32 @@ h2 {
size: auto; size: auto;
margin: 0; margin: 0;
} }
body,
body, html { html {
background-color: white !important; background-color: white !important;
color: black; color: black;
max-width: 100%; max-width: 100%;
color-adjust: exact !important; color-adjust: exact !important;
-webkit-print-color-adjust: exact !important; -webkit-print-color-adjust: exact !important;
} }
body { body {
margin: 2em; margin: 2em;
font-size: 13px; font-size: 13px;
} }
li.event { li.event {
border-left: 2px black solid; border-left: 2px black solid;
} }
.tag { .tag {
font-size: 10px; font-size: 10px;
} }
a { a {
color: black; color: black;
text-decoration: none; text-decoration: none;
} }
header,
header, footer, .btn-back, a.fa { footer,
.btn-back,
a.fa {
display: none; display: none;
} }
} }

View file

@ -11,6 +11,5 @@ eleventyNavigation:
<p id="shs">Flyer:</p> <p id="shs">Flyer:</p>
<img src="{{ '/content/2021-01-16-flyer.png' | url }}" width="100%"> <img src="{{ '/content/2021-01-16-flyer.png' | url }}" width="100%">
<p id="shs">Video presentation:</p> <p id="shs">Video presentation:</p>
<video src="{{ '/content/2021-01-16-video.mp4' | url }}" width="1080" height="720" controls></video> <video src="{{ '/content/2021-01-16-video.mp4' | url }}" width="1080" height="720" controls></video>

View file

@ -25,6 +25,10 @@ eleventyNavigation:
</ul> </ul>
<p>You can reach me via :</p> <p>You can reach me via :</p>
<ul> <ul>
<li><a href="https://matrix.to/#/@fainsil:inpt.fr">Matrix.to</a></li> <li>
<li><a href="https://www.linkedin.com/in/laurent-fainsin/">LinkedIn</a></li> <a href="https://matrix.to/#/@fainsil:inpt.fr">Matrix.to</a>
</li>
<li>
<a href="https://www.linkedin.com/in/laurent-fainsin/">LinkedIn</a>
</li>
</ul> </ul>

View file

@ -23,6 +23,10 @@ layout: layout.njk
</ul> </ul>
<p>You can reach me via :</p> <p>You can reach me via :</p>
<ul> <ul>
<li><a href="https://matrix.to/#/@fainsil:inpt.fr">Matrix.to</a></li> <li>
<li><a href="https://www.linkedin.com/in/laurent-fainsin/">LinkedIn</a></li> <a href="https://matrix.to/#/@fainsil:inpt.fr">Matrix.to</a>
</li>
<li>
<a href="https://www.linkedin.com/in/laurent-fainsin/">LinkedIn</a>
</li>
</ul> </ul>

View file

@ -2,9 +2,9 @@
username: Laureηt username: Laureηt
pagination: pagination:
data: resumes data: resumes
before: (data) => data.map(locale => Object.values(locale)).flat()
size: 1 size: 1
alias: resume alias: resume
resolve: values
permalink: "resume/{{ resume.locale }}/index.html" permalink: "resume/{{ resume.locale }}/index.html"
--- ---