Skip to content

Commit

Permalink
Implement NCB20-848:
Browse files Browse the repository at this point in the history
- Remove Slalom Job Ttitle and Practice.
- Generate Titile if presents in YAML
- Remove unused files.
- Update .gitignore file.
  • Loading branch information
ssieng-slalom committed Jan 9, 2024
1 parent c929565 commit aaf56ef
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 32 deletions.
1 change: 0 additions & 1 deletion .eslintcache

This file was deleted.

3 changes: 0 additions & 3 deletions .gcloudignore

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ node_modules
*.pptx
.vscode/
.eslintcache
.gcloudignore

build/
17 changes: 0 additions & 17 deletions amplify/.config/project-config.json

This file was deleted.

4 changes: 1 addition & 3 deletions public/template.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
---
firstname: John
lastname: Doe
title: Consultant
practice: Technology Enablement
subpractice: Product Engineering
title: Software/DevOps Engineer
skills:
- Java / JavaScript / Python
- DevOps & CI/CD best practices
Expand Down
24 changes: 16 additions & 8 deletions src/pptx/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,25 @@ export default class Profile {
this.profile = profile
this.photo = photo

let introText = [
{ text: profile.firstname, options: { fontSize: 32, bold: true, color: '0c62fb', breakLine: true } },
{ text: profile.lastname, options: { fontSize: 32, bold: true, breakLine: true } },
{ text: '\n' }
];

if (profile.title) {
introText.push(
{ text: `${profile.title}`, options: { fontSize: 14, bold: true, breakLine: true } },
{ text: '\n' }
)
}

introText.push({ text: profile.about, options: { fontSize: 11 } });

this._leftTab = new Section({ x: 0.04, y: 0.42 })
this._leftTab = new Section({ x: 0.04, y: 0.42 })
.withText({
text: [
{ text: profile.firstname, options: { fontSize: 32, bold: true, color: '0c62fb', breakLine: true } },
{ text: profile.lastname, options: { fontSize: 32, bold: true, breakLine: true } },
{ text: '\n' },
{ text: `${profile.title}/${profile.practice}`, options: { fontSize: 14, bold: true, breakLine: true } },
{ text: '\n' },
{ text: profile.about, options: { fontSize: 11 } }
],
text: introText,
w: 4.20,
fontSize: 16
})
Expand Down

0 comments on commit aaf56ef

Please sign in to comment.