From 64e2769304c38032d9e47aeb923a197412646a83 Mon Sep 17 00:00:00 2001 From: beyzanurdeniz Date: Sat, 16 Nov 2024 17:38:48 +0300 Subject: [PATCH 1/4] design-2 --- layouts/shortcodes/people.html | 138 ++++++++++++++++++++++----------- static/icons/linkedin.svg | 3 + 2 files changed, 94 insertions(+), 47 deletions(-) create mode 100644 static/icons/linkedin.svg diff --git a/layouts/shortcodes/people.html b/layouts/shortcodes/people.html index 72fc524..9405c00 100644 --- a/layouts/shortcodes/people.html +++ b/layouts/shortcodes/people.html @@ -12,52 +12,96 @@ {{ end }} {{ $members := $ctx.Get "members" }} -
-{{ range $members }} -
- {{ $thumbnail := .thumbnail | default "images/person.png" }} - {{ $image_settings := site.Params.people.image_settings | default "500x500 webp q90 smart" }} - - {{ $image_resource := resources.Get $thumbnail }} - - {{ if $image_resource }} - {{ $retouched := $image_resource.Fill $image_settings }} - {{ $thumbnail = $retouched.RelPermalink }} +
+ {{ range $members }} +
+
+ {{ $thumbnail := .thumbnail | default "images/person.png" }} + {{ $image_settings := site.Params.people.image_settings | default "500x500 webp q90 smart" }} + {{ $image_resource := resources.Get $thumbnail }} + {{ if $image_resource }} + {{ $retouched := $image_resource.Fill $image_settings }} + {{ $thumbnail = $retouched.RelPermalink }} + {{ end }} + {{ .name | anchorize }}-thumbnail +
+
{{ .name | title }}
+ {{ with .position }} +

{{ . | i18n | title }}

{{ end }} -
-
-
- {{ .name | anchorize }}-thumbnail -
-
-
-
{{ .name | title }}
- {{ with .position }} -

- {{ . | i18n | title }} -

- {{ end }} -

- {{ with .email }} - - - - {{ end }} - {{ with .homepage }} - - - - {{ end }} - {{ with .github }} - - - - {{ end }} -

-
-
-
-
-
-{{ end }} +
+ {{ with .email }} + Email + {{ end }} + {{ with .linkedin }} + LinkedIn + {{ end }} + {{ with .github }} + GitHub + {{ end }} +
+
+ {{ end }}
+ + diff --git a/static/icons/linkedin.svg b/static/icons/linkedin.svg new file mode 100644 index 0000000..30fc0e3 --- /dev/null +++ b/static/icons/linkedin.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file From 9559be9baf72b1eef4c1fe6faa5f547c7d2d9de0 Mon Sep 17 00:00:00 2001 From: beyzanurdeniz Date: Sat, 16 Nov 2024 17:44:38 +0300 Subject: [PATCH 2/4] simple change --- layouts/shortcodes/people.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/shortcodes/people.html b/layouts/shortcodes/people.html index 9405c00..5cb5e93 100644 --- a/layouts/shortcodes/people.html +++ b/layouts/shortcodes/people.html @@ -56,6 +56,7 @@
{{ .name | title }}
text-align: center; width: 300px; border: 1px solid #f0f0f0; + box-shadow: 0 4px 8px rgba(72, 72, 72, 0.1); border-radius: 10px; padding-top: 10px; padding-bottom: 10px; From 713f7d5a0b1273663a05677643b5a647474b03af Mon Sep 17 00:00:00 2001 From: beyzanurdeniz Date: Sat, 16 Nov 2024 17:51:35 +0300 Subject: [PATCH 3/4] linkedin link issue --- layouts/shortcodes/people.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/people.html b/layouts/shortcodes/people.html index 5cb5e93..172628d 100644 --- a/layouts/shortcodes/people.html +++ b/layouts/shortcodes/people.html @@ -34,7 +34,7 @@
{{ .name | title }}
Email {{ end }} {{ with .linkedin }} - LinkedIn + LinkedIn {{ end }} {{ with .github }} GitHub From eab3f83aa2faa5635af88c0c652d9d10a9052184 Mon Sep 17 00:00:00 2001 From: beyzanurdeniz Date: Sat, 16 Nov 2024 17:53:15 +0300 Subject: [PATCH 4/4] linkedin link issue --- layouts/shortcodes/people.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/people.html b/layouts/shortcodes/people.html index 172628d..bc4ee7f 100644 --- a/layouts/shortcodes/people.html +++ b/layouts/shortcodes/people.html @@ -34,7 +34,7 @@
{{ .name | title }}
Email {{ end }} {{ with .linkedin }} - LinkedIn + LinkedIn {{ end }} {{ with .github }} GitHub