Update portfolio

This commit is contained in:
2024-10-13 02:32:54 +02:00
parent 543522ea7f
commit 053b5784aa
21 changed files with 244 additions and 37 deletions
+7
View File
@@ -421,3 +421,10 @@ table {
}
}
}
.feather {
display: inline-block;
vertical-align: -0.125em;
width: 1em;
height: 1em;
}
+25 -7
View File
@@ -45,6 +45,31 @@
&-content {
margin-top: 30px;
}
&-links {
font-size: 0.8em;
margin-top: -8px;
opacity: 0.7;
a {
text-decoration: none;
}
> * {
margin-right: 8px;
}
// display: flex;
// flex-direction: row;
// align-items: center;
// font-size: 0.9em;
// gap: 10px;
// > * {
// margin: 0;
// }
}
&-cover {
border-radius: 8px;
@@ -88,13 +113,6 @@
content: "#";
}
}
.feather {
display: inline-block;
vertical-align: -0.125em;
width: 1em;
height: 1em;
}
}
.flag {
@@ -68,16 +68,16 @@
&-title {
font-size: 1rem;
margin: 5px 0 5px 0;
margin: 5px 0 2px 0;
}
&-company {
font-size: .9rem;
font-size: 0.9rem;
margin: 5px 0 5px 0;
}
&-meta {
font-size: .8em;
font-size: 0.8em;
}
&-content {
-7
View File
@@ -105,13 +105,6 @@
content: "#";
}
}
.feather {
display: inline-block;
vertical-align: -0.125em;
width: 1em;
height: 1em;
}
}
.flag {
+7 -1
View File
@@ -38,4 +38,10 @@ other = "{{ .Count }} Words"
[post]
pageViews = "Views"
unknownViews = "Unknown"
present = "Present"
present = "Present"
[portfolio]
skillsDeveloped = "Skills developed"
viewSource = "View source"
viewSourceKind = "View {{ . }} source"
liveDemo = "Live demo"
+1 -1
View File
@@ -54,7 +54,7 @@
{{- end }}
</div>
{{- with .Params.skills }}
<h3 class="portfolio-skills-title">Skills developed:</h3>
<h3 class="portfolio-skills-title">{{ i18n "portfolio.skillsDeveloped"}}:</h3>
<ul class="portfolio-skills">
{{- range . }}
<li class="portfolio-skill">{{ . }}</li>
+41 -1
View File
@@ -40,6 +40,46 @@
{{- end }}
</p>
<div class="portfolio-links">
{{- if .Params.source_code }}
{{- if hasPrefix (printf "%T" .Params.source_code) "map" }}
{{- range $name, $url := .Params.source_code }}
<span>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-code">
<polyline points="16 18 22 12 16 6"></polyline>
<polyline points="8 6 2 12 8 18"></polyline>
</svg>
<a href="{{ $url }}">{{ i18n "portfolio.viewSourceKind" $name}}</a>
</span>
{{- end }}
{{- else }}
<span>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-code">
<polyline points="16 18 22 12 16 6"></polyline>
<polyline points="8 6 2 12 8 18"></polyline>
</svg>
<a href="{{ .Params.source_code }}">{{ i18n "portfolio.viewSource"}}</a>
</span>
{{- end }}
{{- end }}
{{- if .Params.live_demo }}
<span>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
class="feather feather-monitor">
<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect>
<line x1="8" y1="21" x2="16" y2="21"></line>
<line x1="12" y1="17" x2="12" y2="21"></line>
</svg>
<a href="{{ .Params.live_demo }}">{{ i18n "portfolio.liveDemo"}}</a>
</span>
{{- end }}
</div>
{{- if .Params.Cover }}
{{- partial "image.html" (dict "path" .Params.Cover "alt" (.Title | plainify) "class" "portfolio-cover") }}
{{- end }}
@@ -59,7 +99,7 @@
<div>
{{- with .Params.skills }}
<h2 class="portfolio-skills-title">Skills developed:</h2>
<h2 class="portfolio-skills-title">{{ i18n "portfolio.skillsDeveloped"}}:</h2>
<ul class="portfolio-skills">
{{- range . }}
<li class="portfolio-skill">{{ . }}</li>