From a84b50bd3a7a96361932bacc4a995ecfa3ed961d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Fri, 21 May 2021 16:54:45 +0200 Subject: [PATCH] fix: formatting (editorconfig) + hack to convert resumes to be paginable --- .editorconfig | 12 ++ package.json | 22 +- pages/css/blink.css | 30 ++- pages/css/main.css | 20 +- pages/css/resume.css | 31 ++- pages/ePortfolio/CE.njk | 1 - pages/ePortfolio/TMAY.njk | 2 +- pages/ePortfolio/index.njk | 20 +- pages/ePortfolio/resume.njk | 2 +- pages/ePortfolio/sports.njk | 4 +- pages/index.njk | 22 +- pages/resume/resume.njk | 416 ++++++++++++++++++------------------ 12 files changed, 310 insertions(+), 272 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..5d47c21 --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/package.json b/package.json index 8362d28..1b3054f 100755 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { - "name": "site_perso", - "version": "1.0.1", - "main": "index.js", - "license": "MIT", - "devDependencies": { - "@11ty/eleventy": "^0.12.1", - "@11ty/eleventy-navigation": "^0.2.0" - }, - "dependencies": { - "chaffle": "^2.1.0" - } + "name": "site_perso", + "version": "1.0.1", + "main": "index.js", + "license": "MIT", + "devDependencies": { + "@11ty/eleventy": "^0.12.1", + "@11ty/eleventy-navigation": "^0.2.0" + }, + "dependencies": { + "chaffle": "^2.1.0" + } } diff --git a/pages/css/blink.css b/pages/css/blink.css index bf38765..b201202 100755 --- a/pages/css/blink.css +++ b/pages/css/blink.css @@ -2,26 +2,42 @@ background: #c0c5ce; color: #1c1f26; } + *::-moz-selection { background: #c0c5ce; color: #1c1f26; } + *::-webkit-selection { background: #c0c5ce; color: #1c1f26; } @keyframes blink { - 0% { opacity: 1.0; } - 50% { opacity: 0.0; } - 100% { opacity: 1.0; } + 0% { + opacity: 1.0; + } + 50% { + opacity: 0.0; + } + 100% { + opacity: 1.0; + } } + @-webkit-keyframes blink { - 0% { opacity: 1.0; } - 50% { opacity: 0.0; } - 100% { opacity: 1.0; } + 0% { + opacity: 1.0; + } + 50% { + opacity: 0.0; + } + 100% { + opacity: 1.0; + } } + .blink { animation: blink 1s step-start 0s infinite; -webkit-animation: blink 1.5s step-start 0s infinite; -} \ No newline at end of file +} diff --git a/pages/css/main.css b/pages/css/main.css index 9e12205..768b5a1 100755 --- a/pages/css/main.css +++ b/pages/css/main.css @@ -2,7 +2,8 @@ scrollbar-color: #202324 #454a4d; } -html, body { +html, +body { background-color: #232830; } @@ -15,7 +16,8 @@ body { padding: 1em; } -body, a { +body, +a { color: #c0c5ce; } @@ -41,7 +43,8 @@ h1 { margin-bottom: .7em; } -ol, ul { +ol, +ul { margin: .7em 0 0 1.4em; } @@ -77,7 +80,7 @@ footer { } .btn-back span { - display:inline-block; + display: inline-block; transform: scale(2.5); translate: -.2em -.1em; } @@ -86,7 +89,8 @@ footer { body { font-size: 17px; } - ol, ul { + ol, + ul { padding-left: 17px; } } @@ -98,13 +102,13 @@ video { margin: 0 auto; } -header > ul { +header>ul { list-style: none; padding: 0; margin: 1em 0 0 0; } -header > ul > li { +header>ul>li { display: inline; margin-right: .5em; -} \ No newline at end of file +} diff --git a/pages/css/resume.css b/pages/css/resume.css index 59844c1..d68a93c 100755 --- a/pages/css/resume.css +++ b/pages/css/resume.css @@ -23,11 +23,11 @@ ul { padding-left: 1em; } -section > ul { +section>ul { padding-left: 2em; } -.timeline > li { +.timeline>li { margin: 0; } @@ -50,7 +50,7 @@ small { vertical-align: middle; } -h1 > small { +h1>small { font-size: .45em; } @@ -58,12 +58,13 @@ section { padding-left: 1em; } -section > p { +section>p { padding-left: 1em; margin: 0; margin-bottom: 0.2em; } -section > h3 { + +section>h3 { margin-bottom: .3em; } @@ -71,7 +72,7 @@ section > h3 { padding-left: 1em; } -.project-links > a { +.project-links>a { padding-left: .3em; text-decoration: none; } @@ -93,37 +94,35 @@ h2 { @media print { @page { - size: auto; + size: auto; margin: 0; } - - body, html { + body, + html { background-color: white !important; color: black; max-width: 100%; color-adjust: exact !important; -webkit-print-color-adjust: exact !important; } - body { margin: 2em; font-size: 13px; } - li.event { border-left: 2px black solid; } - .tag { font-size: 10px; } - a { color: black; text-decoration: none; } - - header, footer, .btn-back, a.fa { + header, + footer, + .btn-back, + a.fa { display: none; } -} \ No newline at end of file +} diff --git a/pages/ePortfolio/CE.njk b/pages/ePortfolio/CE.njk index 47388f9..39e6f93 100644 --- a/pages/ePortfolio/CE.njk +++ b/pages/ePortfolio/CE.njk @@ -11,6 +11,5 @@ eleventyNavigation:

