Skip to content

Commit 517b30c

Browse files
authored
feat: add 2025 modal con (#18)
1 parent 0197ad9 commit 517b30c

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

themes/api-platform/layouts/_default/baseof.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<div class="relative w-full overflow-x-clip bg-white dark:bg-blue-black">
99
{{ partial "header.html" . }}
1010
{{ partial "mobilesidebar.html" . }}
11+
{{ partial "modalcon.html" . }}
1112
<div class="max-w-8xl mx-auto overflow-x-clip">
1213
<div class="flex flex-row items-start justify-start flex-wrap">
1314
{{ partial "sidebar.html" . }}

themes/api-platform/layouts/partials/modalcon.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414

1515

1616
document.addEventListener("mousedown", handleClickOutside);
17+
document.addEventListener("keydown", (event) => {
18+
if (event.key === "Escape") {
19+
if (open === true) closeModal();
20+
}
21+
});
22+
1723

1824
const checkLocalStorage = () => {
1925
const storedDate = localStorage.getItem("modal-con-schedule");
@@ -102,14 +108,16 @@
102108
</g>
103109
</svg>
104110
<img src="https://api-platform.com/images/con/logo.svg" alt="API Platform Conference" width="400" class="max-w-full mx-auto">
105-
<div class="border-px mt-4 border-white py-1 px-2 font-bold text-sm text-white uppercase inline-block">September 19-20, 2024 | Lille &amp; online</div>
111+
<div class="border-px mt-4 border-white py-1 px-2 font-bold text-sm text-white uppercase inline-block">September 18-19, 2025 | Lille &amp; online</div>
106112
</div>
107113
<div class="bg-white px-5 pb-12 pt-8">
108114
<div class="flex flex-col gap-4 items-center max-w-2xl text-center mx-auto">
109115
<p class="text-xs uppercase text-gray-400">The international conference on the API Platform Framework</p>
110-
<h2 class="text-blue-light text-2xl font-bold text-center">Get ready for game-changing announcements for the PHP community!</h2>
111-
<p class="font-light text-sm">The API Platform Conference 2024 is happening soon, <strong>and it's close to selling out</strong>.<br/>
112-
API Platform 4, Caddy web server, Xdebug, AI... Enjoy two days of inspiring talks with our friendly community and our amazing speakers.</p>
116+
<h2 class="text-blue-light text-2xl font-bold text-center">Get ready for our special anniversary edition!</h2>
117+
<p class="font-light text-sm">Lear more about the event, register for the conference, and get ready for two days of inspiration, ideas, and knowledge-sharing with our incredible lineup of renowned specialists and advocates.
118+
<br />
119+
<br />
120+
This edition is shaping up to be our biggest yet — secure your seat now at the best price before we sell out!</p>
113121
<a href="/con" class="font-title rounded-3xl border-2 inline-flex items-center justify-center font-semibold uppercase transition-all hover:brightness-125 hover:scale-105 bg-pink border-pink text-white py-1 px-5 text-lg cursor-pointer mt-4 flex-row gap-1" aria-label=""><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="w-5 h-5">
114122
<path fill-rule="evenodd" d="M12.963 2.286a.75.75 0 0 0-1.071-.136 9.742 9.742 0 0 0-3.539 6.176 7.547 7.547 0 0 1-1.705-1.715.75.75 0 0 0-1.152-.082A9 9 0 1 0 15.68 4.534a7.46 7.46 0 0 1-2.717-2.248ZM15.75 14.25a3.75 3.75 0 1 1-7.313-1.172c.628.465 1.35.81 2.133 1a5.99 5.99 0 0 1 1.925-3.546 3.75 3.75 0 0 1 3.255 3.718Z" clip-rule="evenodd" />
115123
</svg>

0 commit comments

Comments
 (0)