Skip to content

Commit

Permalink
Change header text source from hardcode to package
Browse files Browse the repository at this point in the history
  • Loading branch information
askirmas committed Aug 12, 2020
1 parent db3906e commit 318b161
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 19 deletions.
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
"Andrii_Kirmas.json"
],
"url": "./Andrii_Kirmas.schema.json"
},
{
"fileMatch": [
"nodemon.json"
],
"url": "https://json.schemastore.org/nodemon"
}
]
}
2 changes: 1 addition & 1 deletion Andrii_Kirmas.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Andrii_Kirmas.html

Large diffs are not rendered by default.

Binary file modified cli/__image_snapshots__/Andrii_Kirmas-web-snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion cli/pdf.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ beforeAll(async () => {
})

it("web", async () => {
await page.goto(`file://${cwd}/index.html`, {
await page.goto(`file://${cwd}/${fileName}.html`, {
"waitUntil": "networkidle2"
})
await page.setViewport({ width: 1800, height: 980 })
Expand Down
2 changes: 1 addition & 1 deletion index.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions nodemon.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"watch": ["cli"],
"ext": "ts",
"exec": "ts-node ./cli/md.ts"
"watch": ["page"],
"ext": "ts,tsx,js,jsx,json",
"exec": "npm run compile/html"
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kirmas/cv",
"version": "1.3.1",
"description": "Andrii Kirmas - Senior Software Engineer",
"description": "Andrii Kirmas - Senior Full Stack Software Engineer",
"homepage": "https://askirmas.github.io/cv/",
"main": "index.js",
"bin": {
Expand All @@ -17,6 +17,7 @@
"-compile/md": "npm run md --silent > ./Andrii_Kirmas.md",
"compile/html": "ts-node --project page/tsconfig.json page/html.ts",
"postcompile/html": "./absolutize.sh",
"html@dev": "nodemon",
"-md": "ts-node cli/md.ts",
"-md@dev": "nodemon",
"sass@dev": "npm run sass -- --watch",
Expand Down
13 changes: 11 additions & 2 deletions page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'

// type Part<T> = {[K in keyof T]: T[K] | undefined}
type tProps = Partial<{
"name": string
"description": string
"email": string
"phex": string
Expand All @@ -22,6 +23,7 @@ const {entries: $entries} = Object
, langs = ["English","Hebrew","Ukrainian","Russian","JS"]

export default function CvSlots({
name = "",
description = "",
email = "",
phex = "",
Expand All @@ -44,8 +46,15 @@ export default function CvSlots({
</head>
<body>
<header className="Main__header">
<div className="Main__title"></div>
<div className="Main__description"><a className="Term--Engineer" href="https://medium.com/shakuro/programmer-vs-developer-vs-engineer-91ef374e5033" title="The engineer has a solid educational grounding and the ability to apply engineering concepts to create digital solutions"></a></div>
<div className="Main__title">{name}</div>
<div className="Main__description">
{
description
.replace(name, "")
.replace(/(^[^\w]+|Engineer)/g, "")
}
<a className="Term--Engineer" href="https://medium.com/shakuro/programmer-vs-developer-vs-engineer-91ef374e5033" title="The engineer has a solid educational grounding and the ability to apply engineering concepts to create digital solutions"></a>
</div>
<div className="Main__links">
<div className="links_group">
<a className="links links--email" href={`mailto:${email}`}>{email}</a>
Expand Down
9 changes: 0 additions & 9 deletions styles/Andrii_Kirmas.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,6 @@ $font-bold: 600;
}
}

.Main__ {
&title {
@include content-value("Andrii Kirmas");
}
&description{
@include content-key("Senior Software ");
}
}

.links-- {
&residence {
pointer-events: none;
Expand Down

0 comments on commit 318b161

Please sign in to comment.