瀏覽代碼

Uppercase section headers

theenglishway (time) 2 年之前
父節點
當前提交
35ebd1d008
共有 2 個文件被更改,包括 9 次插入4 次删除
  1. 4 4
      lib/templates/cv.html.heex
  2. 5 0
      lib/views/layout.ex

+ 4 - 4
lib/templates/cv.html.heex

@@ -55,7 +55,7 @@
       <Basics.basics name={@basics.name} title={@basics.label} />
     </div>
 
-    <div id="work">
+    <div id="work" class="section">
       <h1>Expériences professionnelles</h1>
       <ol>
         <%= for work <- @work do %>
@@ -66,7 +66,7 @@
       </ol>
     </div>
 
-    <div id="skills">
+    <div id="skills" class="section">
       <h1>Compétences</h1>
 
       <ul>
@@ -76,7 +76,7 @@
       </ul>
     </div>
 
-    <div id="education">
+    <div id="education" class="section">
       <h1>Formation</h1>
 
       <ol>
@@ -86,7 +86,7 @@
       </ol>
     </div>
 
-    <div id="languages">
+    <div id="languages" class="section">
       <h1>Langues</h1>
 
       <ul>

+ 5 - 0
lib/views/layout.ex

@@ -81,5 +81,10 @@ defmodule CvGenView.Layout do
     #languages {
       grid-area: languages;
     }
+
+    .section > h1 {
+      color: #227c74;
+      text-transform: uppercase;
+    }
     """
 end