Skip to content

Commit f0994b8

Browse files
committed
update the speakers page
Signed-off-by: Nabarun Pal <[email protected]>
1 parent b14655a commit f0994b8

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/program/speakers.njk

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ layout: base.njk
2727
<div class="w-60 h-48 relative group">
2828
<div class="absolute inset-0">
2929
<div class="w-full h-full">
30-
{{ imgContainer(width=220, height=180, depth=12, frontBg="lavender", leftBg="purple", topBg="purple", url= person.imageLink) }}
30+
{% if person.imageLink %}
31+
{{ imgContainer(width=180, height=180, depth=12, frontBg="lavender", leftBg="purple", topBg="purple", url= person.imageLink) }}
32+
{% else %}
33+
{{ imgContainer(width=180, height=180, depth=12, frontBg="lavender", leftBg="purple", topBg="purple", url= "https://in.pycon.org/2024/image/ZadraSol.webp") }}
34+
{% endif %}
3135
</div>
3236
</div>
3337
</div>
@@ -36,8 +40,9 @@ layout: base.njk
3640
<p class="mt-2 ml-2 mr-4 mb-1 text-xl font-light text-left w-52">{{ person.name }}</p>
3741

3842
<!-- Title -->
39-
<p class="mt-1 ml-2 mr-4 mb-1 text-xs font-light text-left w-52">{{person.title}} Change this</p>
40-
43+
{% if person.title %}
44+
<p class="mt-1 ml-2 mr-4 mb-1 text-xs font-light text-left w-52">{{person.title}}</p>
45+
{% endif %}
4146
<!-- Socials -->
4247
<div class="flex ml-2 mr-4 justify-left items-start gap-1 md:gap-4 flex-wrap w-52">
4348
{% if person.socials.linkedin %}
@@ -50,7 +55,7 @@ layout: base.njk
5055
<i class="fa fa-globe text-md md:text-xl"></i>
5156
</a>
5257
{% endif %}
53-
{% if person.socials.twitter %}
58+
{% if person.socials.x %}
5459
<a href="{{ person.socials.twitter }}" target="_blank" aria-label="Twitter" class="p-1 rounded-full outline outline-1 outline-lime-300 flex justify-center items-center hover:scale-110 hover:text-[#4E62F5] transition-transform duration-200 no-underline">
5560
<i class="fab fa-x-twitter text-md md:text-xl"></i>
5661
</a>
@@ -65,8 +70,8 @@ layout: base.njk
6570
<i class="fab fa-youtube text-md md:text-xl"></i>
6671
</a>
6772
{% endif %}
68-
{% if person.socials.insta %}
69-
<a href="{{ person.socials.insta }}" target="_blank" aria-label="Instagram" class="p-1 rounded-full outline outline-1 outline-lime-300 flex justify-center items-center hover:scale-110 hover:text-[#4E62F5] transition-transform duration-200 no-underline">
73+
{% if person.socials.instagram %}
74+
<a href="{{ person.socials.instagram }}" target="_blank" aria-label="Instagram" class="p-1 rounded-full outline outline-1 outline-lime-300 flex justify-center items-center hover:scale-110 hover:text-[#4E62F5] transition-transform duration-200 no-underline">
7075
<i class="fab fa-instagram text-md md:text-xl"></i>
7176
</a>
7277
{% endif %}

0 commit comments

Comments
 (0)