Skip to content

Commit bb0b249

Browse files
authored
Merge pull request #3489 from codeeu/dev
Dev
2 parents 6887906 + 3c294d5 commit bb0b249

File tree

1 file changed

+40
-25
lines changed

1 file changed

+40
-25
lines changed

resources/views/hackathons/index.blade.php

Lines changed: 40 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -165,32 +165,47 @@ class="inline-block bg-primary hover:bg-hover-orange rounded-full py-4 px-6 md:p
165165
{{ $page->contentForLocale('extra_button_text') }}
166166
</a>
167167
@endif
168-
<a
169-
class="inline-block bg-primary hover:bg-hover-orange rounded-full py-4 px-6 md:px-10 font-semibold text-base w-full md:w-auto text-center text-[#20262C] transition-all duration-300"
170-
target="_blank" href="{{ ($dynamic && $page && $page->recap_button_link) ? $page->recap_button_link : 'https://eventornado.com/event/eu-codeweek-hackathon2024#Finals%20-%20EU%20Code%20Week%20Hackathon%202024' }}"
171-
>
172-
@if($dynamic && $page && $page->contentForLocale('recap_button_text'))
173-
{{ $page->contentForLocale('recap_button_text') }}
174-
@else
175-
Hackathons Final 2024 Recap
168+
169+
@if($dynamic)
170+
@if($page && $page->recap_button_link && $page->contentForLocale('recap_button_text'))
171+
<a
172+
class="inline-block bg-primary hover:bg-hover-orange rounded-full py-4 px-6 md:px-10 font-semibold text-base w-full md:w-auto text-center text-[#20262C] transition-all duration-300"
173+
target="_blank" href="{{ $page->recap_button_link }}"
174+
>
175+
{{ $page->contentForLocale('recap_button_text') }}
176+
</a>
177+
@endif
178+
179+
@if($page && $page->toolkit_button_link && $page->contentForLocale('toolkit_button_text'))
180+
<a
181+
class="flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-3 px-8 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] group"
182+
target="_blank" href="{{ $page->toolkit_button_link }}"
183+
>
184+
<span>{{ $page->contentForLocale('toolkit_button_text') }}</span>
185+
<div class="flex overflow-hidden gap-2 w-4">
186+
<img src="/images/arrow-right-icon.svg" class="duration-500 transform -translate-x-6 min-w-4 group-hover:translate-x-0" />
187+
<img src="/images/arrow-right-icon.svg" class="duration-500 transform -translate-x-6 min-w-4 group-hover:translate-x-0" />
188+
</div>
189+
</a>
176190
@endif
177-
</a>
178-
<a
179-
class="flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-3 px-8 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] group"
180-
target="_blank" href="{{ ($dynamic && $page && $page->toolkit_button_link) ? $page->toolkit_button_link : '/docs/C4EU_D2.7 Code Week Event Hackathon Design & Toolkit Final 18.06.2025.pdf' }}"
181-
>
182-
<span>
183-
@if($dynamic && $page && $page->contentForLocale('toolkit_button_text'))
184-
{{ $page->contentForLocale('toolkit_button_text') }}
185-
@else
186-
Hackathon 2025 Toolkit
187-
@endif
188-
</span>
189-
<div class="flex overflow-hidden gap-2 w-4">
190-
<img src="/images/arrow-right-icon.svg" class="duration-500 transform -translate-x-6 min-w-4 group-hover:translate-x-0" />
191-
<img src="/images/arrow-right-icon.svg" class="duration-500 transform -translate-x-6 min-w-4 group-hover:translate-x-0" />
192-
</div>
193-
</a>
191+
@else
192+
<a
193+
class="inline-block bg-primary hover:bg-hover-orange rounded-full py-4 px-6 md:px-10 font-semibold text-base w-full md:w-auto text-center text-[#20262C] transition-all duration-300"
194+
target="_blank" href="https://eventornado.com/event/eu-codeweek-hackathon2024#Finals%20-%20EU%20Code%20Week%20Hackathon%202024"
195+
>
196+
Hackathons Final 2024 Recap
197+
</a>
198+
<a
199+
class="flex justify-center items-center gap-2 text-[#1C4DA1] border-solid border-2 border-[#1C4DA1] rounded-full py-3 px-8 font-semibold text-lg transition-all duration-300 hover:bg-[#E8EDF6] group"
200+
target="_blank" href="/docs/C4EU_D2.7 Code Week Event Hackathon Design & Toolkit Final 18.06.2025.pdf"
201+
>
202+
<span>Hackathon 2025 Toolkit</span>
203+
<div class="flex overflow-hidden gap-2 w-4">
204+
<img src="/images/arrow-right-icon.svg" class="duration-500 transform -translate-x-6 min-w-4 group-hover:translate-x-0" />
205+
<img src="/images/arrow-right-icon.svg" class="duration-500 transform -translate-x-6 min-w-4 group-hover:translate-x-0" />
206+
</div>
207+
</a>
208+
@endif
194209
</div>
195210
</div>
196211
</div>

0 commit comments

Comments
 (0)