From e449abd0ba130585d1f4bef122e65fd6367ba85d Mon Sep 17 00:00:00 2001 From: beyzanurdeniz Date: Tue, 19 Nov 2024 09:57:50 +0300 Subject: [PATCH 1/3] research areas bigger card --- layouts/shortcodes/people_with_research.html | 141 +++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 layouts/shortcodes/people_with_research.html diff --git a/layouts/shortcodes/people_with_research.html b/layouts/shortcodes/people_with_research.html new file mode 100644 index 0000000..aacda3b --- /dev/null +++ b/layouts/shortcodes/people_with_research.html @@ -0,0 +1,141 @@ +{{ $ctx := newScratch }} + +{{ $tag := .Get "tag" }} +{{ $columns := .Get "cols" | default "2" }} + +{{ $ctx.Set "tag" $tag }} +{{ $ctx.Set "members" slice }} +{{ range $key, $value := site.Data.bouncmpe.people }} +{{if intersect $value.tags (slice $tag) }} +{{ $ctx.Set "members" ($ctx.Get "members" | append $value) }} +{{ end }} +{{ 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 }} + {{ end }} + {{ .name | anchorize }}-thumbnail +
+
+
{{ .name | title }}
+ {{ with .position }} +

{{ . | i18n | title }}

+ {{ end }} + {{ with .research_areas }} +
+ {{ $lastIndex := sub (len .) 1 }} + {{ range $index, $area := . }} + {{ $area | title }}{{ if ne $index $lastIndex }}, {{ end }} + {{ end }} +
+ {{ end }} + + +
+ {{ with .email }} + Email + {{ end }} + {{ with .linkedin }} + LinkedIn + {{ end }} + {{ with .github }} + GitHub + {{ end }} +
+
+
+ {{ end }} + \ No newline at end of file From 85bbc3a2929c65731c791efe164f801bf21471d3 Mon Sep 17 00:00:00 2001 From: beyzanurdeniz Date: Tue, 19 Nov 2024 10:02:21 +0300 Subject: [PATCH 2/3] simple style change --- layouts/shortcodes/people_with_research.html | 5 ----- 1 file changed, 5 deletions(-) diff --git a/layouts/shortcodes/people_with_research.html b/layouts/shortcodes/people_with_research.html index aacda3b..ac907fe 100644 --- a/layouts/shortcodes/people_with_research.html +++ b/layouts/shortcodes/people_with_research.html @@ -74,11 +74,6 @@
{{ .name | title }}
transition: transform 0.3s ease, box-shadow 0.3s ease; } -.side-profile-card:hover { - transform: translateY(-8px); - box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); -} - .side-image { width: 150px; height: 150px; From 9d0844988ea5392010ed459725e411c55dcefdae Mon Sep 17 00:00:00 2001 From: beyzanurdeniz Date: Tue, 19 Nov 2024 10:03:47 +0300 Subject: [PATCH 3/3] linkedin logo --- static/icons/linkedin.svg | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 static/icons/linkedin.svg 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