-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Closed #317
- Loading branch information
Showing
17 changed files
with
93 additions
and
56 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...s/manfred2html/src/engine/cv-x-wing-squadron/html-parts/avatar-section/avatar-section.ejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<%_ if (profile.avatar) { -%> | ||
<img src="<%= profile?.avatar%>" alt="photo cv"> | ||
<%_ } -%> |
10 changes: 5 additions & 5 deletions
10
...rts/header-section/header-section.part.ts → ...rts/avatar-section/avatar-section.part.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { ManfredAwesomicCV } from '@/model'; | ||
import { ProfileSectionVm, mapFromMacCvToProfileSectionVm } from '@lemoncode/manfred-common/profile-section'; | ||
import headerSection from './header-section.ejs?raw'; | ||
import avatarSection from './avatar-section.ejs?raw'; | ||
import ejs from 'ejs'; | ||
|
||
export const generateHeaderSection = (cv: ManfredAwesomicCV): string => { | ||
export const generateAvatarSection = (cv: ManfredAwesomicCV): string => { | ||
const profileSectionVm = mapFromMacCvToProfileSectionVm(cv); | ||
return generateHeaderSectionInner(profileSectionVm); | ||
return generateAvatarSectionInner(profileSectionVm); | ||
}; | ||
|
||
const generateHeaderSectionInner = (profileSectionVm: ProfileSectionVm): string => { | ||
const generateAvatarSectionInner = (profileSectionVm: ProfileSectionVm): string => { | ||
const rootObject = { | ||
profile: profileSectionVm, | ||
}; | ||
return ejs.render(headerSection, rootObject); | ||
return ejs.render(avatarSection, rootObject); | ||
}; |
1 change: 1 addition & 0 deletions
1
packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/avatar-section/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './avatar-section.part'; |
1 change: 1 addition & 0 deletions
1
...d2html/src/engine/cv-x-wing-squadron/html-parts/header-section-end/header-section-end.ejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
</section> |
4 changes: 4 additions & 0 deletions
4
...ml/src/engine/cv-x-wing-squadron/html-parts/header-section-end/header-section-end.part.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import ejs from 'ejs'; | ||
import HeaderSectionEndTemplate from './header-section-end.ejs?raw'; | ||
|
||
export const generateHeaderSectionEnd = (): string => ejs.render(HeaderSectionEndTemplate); |
1 change: 1 addition & 0 deletions
1
packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section-end/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './header-section-end.part'; |
3 changes: 3 additions & 0 deletions
3
...ml/src/engine/cv-x-wing-squadron/html-parts/header-section-start/header-section-start.ejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<section class="header__content"> | ||
|
||
|
4 changes: 4 additions & 0 deletions
4
...rc/engine/cv-x-wing-squadron/html-parts/header-section-start/header-section-start.part.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import ejs from 'ejs'; | ||
import HeaderSectionStartTemplate from './header-section-start.ejs?raw'; | ||
|
||
export const generateHeaderSectionStart = (): string => ejs.render(HeaderSectionStartTemplate); |
1 change: 1 addition & 0 deletions
1
packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section-start/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './header-section-start.part'; |
36 changes: 0 additions & 36 deletions
36
...s/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.ejs
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/index.ts
This file was deleted.
Oops, something went wrong.
5 changes: 4 additions & 1 deletion
5
packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,5 @@ | |
</a> | ||
<%_ } -%> | ||
<%_ } -%> | ||
</div> | ||
</section> | ||
</div> | ||
<%_ } -%> |
1 change: 1 addition & 0 deletions
1
packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/userInfo-section/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './userInfo-section.part'; |
28 changes: 28 additions & 0 deletions
28
...nfred2html/src/engine/cv-x-wing-squadron/html-parts/userInfo-section/userInfo-section.ejs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<%_ if (profile && profile !== undefined) { -%> | ||
<div class="header__content__name"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="10" viewBox="0 0 64 10" fill="none"> | ||
<path d="M1.10269e-06 5L64 5" stroke="#3BA0B7" stroke-width="9" /> | ||
</svg> | ||
<h1><%= profile.name %> </h1> | ||
<h2 class="surname"><%= profile?.surnames %></h2> | ||
<p class="job-title"><%= profile?.title %></p> | ||
</div> | ||
<%_ if (profile.regionLocation) { -%> | ||
<div class="header__content__address"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="24" viewBox="0 0 18 24" fill="none"> | ||
<g clip-path="url(#clip0_1762_1661)"> | ||
<path | ||
d="M10.1109 23.4C12.5156 20.3906 18 13.0969 18 9C18 4.03125 13.9688 0 9 0C4.03125 0 0 4.03125 0 9C0 13.0969 5.48438 20.3906 7.88906 23.4C8.46562 24.1172 9.53438 24.1172 10.1109 23.4ZM14.2969 6.79688L8.29688 12.7969C7.85625 13.2375 7.14375 13.2375 6.70781 12.7969L3.70312 9.79688C3.2625 9.35625 3.2625 8.64375 3.70312 8.20781C4.14375 7.77188 4.85625 7.76719 5.29219 8.20781L7.49531 10.4109L12.7031 5.20312C13.1438 4.7625 13.8562 4.7625 14.2922 5.20312C14.7281 5.64375 14.7328 6.35625 14.2922 6.79219L14.2969 6.79688Z" | ||
fill="#3BA0B7" | ||
/> | ||
</g> | ||
<defs> | ||
<clipPath id="clip0_1762_1661"> | ||
<rect width="18" height="24" fill="white" /> | ||
</clipPath> | ||
</defs> | ||
</svg> | ||
<p><%= profile?.regionLocation %>, <%= profile?.countryLocation %></p> | ||
</div> | ||
<%_}-%> | ||
<%_}-%> |
16 changes: 16 additions & 0 deletions
16
...d2html/src/engine/cv-x-wing-squadron/html-parts/userInfo-section/userInfo-section.part.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { ManfredAwesomicCV } from '@/model'; | ||
import { ProfileSectionVm, mapFromMacCvToProfileSectionVm } from '@lemoncode/manfred-common/profile-section'; | ||
import userInfoSection from './userInfo-section.ejs?raw'; | ||
import ejs from 'ejs'; | ||
|
||
export const generateUserInfoSection = (cv: ManfredAwesomicCV): string => { | ||
const profileSectionVm = mapFromMacCvToProfileSectionVm(cv); | ||
return generateUserInfoSectionInner(profileSectionVm); | ||
}; | ||
|
||
const generateUserInfoSectionInner = (profileSectionVm: ProfileSectionVm): string => { | ||
const rootObject = { | ||
profile: profileSectionVm, | ||
}; | ||
return ejs.render(userInfoSection, rootObject); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters