Skip to content

Commit

Permalink
Make general updates
Browse files Browse the repository at this point in the history
  • Loading branch information
helagro committed Dec 19, 2024
1 parent 6bc2324 commit dfcb43a
Show file tree
Hide file tree
Showing 18 changed files with 284 additions and 204 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,4 @@ dist
# End of https://www.toptal.com/developers/gitignore/api/macos,linux,node,web

.vscode
docs/attachment/recomendation-letter-*.pdf
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
- add letter of recommendation
- improve phrasing
- I handled and resolved a variety of equipment
- os.sep
31 changes: 25 additions & 6 deletions compile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
const Handlebars = require('handlebars')
const fs = require('fs')
const yaml = require('js-yaml')
const path = require('path')

/* ----------------------- LOAD SHARED ---------------------- */
/* ------------------------ CONSTANTS ----------------------- */

const sharedStr = fs.readFileSync('source/shared.yml', 'utf8')
const sharedObj = yaml.load(sharedStr)
const SOURCE_DIR = 'source'
const OUTPUT_DIR = 'docs'

/* ------------------------- HELPERS ------------------------ */

Expand All @@ -15,6 +16,20 @@ Handlebars.registerHelper('isMissing', function (value, options) {
else return options.inverse(this)
})

Handlebars.registerHelper('sourceExists', function (value, options) {
if (!value) return options.inverse(this)

const filePath = path.join(OUTPUT_DIR, value)
if (fs.existsSync(filePath)) return options.fn(this)
else return options.inverse(this)
})

/* ----------------------- LOAD SHARED ---------------------- */

const sharedPath = path.join(SOURCE_DIR, 'shared.yml')
const sharedStr = fs.readFileSync(sharedPath, 'utf8')
const sharedObj = yaml.load(sharedStr)

/* ----------------- LOOP THROUGH LANGUAGES ----------------- */

