@@ -121,7 +164,10 @@ function dateRange(item, preserveDay) {
<% if (cv.languages) { %>
- Languages
+
<% for (const item of cv.languages) { %>
<%= item.language %>
diff --git a/src/templates/reorx/index.scss b/src/templates/reorx/index.scss
index 1560230..6fce1e6 100644
--- a/src/templates/reorx/index.scss
+++ b/src/templates/reorx/index.scss
@@ -1,5 +1,61 @@
+$color-signature: #2A3FFB;
+$color-text-dim: #777;
+
.cv-container {
font-size: 14px;
font-family: system-ui, sans-serif;
+ a, a:visited, a:hover, a:active {
+ color: $color-signature;
+ text-decoration: none;
+ }
+}
+
+.basics-section {
+ h1 {
+ font-size: 36px;
+ font-weight: 600;
+ margin: .8em 0 .2em 0;
+ }
+ .label {
+ margin: .4em 0;
+ }
+ .url {
+ margin: .4em 0;
+ }
+ .summary {
+ margin: .4em 0;
+ }
+ .contact {
+ margin: .4em 0;
+ color: $color-text-dim;
+
+ display: flex;
+ .item {
+ margin-right: 1em;
+ a {
+ color: $color-text-dim;
+ }
+ svg {
+ vertical-align: bottom;
+ }
+ }
+ }
+}
+
+.section-title {
+ margin-top: 3em;
+ display: flex;
+ h2 {
+ font-size: 22px;
+ font-weight: 600;
+ color: $color-signature;
+ margin: 0;
+ }
+ .line {
+ flex-grow: 1;
+ margin: 14px 0 0 1em;
+ height: 2px;
+ background-color: $color-signature;
+ }
}
diff --git a/src/themer/index.js b/src/themer/index.js
index 5fb78f6..3b17063 100644
--- a/src/themer/index.js
+++ b/src/themer/index.js
@@ -1,6 +1,7 @@
import ejs from 'ejs';
import { reformatDate } from '../lib/date';
+import { getIconSVG } from '../lib/icons';
const themes = {}
@@ -35,6 +36,8 @@ export function renderTheme(template, data, options) {
cv: data,
fn: {
reformatDate,
+ getIconSVG,
+ urlNoSchema,
}
}, options)
}
@@ -52,3 +55,9 @@ export function applyThemeTo(name, el, data) {
}
elStyle.innerHTML = theme.style
}
+
+/* fn */
+
+function urlNoSchema(url) {
+ return url.replace(/https?:\/\//, '')
+}