瀏覽代碼

Kinda proper template

theenglishway (time) 2 年之前
父節點
當前提交
24c8ae62f9
共有 1 個文件被更改,包括 31 次插入113 次删除
  1. 31 113
      cv_gen/lib/templates/cv.html.eex

+ 31 - 113
cv_gen/lib/templates/cv.html.eex

@@ -1,4 +1,3 @@
-<%= inspect(@basics) %>
 <!DOCTYPE html>
 <html lang="en">
 
@@ -112,7 +111,7 @@
       font-weight: 500;
     }
 
-    .achievement {
+    .highlights {
       font-size: 0.6em;
     }
 
@@ -136,7 +135,8 @@
   <div id="work">
     <h1>Expériences professionnelles</h1>
     <ol>
-      <%= for work <- @work do %> <li>
+      <%= for work <- @work do %>
+      <li>
         <div>
           <h1><%= work.name %></h1>
 
@@ -150,106 +150,33 @@
             <dt class="work_location"></dt>
             <dd>Paris</dd>
           </dl>
-        </div>
-        </li>
-      <% end %>
-      <li>
-        <div>
-          <h1>Parrot</h1>
-
-          <dl>
-            <dt class="position" lang="fr">Poste</dt>
-            <dd lang="fr">Ingénieur logiciel embarqué</dd>
-            <dt class="start_date">Date début</dt>
-            <dd><time class="start_date" datetime="2014-09"></time></dd>
-            <dt class="end_date">Date fin</dt>
-            <dd><time class="end_date" datetime="2017-05"></time></dd>
-            <dt class="work_location"></dt>
-            <dd>Paris</dd>
-          </dl>
 
-          <p class="summary" lang="en">
-            Development and architecture on Parrot's drones software (Bebop Drone, Bebop Drone 2.0, Minidrones)
-          </p>
+          <p class="summary" lang="en"><%= work.summary %></p>
 
-          <ul class="achievement">
-          </ul>
-        </div>
-      </li>
-
-      <li>
-        <div>
-          <h1>CEA</h1>
-
-          <dl>
-            <dt class="position" lang="fr">Poste</dt>
-            <dd lang="fr">Ingénieur chercheur</dd>
-            <dt class="start_date">Date début</dt>
-            <dd><time class="start_date" datetime="2009-11"></time></dd>
-            <dt class="end_date">Date fin</dt>
-            <dd><time class="end_date" datetime="2014-08"></time></dd>
-            <dt class="work_location"></dt>
-            <dd>Saclay</dd>
-          </dl>
-
-          <p class="summary" lang="en">
-            R&D works on PharOS, a safe embedded RTOS for automotive (now Asterios, promoted by KRONO-SAFE company), and
-            on safe and secure hypervision
-          </p>
-
-          <ul class="achievement">
-            <li>
-              <h1 lang="en">Industrialization of PharOS</h1>
-              <h2 lang="en">Micro-kernel porting on PowerPC and ARM embedded targets, and POSIX simulator</h2>
-              <h2 lang="en">Development of a dual-core version of the micro-kernel for an automotive demonstrator</h2>
-              <h2 lang="en">Design of a new architecture of the micro-kernel wrt portability on different hardware
-                targets and distribution of task scheduling (centralized or distributed)</h2>
-              <h2 lang="en">Participation to the CEA / KRONO-SAFE joint laboratory for the technological transfer</h2>
-            </li>
-
-            <li>
-              <h1 lang="en">Prototype of an automated memory protection system for PharOS</h1>
-              <h2 lang="en">PharOS implements spatial isolation of user tasks / system tasks</h2>
-              <h2 lang="en">On embedded targets without a MMU, this is achieved via manual configuration of a Memory
-                Protection Unit whose capacity is limited</h2>
-              <h2 lang="en">This prototype used graph theory techniques to automatize generation of code that would be
-                executed on context switches and ensure the spatial isolation</h2>
-            </li>
-
-            <li>
-              <h1 lang="en">Safe and secure hypervision</h1>
-              <h2 lang="en">Adaptation to a proprietary security-oriented hypervisor</h2>
-              <h2 lang="en">CEA project leader on a collaborative project of hardware / software co-design of a secure
-                many-core chip</h2>
-            </li>
+          <ul class="highlights">
+            <%= for highlight <- work.highlights do %>
+              <li><%= highlight %></li>
+            <% end %>
           </ul>
         </div>
       </li>
+      <% end %>
     </ol>
-  </div>
 
   <div id="skills">
     <h1>Compétences</h1>
 
     <ul>
-      <li>
-        <h1>Backend</h1>
-        <ul>
-          <li>Elixir</li>
-          <li>Python</li>
-          <li>Django</li>
-          <li>HTTP</li>
-          <li>Rest</li>
-        </ul>
-      </li>
-      <li>
-        <h1 class="tools"></h1>
-        <ul>
-          <li>Git</li>
-          <li>Linux</li>
-          <li>Python</li>
-        </ul>
-      </li>
+      <%= for skill <- @skills do %>
+        <li>
+          <h1><%= skill.name %></h1>
+          <ul>
+            <%= for kw <- skill.keywords do %>
+              <li><%= kw %></li>
+            <% end %>
+          </ul>
+        </li>
+      <% end %>
     </ul>
   </div>
 
@@ -257,34 +184,25 @@
     <h1>Formation</h1>
 
     <ol>
-      <li>
-        <h1>PLATO Créateurs</h1>
+      <%= for educ <- @education do %>
+        <li>
+          <h1><%= educ.institution %></h1>
 
-        <dl>
-          <dt class="location"></dt>
-          <dd>Versailles</dd>
-        </dl>
-      </li>
-      <li>
-        <h1>Ecole nationale supérieure de l'Electronique et de ses Applications</h1>
-        <h2>Diplôme d'ingénieur, Mécatronique & Electronique Embarquée 2006 - 2009</h2>
-        <p>
-          Generalist formation in electronics : analog and digital electronics, software, signal processing, control
-          theory, …
-          Last-year specialization in « Mechatronics and Complex Systems », which has a focus on embedded systems,
-          system modeling and mechanics</p>
-      </li>
+          <dl>
+            <dt class="location"></dt>
+            <dd><%= educ[:location] %></dd>
+          </dl>
+        </li>
+      <% end %>
     </ol>
-  </div>
 
   <div id="languages">
     <h1>Langues</h1>
 
     <ul>
-      <li>Français (langue maternelle)</li>
-      <li>English (fluent)</li>
-      <li>Português</li>
-      <li>Deutsch</li>
+      <%= for lang <- @languages do %>
+        <li><%= lang.language %> (<%= lang.fluency %>)</li>
+      <% end %>
     </ul>
   </div>
 </body>