const languages = [
Expand All @@ -35,8 +50,11 @@ for (const language of languages) {
/* --------------------- COMPILE LANGUAGE -------------------- */

function compileLanguage(lang) {
const templateSource = fs.readFileSync('source/template.html', 'utf8')
const contentStr = fs.readFileSync(`source/${lang.inputName}`, 'utf8')
const templateSourcePath = path.join(SOURCE_DIR, 'template.html')
const templateSource = fs.readFileSync(templateSourcePath, 'utf8')

const contentPath = path.join(SOURCE_DIR, lang.inputName)
const contentStr = fs.readFileSync(contentPath, 'utf8')
const contentObj = yaml.load(contentStr)

const context = {
Expand All @@ -46,5 +64,6 @@ function compileLanguage(lang) {
const template = Handlebars.compile(templateSource)
const result = template(context)

fs.writeFileSync(`docs/${lang.outputName}`, result)
const outputPath = path.join(OUTPUT_DIR, lang.outputName)
fs.writeFileSync(outputPath, result)
}
Empty file added docs/attachment/.gitkeep
Empty file.
85 changes: 54 additions & 31 deletions docs/en.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
<div class="floor" id="headerText">
<h1>Henrik Lagrosen</h1>
<div class="columns">
<a class="largeText" id="email"></a>
<a class="largeText" id="email" target="_blank" rel="noopener noreferrer"></a>
<span class="columnDivider ifPhoneNr"></span>
<a class="largeText ifPhoneNr" id="phone"></a>
<a class="largeText ifPhoneNr" id="phone" target="_blank" rel="noopener noreferrer"></a>
</div>
</div>
</header>
Expand All @@ -40,17 +40,20 @@ <h2>PROFILE</h2>
<h2>WORK EXPERIENCE</h2>

<div class="infoItem">
<h3>IT Technician, <a href="https://amplius.se/">Amplius Field Service Group AB</a></h3>
<h3>IT Technician, <a href="https://amplius.se/" target="_blank"
rel="noopener noreferrer">Amplius Field Service Group AB</a></h3>
<p class="bodyText">As an IT technician, I was responsible for providing technical support and service to various clients. My role involved extensive fieldwork where I handled and resolved issues with variety of equipment, including Cisco devices, POS devices, and computers.</p>
<p class="smallText">August 2022 — Present</p>
</div>
<div class="infoItem">
<h3>Laboratory Assistant, <a href="https://www.alsglobal.se/">ALS Danderyd</a></h3>
<h3>Laboratory Assistant, <a href="https://www.alsglobal.se/" target="_blank"
rel="noopener noreferrer">ALS Danderyd</a></h3>
<p class="bodyText">Responsible for preparing for and cleaning up after analysis. I also had additional responsibilities as key fob manager and IT support. The support involved installation and troubleshooting for computers, and connected devices.</p>
<p class="smallText">April 2022 — August 2022, Danderyd</p>
</div>
<div class="infoItem">
<h3>Shop Assistant, <a href="https://www.ica.se/butiker/nara/orust/stillingsons-handel-1003402/">Ica Stillingsön</a></h3>
<h3>Shop Assistant, <a href="https://www.ica.se/butiker/nara/orust/stillingsons-handel-1003402/" target="_blank"
rel="noopener noreferrer">Ica Stillingsön</a></h3>
<p class="bodyText">Cashier service and store maintenance.</p>
<p class="smallText">June 2020 — July 2020, June 2019 — July 2019, Orust</p>
</div>
Expand All @@ -60,22 +63,26 @@ <h3>Shop Assistant, <a href="https://www.ica.se/butiker/nara/orust/stillingsons-
<h2>EDUCATION</h2>
<div class="infoItem">
<h3>University of Gothenburg</h3>
<p class="bodyText">Software Engineering and Management</p>
<p class="bodyText">Software Engineering and Management.
</p>
<p class="smallText">2022 — Present, Gothenburg</p>
</div>
<div class="infoItem">
<h3>Chalmers University of Technology</h3>
<p class="bodyText">Information Technology</p>
<p class="bodyText">Information Technology.
</p>
<p class="smallText">2021 — 2021, Gothenburg</p>
</div>
<div class="infoItem">
<h3>Fria Läroverken</h3>
<p class="bodyText">Technology, Information and Media</p>
<p class="bodyText">Technology, Information and Media. Average grade: 18.96.
</p>
<p class="smallText">August 2019 — June 2021, Kalmar</p>
</div>
<div class="infoItem">
<h3>Jensen Gymnasieskola</h3>
<p class="bodyText">Technology, Information</p>
<p class="bodyText">Technology, Information.
</p>
<p class="smallText">August 2018 — June 2019, Gothenburg</p>
</div>
</div>
Expand Down Expand Up @@ -107,62 +114,77 @@ <h2></h2>
<div>
<h2>TECHNIQUES</h2>

<a href="" class="disabled">
<a href="" target="_blank" rel="noopener noreferrer"
class="disabled">
<p class="largeText">Android</p>
</a>
<a href="https://github.com/helagro?tab&#x3D;repositories&amp;q&#x3D;&amp;type&#x3D;&amp;language&#x3D;c&amp;sort&#x3D;" class="">
<a href="https://github.com/helagro?tab&#x3D;repositories&amp;q&#x3D;&amp;type&#x3D;&amp;language&#x3D;c&amp;sort&#x3D;" target="_blank" rel="noopener noreferrer"
class="">
<p class="largeText">C</p>
</a>
<a href="https://github.com/helagro?tab&#x3D;repositories&amp;q&#x3D;&amp;type&#x3D;&amp;language&#x3D;c%2B%2B&amp;sort&#x3D;" class="">
<a href="https://github.com/helagro?tab&#x3D;repositories&amp;q&#x3D;&amp;type&#x3D;&amp;language&#x3D;c%2B%2B&amp;sort&#x3D;" target="_blank" rel="noopener noreferrer"
class="">
<p class="largeText">C++</p>
</a>
<a href="" class="disabled">
<a href="" target="_blank" rel="noopener noreferrer"
class="disabled">
<p class="largeText">Flutter</p>
</a>
<a href="" class="disabled">
<a href="" target="_blank" rel="noopener noreferrer"
class="disabled">
<p class="largeText">HTML &amp; CSS</p>
</a>
<a href="https://github.com/helagro?tab&#x3D;repositories&amp;q&#x3D;&amp;type&#x3D;&amp;language&#x3D;java&amp;sort&#x3D;" class="">
<a href="https://github.com/helagro?tab&#x3D;repositories&amp;q&#x3D;&amp;type&#x3D;&amp;language&#x3D;java&amp;sort&#x3D;" target="_blank" rel="noopener noreferrer"
class="">
<p class="largeText">Java</p>
</a>
<a href="https://github.com/helagro?tab&#x3D;repositories&amp;q&#x3D;&amp;type&#x3D;&amp;language&#x3D;javascript&amp;sort&#x3D;" class="">
<a href="https://github.com/helagro?tab&#x3D;repositories&amp;q&#x3D;&amp;type&#x3D;&amp;language&#x3D;javascript&amp;sort&#x3D;" target="_blank" rel="noopener noreferrer"
class="">
<p class="largeText">JavaScript</p>
</a>
<a href="https://github.com/helagro?tab&#x3D;repositories&amp;q&#x3D;&amp;type&#x3D;&amp;language&#x3D;kotlin&amp;sort&#x3D;" class="">
<a href="https://github.com/helagro?tab&#x3D;repositories&amp;q&#x3D;&amp;type&#x3D;&amp;language&#x3D;kotlin&amp;sort&#x3D;" target="_blank" rel="noopener noreferrer"
class="">
<p class="largeText">Kotlin</p>
</a>
<a href="" class="disabled">
<a href="" target="_blank" rel="noopener noreferrer"
class="disabled">
<p class="largeText">MongoDB</p>
</a>
<a href="" class="disabled">
<a href="" target="_blank" rel="noopener noreferrer"
class="disabled">
<p class="largeText">Postman</p>
</a>
<a href="https://github.com/helagro?tab&#x3D;repositories&amp;q&#x3D;&amp;type&#x3D;&amp;language&#x3D;python&amp;sort&#x3D;" class="">
<a href="https://github.com/helagro?tab&#x3D;repositories&amp;q&#x3D;&amp;type&#x3D;&amp;language&#x3D;python&amp;sort&#x3D;" target="_blank" rel="noopener noreferrer"
class="">
<p class="largeText">Python</p>
</a>
<a href="" class="disabled">
<a href="" target="_blank" rel="noopener noreferrer"
class="disabled">
<p class="largeText">SQL</p>
</a>
<a href="https://github.com/helagro?tab&#x3D;repositories&amp;q&#x3D;&amp;type&#x3D;&amp;language&#x3D;typescript&amp;sort&#x3D;" class="">
<a href="https://github.com/helagro?tab&#x3D;repositories&amp;q&#x3D;&amp;type&#x3D;&amp;language&#x3D;typescript&amp;sort&#x3D;" target="_blank" rel="noopener noreferrer"
class="">
<p class="largeText">Typescript</p>
</a>
<a href="" class="disabled">
<a href="" target="_blank" rel="noopener noreferrer"
class="disabled">
<p class="largeText">Vue</p>
</a>
</div>


<div class="linkRow">
<a href="https://www.linkedin.com/in/henrik-lagrosen">
<a href="https://www.linkedin.com/in/henrik-lagrosen" target="_blank" rel="noopener noreferrer">
<img src="img/LI-In-Bug.png" alt="LinkedIn link" height="34">
</a>

<a href="https://github.com/helagro" style="padding-bottom: .1em;">
<a href="https://github.com/helagro" style="padding-bottom: .1em;" target="_blank"
rel="noopener noreferrer">
<img src="img/github-mark.svg" alt="github link" height="33">
</a>

<a href="https://helagro.github.io/resume/se.html" class="printOnly"
style="margin: -.13em .35em 0 .35em;">
style="margin: -.13em .35em 0 .35em;" target="_blank" rel="noopener noreferrer">
<img src="img/Svenska.svg" alt="Link for Svenska version" height="37">
</a>
</div>
Expand All @@ -182,7 +204,7 @@ <h2>TECHNIQUES</h2>
<div class="optionsPanel" id="optionsContent">
<h2>Options</h2>
<div>
<a href="se.html">
<a href="se.html" target="_blank" rel="noopener noreferrer">
<p class="largeText">Svenska</p>
</a>
</div>
Expand All @@ -203,15 +225,16 @@ <h2>Options</h2>

<footer>
<div class="credit">
<a target="_blank" href="https://icons8.com/icon/46171/cv">CV</a>
<a target="_blank" href="https://icons8.com/icon/46171/cv" target="_blank" rel="noopener noreferrer">CV</a>
icon by
<a target="_blank" href="https://icons8.com">Icons8</a>
<a target="_blank" href="https://icons8.com" target="_blank" rel="noopener noreferrer">Icons8</a>
</div>

<div class="credit">
<a target="_blank" href="https://icons8.com/icon/100948/double-left">Double Left</a>
<a target="_blank" href="https://icons8.com/icon/100948/double-left" target="_blank"
rel="noopener noreferrer">Double Left</a>
icon by
<a target="_blank" href="https://icons8.com">Icons8</a>
<a target="_blank" href="https://icons8.com" target="_blank" rel="noopener noreferrer">Icons8</a>
</div>

</footer>
Expand Down
12 changes: 7 additions & 5 deletions docs/script/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
function showPFP(value) {
document.getElementById('profilePic').style.display = value ? 'unset' : 'none'
document.getElementById('headerText').style.marginBottom = value ? '1em' : '0'
}

/* --------------------- CONTACT DETAILS -------------------- */

const emailAddrScrambled = 'B0bydWYsVGavdXRsb29rLmNvbQ=='

function loadContactDetails() {
Expand Down Expand Up @@ -27,11 +34,6 @@ function loadContactDetails() {
}
}

function showPFP(value) {
document.getElementById('profilePic').style.display = value ? 'unset' : 'none'
document.getElementById('headerText').style.marginBottom = value ? '1em' : '0'
}

/* --------------------- MOBILE OPTIONS --------------------- */

let popupIsShowing = false
Expand Down
Loading

0 comments on commit dfcb43a

Please sign in to comment.