Flyer:

-

Video presentation:

diff --git a/pages/ePortfolio/TMAY.njk b/pages/ePortfolio/TMAY.njk index f697e05..cf0bbab 100755 --- a/pages/ePortfolio/TMAY.njk +++ b/pages/ePortfolio/TMAY.njk @@ -11,4 +11,4 @@ eleventyNavigation:

Japanese Version:

- \ No newline at end of file + diff --git a/pages/ePortfolio/index.njk b/pages/ePortfolio/index.njk index 8b7b65d..a95d222 100755 --- a/pages/ePortfolio/index.njk +++ b/pages/ePortfolio/index.njk @@ -12,19 +12,23 @@ eleventyNavigation:

Socials & Contacts

You can email me at :

You can reach me via :

diff --git a/pages/ePortfolio/resume.njk b/pages/ePortfolio/resume.njk index 434c7cd..fb9e48b 100755 --- a/pages/ePortfolio/resume.njk +++ b/pages/ePortfolio/resume.njk @@ -6,4 +6,4 @@ eleventyNavigation: order: 2 url: /resume/en/ permalink: false ---- \ No newline at end of file +--- diff --git a/pages/ePortfolio/sports.njk b/pages/ePortfolio/sports.njk index d96c7b6..8c8addb 100755 --- a/pages/ePortfolio/sports.njk +++ b/pages/ePortfolio/sports.njk @@ -5,9 +5,9 @@ eleventyNavigation: title: Hobbies order: 4 --- - +

Sports

I try to experience as much of them as I can when I have the opportunity, though for the moment I've mainly did Climbing and Archery. I had to stop doing sports during my Prépa because of the lack of time, but now that this is over I will do my best to improve my shape.

Hobbies

-

Obviously I love Computer Science since I decided to go in an engineering school specialized in it. Despite this I also like to fiddle around with electronics and to fool around on the internet. However I reassure you, I also like calm activities like taking care of my beloved aquarium and plants.

\ No newline at end of file +

Obviously I love Computer Science since I decided to go in an engineering school specialized in it. Despite this I also like to fiddle around with electronics and to fool around on the internet. However I reassure you, I also like calm activities like taking care of my beloved aquarium and plants.

diff --git a/pages/index.njk b/pages/index.njk index 9e8e173..95ae045 100755 --- a/pages/index.njk +++ b/pages/index.njk @@ -10,19 +10,23 @@ layout: layout.njk

./contact

You can email me at :

You can reach me via :

