From 81b9dac395e69c5b1757f98a2e42d6033c3aef84 Mon Sep 17 00:00:00 2001 From: BernatBC Date: Sat, 3 Feb 2024 11:09:27 +0100 Subject: [PATCH] Update Styling --- assets/styles/sections/experiences.scss | 6 +++++ .../experiences/multiple-positions.html | 22 ++++++++++--------- .../sections/experiences/single-position.html | 14 +++++++----- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/assets/styles/sections/experiences.scss b/assets/styles/sections/experiences.scss index d6f6085..7677d4c 100644 --- a/assets/styles/sections/experiences.scss +++ b/assets/styles/sections/experiences.scss @@ -92,6 +92,12 @@ } } + .company-heading { + h5, p { + display: inline; + } + } + @include media('<=medium') { .container { max-width: 100%; diff --git a/layouts/partials/sections/experiences/multiple-positions.html b/layouts/partials/sections/experiences/multiple-positions.html index 7c71b2b..2c83f9b 100644 --- a/layouts/partials/sections/experiences/multiple-positions.html +++ b/layouts/partials/sections/experiences/multiple-positions.html @@ -10,16 +10,18 @@ {{ end }} - -
{{ if .company.url }}{{ .company.name }}{{ else }}{{ .company.name }}{{ end }}
- - - {{ $oldestPosition := index (last 1 .positions) 0}} - {{ $mostRecentPosition := index (first 1 .positions) 0}} -

- {{ $oldestPosition.start }} - {{ if $mostRecentPosition.end }}{{ $mostRecentPosition.end }}{{ else }}{{ i18n "present" }}{{ end }}, - {{ .company.location }} -

+ + {{ $oldestPosition := index (last 1 .positions) 0}} + {{ $mostRecentPosition := index (first 1 .positions) 0}} +
+
{{ if .company.url }}{{ .company.name }}{{ else }}{{ .company.name }}{{ end }}
+

+ {{ $oldestPosition.start }} - {{ if $mostRecentPosition.end }}{{ $mostRecentPosition.end }}{{ else }}{{ i18n "present" }}{{ end }} +

+
+

+ {{ .company.location }} +

{{ .company.overview | markdownify }}

diff --git a/layouts/partials/sections/experiences/single-position.html b/layouts/partials/sections/experiences/single-position.html index 83cf0ee..db24640 100644 --- a/layouts/partials/sections/experiences/single-position.html +++ b/layouts/partials/sections/experiences/single-position.html @@ -11,13 +11,17 @@ {{ end }} + {{ $position:= index .positions 0 }} +
+
{{ if .company.url }}{{ .company.name }}{{ else }}{{ .company.name }}{{ end }}
+

{{ $position.start }} - {{ if $position.end }}{{ $position.end }}{{ else }}{{ i18n "present" }}{{ end }} +

+
+

+ {{ .company.location }} +

{{ $position.designation }}
-
{{ if .company.url }}{{ .company.name }}{{ else }}{{ .company.name }}{{ end }}
- -

{{ $position.start }} - {{ if $position.end }}{{ $position.end }}{{ else }}{{ i18n "present" }}{{ end }}, - {{ .company.location }} -

{{ .company.overview | markdownify }}