Skip to content

Commit 3e38184

Browse files
Tarun9005anistark
authored andcommitted
disabling submit proposal button and showing message
1 parent d76d7cc commit 3e38184

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/_includes/components/button.njk

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% macro button(text, url, lime_bg=false, env = env) %}
1+
{% macro button(text, url, lime_bg=false, env = env, disabled=false) %}
22
{% if lime_bg %}
33
{% set bg_class = "bg-pycon-lime hover:bg-pycon-lime/90" %}
44
{% set text_class = "text-black" %}
@@ -7,8 +7,13 @@
77
{% set text_class = "text-pycon-lime" %}
88
{% endif %}
99

10-
<a href="{{ url }}" class="group no-underline inline-flex items-center gap-2 px-4 py-2 mr-2 mt-2 {{ bg_class }} rounded-full border border-black hover:-translate-y-0.5 hover:shadow-md transition-all duration-300 focus:outline-2 focus:outline-offset-2">
11-
<span class="font-['Acid_Grotesk'] text-lg {{ text_class }} leading-relaxed whitespace-nowrap group-hover:-translate-x-1 transition-transform duration-200">
10+
<a
11+
href="{{ url if not disabled else '#' }}"
12+
class="group no-underline inline-flex items-center gap-2 px-4 py-2 {{ bg_class }} rounded-full border border-black hover:-translate-y-0.5 hover:shadow-md transition-all duration-300 focus:outline-2 focus:outline-offset-2
13+
{% if disabled %}opacity-50 cursor-not-allowed pointer-events-none hover:!translate-y-0 hover:!shadow-none{% endif %}
14+
"
15+
>
16+
<span class="font-['Acid_Grotesk'] text-lg {{ text_class }} leading-relaxed whitespace-nowrap group-hover:-translate-x-1 transition-transform duration-200">
1217
{{ text }}
1318
</span>
1419
<div class="flex justify-center items-center w-8 h-8 bg-white rounded-full border border-black group-hover:rotate-40 transition-transform duration-300">

src/cfp.njk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,10 @@ 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, env = env) }}
120+
{{ button(text="Submit a Proposal", url="https://cfp.in.pycon.org/2025/cfp", lime_bg=true, env = env, disabled=true) }}
121+
</div>
122+
<div class="text-center mt-4 text-red-600 font-semibold">
123+
<p>Proposals are closed. Thank you for your submissions!</p>
121124
</div>
122125
</div>
123126
</div>

0 commit comments

Comments
 (0)