\ No newline at end of file +
  • + Matrix.to +
  • +
  • + LinkedIn +
  • + diff --git a/pages/resume/resume.njk b/pages/resume/resume.njk index c70878d..8e0c51b 100644 --- a/pages/resume/resume.njk +++ b/pages/resume/resume.njk @@ -2,237 +2,237 @@ username: Laureηt pagination: data: resumes + before: (data) => data.map(locale => Object.values(locale)).flat() size: 1 alias: resume - resolve: values permalink: "resume/{{ resume.locale }}/index.html" --- - - - - {{ username }} - - - - - - - - - - + + + + {{ username }} + + + + + + + + + + -
    - {{ username }} - _ +
    + {{ username }} + _ - {% for pageKey in pagination.pages %} - {% if page.url != pagination.hrefs[loop.index - 1] %} - {{ pageKey[0].username }} - {{ resumes[loop.index-1].locale }} - - {% endif %} - {% endfor %} + {% for pageKey in pagination.pages %} + {% if page.url != pagination.hrefs[loop.index - 1] %} + {{ pageKey[0].username }} + {{ resumes[loop.index-1].locale }} + + {% endif %} + {% endfor %} -
    +
    -
    -
    +
    +
    -

    {{ resume.name }} - ({{ resume.info.label }}) -

    -

    {{ resume.info.about }}

    +

    {{ resume.name }} + ({{ resume.info.label }}) +

    +

    {{ resume.info.about }}

    -
    +
    -

    {{ resume.school_projects_title }}

    - {% for project in resume.school_projects %} -
    -

    {{ project.title }}

    -

    {{ project.description }}

    - - -
    - {% endfor %} - -
    - -

    {{ resume.personnal_projects_title }}

    - {% for project in resume.personnal_projects %} -
    -

    {{ project.title }}

    -

    {{ project.description }}

    - -
    - {% endfor %} - -
    - -

    {{ resume.reading_title }}

    - - -
    - -

    {{ resume.interests_title }}

    - {% for interest in resume.interests %} -
    -

    {{ interest.name }}

    -

    {{ interest.summary }}

    -
      - {% for tag in interest.tags %} -
    • {{ tag }}
    • - {% endfor %} -
    -
    - {% endfor %} +

    {{ resume.school_projects_title }}

    + {% for project in resume.school_projects %} +
    +

    {{ project.title }}

    +

    {{ project.description }}

    + +
    + {% endfor %} -
    - -

    {{ resume.contacts_title }}

    - - -
    - -

    {{ resume.socials_title }}

    - - -
    - -

    {{ resume.education_title }}

    -
      - -
    • - - {% for edu in resume.education.history %} - {% if edu.end != resume.education.history[loop.index - 2].start %} - {% if loop.index != 1 %} -
    • - {% endif %} -
    • {{ edu.end }}
    • - {% endif %} - -
    • - {{ edu.title }}
      - {{ edu.institution }} -
      {{ edu.eqv }} -
    • - -
    • {{ edu.start }}
    • - {% endfor %} - -
    • -
    - -
    - -

    {{ resume.skills_title }}

    -
      - {% for skill in resume.skills %} -
    • - {{ skill.name }} - {% if skill.level %} - ({{ skill.level }}) - {% endif %} -
        - {% for tag in skill.tags %} -
      • {{ tag }}
      • - {% endfor %} -
      -
    • - {% endfor %} -
    - -
    - -

    {{ resume.languages_title }}

    -
      - {% for lang in resume.languages %} -
    • - - {{ lang.language }} - ({{ lang.level }}) -
    • - {% endfor %} -
    +
    +

    {{ resume.personnal_projects_title }}

    + {% for project in resume.personnal_projects %} +
    +

    {{ project.title }}

    +

    {{ project.description }}

    + -
    + + {% endfor %} - +
    -
    +

    {{ resume.reading_title }}

    + + +
    + +

    {{ resume.interests_title }}

    + {% for interest in resume.interests %} +
    +

    {{ interest.name }}

    +

    {{ interest.summary }}

    +
      + {% for tag in interest.tags %} +
    • {{ tag }}
    • + {% endfor %} +
    +
    + {% endfor %} + +
    + +
    + +

    {{ resume.contacts_title }}

    + + +
    + +

    {{ resume.socials_title }}

    + + +
    + +

    {{ resume.education_title }}

    +
      + +
    • + + {% for edu in resume.education.history %} + {% if edu.end != resume.education.history[loop.index - 2].start %} + {% if loop.index != 1 %} +
    • + {% endif %} +
    • {{ edu.end }}
    • + {% endif %} + +
    • + {{ edu.title }}
      + {{ edu.institution }} +
      {{ edu.eqv }} +
    • + +
    • {{ edu.start }}
    • + {% endfor %} + +
    • +
    + +
    + +

    {{ resume.skills_title }}

    +
      + {% for skill in resume.skills %} +
    • + {{ skill.name }} + {% if skill.level %} + ({{ skill.level }}) + {% endif %} +
        + {% for tag in skill.tags %} +
      • {{ tag }}
      • + {% endfor %} +
      +
    • + {% endfor %} +
    + +
    + +

    {{ resume.languages_title }}

    +
      + {% for lang in resume.languages %} +
    • + + {{ lang.language }} + ({{ lang.level }}) +
    • + {% endfor %} +
    + +
    +
    + + + +
    © {% year %} - {{ username }} -
    + {{ username }} + - - + Array + .prototype + .forEach + .call(elm_onload, function (el) { + var chaffle = new Chaffle(el) + chaffle.init(); + setInterval(function () { + chaffle.init(); + }, 10000) + }); + + - \ No newline at end of file +