Skip to content

Commit e5b7566

Browse files
committed
button env img
1 parent bbcd08a commit e5b7566

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

src/_includes/components/button.njk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% macro button(text, url, lime_bg=false) %}
1+
{% macro button(text, url, lime_bg=false, env = env) %}
22
{% if lime_bg %}
33
{% set bg_class = "bg-pycon-lime hover:bg-pycon-lime/90" %}
44
{% set text_class = "text-black" %}
@@ -12,7 +12,7 @@
1212
{{ text }}
1313
</span>
1414
<div class="flex justify-center items-center w-8 h-8 bg-white rounded-full border border-black group-hover:rotate-45 transition-transform duration-300">
15-
<img src="{{ '/img/assets/arrow-vector.svg' | url }}" alt="Arrow" class="w-4 h-3 group-hover:scale-110 transition-transform duration-300" />
15+
<img src="{{ env.baseUrl }}img/assets/arrow-vector.svg" alt="Arrow" class="w-4 h-3 group-hover:scale-110 transition-transform duration-300" />
1616
</div>
1717
</a>
1818
{% endmacro %}

src/_includes/footer.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<footer class="bg-blue-600 flex text-white mb-0 bottom-0 w-full relative">
33
<div class="relative mx-[6%] md:mx-[12%] mt-24 pb-8 md:pt-20 md:pb-12 w-full md:w-auto">
44
<div class="xl:scale-125 text-center md:text-left">
5-
{{ button(text="Become a Volunteer", url="https://docs.google.com/forms/d/e/1FAIpQLSdX2LEom11BbWDiLUiQp1rmeNX9l7J8bfszGidsRDoExy0D5A/viewform", lime_bg=true) }}
5+
{{ button(text="Become a Volunteer", url="https://docs.google.com/forms/d/e/1FAIpQLSdX2LEom11BbWDiLUiQp1rmeNX9l7J8bfszGidsRDoExy0D5A/viewform", lime_bg=true, env = env) }}
66
</div>
77
<div class="relative mt-10 pb-4 xl:scale-125 scale-100">
88
<div class="text-[#D7FF7B] text-lg md:text-2xl font-normal leading-tight md:leading-loose text-center md:text-left">Connect Us on</div>

src/_includes/landing/communities.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</p>
1010

1111
<div class="w-fit">
12-
{{ button(text="Become a Volunteer", url="https://docs.google.com/forms/d/e/1FAIpQLSdX2LEom11BbWDiLUiQp1rmeNX9l7J8bfszGidsRDoExy0D5A/viewform", lime_bg=true) }}
12+
{{ button(text="Become a Volunteer", url="https://docs.google.com/forms/d/e/1FAIpQLSdX2LEom11BbWDiLUiQp1rmeNX9l7J8bfszGidsRDoExy0D5A/viewform", lime_bg=true, env = env) }}
1313
</div>
1414
</div>
1515
<div class="hidden lg:block relative h-[420px]">

src/_includes/landing/sponsors.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
PyCon India is completely driven by volunteers. Sponsoring the event helps to sustain and grow the conference as well as
1111
the Community. Sponsor help in making the conference affordable, and maintaining the inventory for the conference.
1212
</p>
13-
{{ button(text="Download Prospectus", url="/PyConIndia2025SponsorshipBrochure.pdf", lime_bg=true) }}
13+
{{ button(text="Download Prospectus", url="/PyConIndia2025SponsorshipBrochure.pdf", lime_bg=true, env = env) }}
1414
</div>
1515
<!-- Desktop image -->
1616
<div class="hidden md:flex justify-end -mt-72">

src/cfp.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ layout: base.njk
117117
</li>
118118
</ul>
119119
<div class="flex justify-center pt-8">
120-
{{ button(text="Submit a Proposal", url="https://cfp.in.pycon.org/2025/cfp", lime_bg=true) }}
120+
{{ button(text="Submit a Proposal", url="https://cfp.in.pycon.org/2025/cfp", lime_bg=true, env = env) }}
121121
</div>
122122
</div>
123123
</div>

src/tickets.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ layout: base.njk
211211
</li>
212212
</ul>
213213
<div class="flex justify-center pt-8">
214-
{{ button(text="Buy Tickets !!", url="https://konfhub.com/pyconindia2025", lime_bg=true) }}
214+
{{ button(text="Buy Tickets !!", url="https://konfhub.com/pyconindia2025", lime_bg=true, env = env) }}
215215
</div>
216216
</div>
217217
</div>

src/venue.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ layout: base.njk
3030
<p>Hosur Road, Lakkasandra,</p>
3131
<p>Bengaluru - 560029</p>
3232
<p>Landmark: Near Dairy Circle</p>
33-
<div class="pt-8">{{ button(text="Find Direction", url="https://maps.app.goo.gl/jwUM4FYX6G35YkYe7?g_st=com.google.maps.preview.copy", lime_bg=true) }}</div>
33+
<div class="pt-8">{{ button(text="Find Direction", url="https://maps.app.goo.gl/jwUM4FYX6G35YkYe7?g_st=com.google.maps.preview.copy", lime_bg=true, env = env) }}</div>
3434
</div>
3535
<div class="w-[90%] lg:w-[70%] xl:w-[52%] pt-24 pr-4 mx-auto lg:ml-auto">
3636
{% call card(bg="lime") -%}

0 commit comments

Comments
 (0)