From 738a3f7dcba51f783f689cb64260e468e14bb8f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Thu, 26 Nov 2020 23:09:39 +0100 Subject: [PATCH] feat: resume print mode + works --- pages/_data/resume.json | 15 +++++++++++++++ pages/css/resume.css | 34 +++++++++++++++++++++++++++++++++- pages/resume/index.njk | 16 +++++++++++----- 3 files changed, 59 insertions(+), 6 deletions(-) diff --git a/pages/_data/resume.json b/pages/_data/resume.json index cf62af9..2fd8152 100644 --- a/pages/_data/resume.json +++ b/pages/_data/resume.json @@ -51,6 +51,21 @@ } ], + "works": [ + { + "title": "Work 1", + "category": "FOSS", + "date": "2020 - 2020", + "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Maiores id adipisci, laudantium tempora neque asperiores repellat enim quasi vel doloremque non quas quibusdam qui magnam et reprehenderit cum facilis labore ad dicta ab accusamus, reiciendis corrupti excepturi! Possimus eligendi suscipit nam labore aliquid, deserunt reprehenderit nemo quos et alias! Fuga." + }, + { + "title": "Work 2", + "category": "FOSS", + "date": "2020 - 2020", + "description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Maiores id adipisci, laudantium tempora neque asperiores repellat enim quasi vel doloremque non quas quibusdam qui magnam et reprehenderit cum facilis labore ad dicta ab accusamus, reiciendis corrupti excepturi! Possimus eligendi suscipit nam labore aliquid, deserunt reprehenderit nemo quos et alias! Fuga." + } + ], + "projects": [ { "title": "This website", diff --git a/pages/css/resume.css b/pages/css/resume.css index 5c6968d..2d9f119 100644 --- a/pages/css/resume.css +++ b/pages/css/resume.css @@ -30,7 +30,7 @@ ul { li.event { padding: .8em 0 .8em 2.3em; margin-left: 1.25em; - border-left: 2px solid; + border-left: 2px #c0c5ce solid; } .tag { @@ -63,4 +63,36 @@ section > h3 { h2 { margin: 1em 0 .3em 0; +} + +@media print { + @page { + size: auto; + margin: 0; + } + + body, html { + background-color: white !important; + color: black; + max-width: 100%; + color-adjust: exact !important; + -webkit-print-color-adjust: exact !important; + } + + body { + margin: 5em; + font-size: 11px; + } + + li.event { + border-left: 2px black solid; + } + + a { + color: black; + } + + header, footer, .btn-back { + display: none; + } } \ No newline at end of file diff --git a/pages/resume/index.njk b/pages/resume/index.njk index f57c026..c74202f 100644 --- a/pages/resume/index.njk +++ b/pages/resume/index.njk @@ -18,12 +18,11 @@ username: Laureηt - -
UNDER CONSTRUCTION
-
+
{{ username }} _ + UNDER CONSTRUCTION
@@ -32,8 +31,15 @@ username: Laureηt

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

{{ resume.info.about }}

-

Projects

+

Working experience

+ {% for work in resume.works %} +
+

{{ work.title }} {{ work.date }}

+

{{ work.description }}

+
+ {% endfor %} +

Projects

{% for project in resume.projects %}

{{ project.title }}

@@ -66,7 +72,6 @@ username: Laureηt

Contacts

    - {% for contact in resume.contacts %}
  • @@ -101,6 +106,7 @@ username: Laureηt
  • {{ resume.education.history[0].end }}
  • + {% for edu in resume.education.history %}
  • {{ edu.title }}