From 211ce7cd9fb240d2e7ff4c5223cceae0c00c1aac Mon Sep 17 00:00:00 2001 From: beyzanurdeniz Date: Sat, 16 Nov 2024 17:21:54 +0300 Subject: [PATCH 1/3] first card design --- layouts/shortcodes/people.html | 156 +++++++++++++++++++++++---------- static/icons/linkedin.svg | 3 + 2 files changed, 112 insertions(+), 47 deletions(-) create mode 100644 static/icons/linkedin.svg diff --git a/layouts/shortcodes/people.html b/layouts/shortcodes/people.html index 72fc524..57185f8 100644 --- a/layouts/shortcodes/people.html +++ b/layouts/shortcodes/people.html @@ -12,52 +12,114 @@ {{ 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 .research_interests }} +

{{ . }}

+ {{ 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 fed853aace7ab34d2a35e27697303684f4cf3d6f Mon Sep 17 00:00:00 2001 From: beyzanurdeniz Date: Sat, 16 Nov 2024 17:51:49 +0300 Subject: [PATCH 2/3] 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 57185f8..1b167b3 100644 --- a/layouts/shortcodes/people.html +++ b/layouts/shortcodes/people.html @@ -38,7 +38,7 @@
{{ .name | title }}
Email {{ end }} {{ with .linkedin }} - LinkedIn + LinkedIn {{ end }} {{ with .github }} GitHub From 487c033ab3d77c5a3789f3b2258bfac9abebeac4 Mon Sep 17 00:00:00 2001 From: beyzanurdeniz Date: Sat, 16 Nov 2024 17:52:49 +0300 Subject: [PATCH 3/3] 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 1b167b3..1337003 100644 --- a/layouts/shortcodes/people.html +++ b/layouts/shortcodes/people.html @@ -38,7 +38,7 @@
{{ .name | title }}
Email {{ end }} {{ with .linkedin }} - LinkedIn + LinkedIn {{ end }} {{ with .github }} GitHub