Skip to content

Commit 9806933

Browse files
authored
Merge pull request #335 from MTeresaMB/feature/#321-resolve-avatar-without-image
resolve avatar without image & changed userInfo & -html-document-star…
2 parents 5c2be83 + 9fbcb1e commit 9806933

File tree

4 files changed

+47
-21
lines changed

4 files changed

+47
-21
lines changed

export-samples/html/cv-x-wing-squadron.html

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
h1 {
7575
display: flex;
7676
flex-direction: column;
77-
width: min-content;
77+
min-width: min-content;
7878
text-transform: capitalize;
7979
font-family: 'Source Serif Pro', sans-serif;
8080
font-size: 75px;
@@ -86,6 +86,15 @@
8686
-webkit-text-fill-color: transparent;
8787
}
8888

89+
.gradient__background {
90+
display: flex;
91+
flex-grow: 1;
92+
background: var(--manfred-gradient);
93+
background-clip: text;
94+
-webkit-background-clip: text;
95+
-webkit-text-fill-color: transparent;
96+
color: transparent;
97+
}
8998
@media (min-width: 728px) {
9099
h1 {
91100
font-size: 82px;
@@ -145,9 +154,13 @@
145154

146155
header > img {
147156
align-self: center;
148-
width: 225px;
149-
height: 225px;
150157
border-radius: 225px;
158+
min-width: 225px;
159+
min-height: 225px;
160+
max-width: 350px;
161+
max-height: 350px;
162+
object-fit: cover;
163+
background: var(--manfred-gradient);
151164
}
152165

153166
.header__content {
@@ -162,6 +175,10 @@
162175
padding: var(--spacing_16) 0px;
163176
}
164177

178+
.header__content__name > * {
179+
padding-left: var(--spacing_8);
180+
}
181+
165182
.job-title {
166183
color: var(--manfred-dark);
167184
font-family: 'Source Serif Pro', sans-serif;
@@ -175,6 +192,7 @@
175192
display: flex;
176193
align-items: center;
177194
gap: var(--spacing_8);
195+
padding-left: var(--spacing_8);
178196
}
179197

180198
.header__content__address > p {
@@ -187,9 +205,10 @@
187205
display: flex;
188206
align-items: center;
189207
gap: var(--spacing_32);
208+
padding-left: var(--spacing_8);
190209
}
191210

192-
@media (min-width: 1024px) {
211+
@media (min-width: 728px) {
193212
.header__content__address > p {
194213
font-size: 16px;
195214
}
@@ -201,12 +220,7 @@
201220
justify-content: flex-start;
202221
align-items: center;
203222
flex-direction: row;
204-
gap: var(--spacing_64);
205-
}
206-
207-
header > img {
208-
width: 350px;
209-
height: 350px;
223+
gap: var(--spacing_48);
210224
}
211225

212226
.header__content {
@@ -387,7 +401,9 @@
387401
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="10" viewBox="0 0 64 10" fill="none">
388402
<path d="M1.10269e-06 5L64 5" stroke="#3BA0B7" stroke-width="9" />
389403
</svg>
390-
<h1>david</h1>
404+
<div class="gradient__background">
405+
<h1>david</h1>
406+
</div>
391407
<h2 class="surname">bonilla fuertes</h2>
392408
<p class="job-title">Fundador en Manfred / C-Level Executive</p>
393409
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<%_ if (profile.avatar) { -%>
2-
<img src="<%= profile?.avatar%>" alt="photo cv">
2+
<img src="<%= profile?.avatar%>" alt="photo cv"/>
33
<%_ } -%>

packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/html-document-start/html-document-start.ejs

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,15 @@
8686
-webkit-text-fill-color: transparent;
8787
}
8888
89+
.gradient__background {
90+
display: flex;
91+
flex-grow: 1;
92+
background: var(--manfred-gradient);
93+
background-clip: text;
94+
-webkit-background-clip: text;
95+
-webkit-text-fill-color: transparent;
96+
color: transparent;
97+
}
8998
@media (min-width: 728px) {
9099
h1 {
91100
font-size: 82px;
@@ -145,9 +154,13 @@
145154
146155
header > img {
147156
align-self: center;
148-
width: 225px;
149-
height: 225px;
150157
border-radius: 225px;
158+
min-width: 225px;
159+
min-height: 225px;
160+
max-width: 350px;
161+
max-height: 350px;
162+
object-fit: cover;
163+
background: var(--manfred-gradient);
151164
}
152165
153166
.header__content {
@@ -163,7 +176,7 @@
163176
flex-grow: 1;
164177
padding: var(--spacing_16) 0px;
165178
}
166-
179+
167180
.header__content__name > * {
168181
padding-left: var(--spacing_8);
169182
}
@@ -212,11 +225,6 @@
212225
gap: var(--spacing_48);
213226
}
214227
215-
header > img {
216-
width: 350px;
217-
height: 350px;
218-
}
219-
220228
.header__content {
221229
justify-content: space-between;
222230
}

packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/userInfo-section/userInfo-section.ejs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="10" viewBox="0 0 64 10" fill="none">
44
<path d="M1.10269e-06 5L64 5" stroke="#3BA0B7" stroke-width="9" />
55
</svg>
6-
<h1><%= profile.name %> </h1>
6+
<div class="gradient__background">
7+
<h1><%= profile.name %> </h1>
8+
</div>
79
<h2 class="surname"><%= profile?.surnames %></h2>
810
<p class="job-title"><%= profile?.title %></p>
911
</div>

0 commit comments

Comments
 (0)