Skip to content

Commit 5176327

Browse files
committed
update challenge page
1 parent 1dda15f commit 5176327

File tree

7 files changed

+41
-13
lines changed

7 files changed

+41
-13
lines changed

lib/algora_web/endpoint.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ defmodule AlgoraWeb.Endpoint do
7171
defp canonical_host(%{host: "docs.algora.io"} = conn, _opts),
7272
do: redirect_to_canonical_host(conn, Path.join(["/docs", conn.request_path]))
7373

74+
defp canonical_host(%{host: "clickhouse.algora.io"} = conn, _opts) do
75+
Algora.Activities.alert("‼️ Someone is viewing https://clickhouse.algora.io", :critical)
76+
redirect_to_canonical_host(conn, "/challenges/clickhouse")
77+
end
78+
7479
defp canonical_host(%{host: host} = conn, _opts) do
7580
case String.split(host, ".") do
7681
[subdomain, "algora", "io"] when subdomain not in ["app", "console", "www", "sitemaps"] ->

lib/algora_web/live/challenges/clickhouse_live.ex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule AlgoraWeb.Challenges.ClickhouseLive do
1515
|> assign(:page_title, "ClickHouse Challenge")
1616
|> assign(
1717
:page_description,
18-
"Contribute to ClickHouse to win an interview and cash prizes!"
18+
"Contribute to ClickHouse to win interviews and bounties!"
1919
)
2020
|> assign(:page_image, "#{AlgoraWeb.Endpoint.url()}/images/challenges/clickhouse/og.png")
2121
|> assign(:jobs, jobs)
@@ -36,7 +36,7 @@ defmodule AlgoraWeb.Challenges.ClickhouseLive do
3636
<article>
3737
<div class="text-white">
3838
<div class="relative z-20">
39-
<section class="mb-12 min-h-[calc(100svh-280px)] md:min-h-0">
39+
<section class="mb-12 min-h-[calc(100svh-36px)] md:min-h-0">
4040
<div class="relative z-20 mx-auto max-w-[100rem] px-6 lg:px-8">
4141
<div class="max-w-5xl pt-24 2xl:pt-72">
4242
<a
@@ -53,17 +53,17 @@ defmodule AlgoraWeb.Challenges.ClickhouseLive do
5353
style="aspect-ratio: 1200/300;"
5454
/>
5555
</a>
56-
<h1 class="mt-6 mb-2 text-[1.4rem] font-black tracking-tighter mix-blend-exclusion sm:text-5xl/[3rem] md:text-6xl/[4rem] lg:text-7xl/[5rem]">
56+
<h1 class="mt-6 mb-2 text-2xl font-black tracking-tighter mix-blend-exclusion sm:text-5xl/[3rem] md:text-6xl/[4rem] lg:text-7xl/[5rem]">
5757
Contribute to
5858
<span style="background: radial-gradient(53.44% 245.78% at 13.64% 46.56%, rgb(255, 215, 0) 0%, rgb(255, 204, 0) 100%) text; -webkit-text-fill-color: transparent;">
5959
ClickHouse
6060
</span>
61-
<br /> Win interviews & rewards
61+
<br /> Win interviews & bounties
6262
</h1>
6363
<p class="max-w-xl xl:max-w-2xl mt-4 text-base font-medium tracking-tight text-white/90 shadow-black [text-shadow:_0_1px_0_var(--tw-shadow-color)] md:mt-6 md:text-lg md:text-white/80">
6464
ClickHouse is building the world's fastest real-time analytics database. From Postgres migrations to AI-powered query generation, we're pushing the boundaries of what's possible with databases.
6565
<br /><br />
66-
Join us in this public take-home challenge where you can showcase your skills. Top 10 submissions get guaranteed interviews, and the top 3 winners receive cash prizes!
66+
Join us in this public take-home challenge where you can showcase your skills. Top 10 submissions get guaranteed interviews, and the top 3 winners receive bounties!
6767
</p>
6868
</div>
6969
</div>
@@ -115,7 +115,7 @@ defmodule AlgoraWeb.Challenges.ClickhouseLive do
115115
class="inline-flex items-center gap-2 text-sm text-[#ffcc00] hover:text-[#ffd700] transition-colors font-medium mt-auto"
116116
href="https://github.com/PeerDB-io/peerdb"
117117
>
118-
<.icon name="github" class="w-4 h-4" /> View Repository →
118+
<.icon name="github" class="w-4 h-4 shrink-0" /> View Repository →
119119
</a>
120120
</div>
121121
</div>
@@ -148,15 +148,15 @@ defmodule AlgoraWeb.Challenges.ClickhouseLive do
148148
class="inline-flex items-center gap-2 text-sm text-[#ffcc00] hover:text-[#ffd700] transition-colors font-medium mt-auto"
149149
href="https://github.com/ClickHouse/ai-sdk-cpp"
150150
>
151-
<.icon name="github" class="w-4 h-4" /> View Repository →
151+
<.icon name="github" class="w-4 h-4 shrink-0" /> View Repository →
152152
</a>
153153
<a
154154
target="_blank"
155155
rel="noopener"
156156
class="inline-flex items-center gap-2 text-sm text-[#ffcc00] hover:text-[#ffd700] transition-colors font-medium mt-auto"
157157
href="https://clickhouse.com/docs/interfaces/cli#ai-sql-generation"
158158
>
159-
<.icon name="tabler-book" class="w-4 h-4" /> View Docs →
159+
<.icon name="tabler-book" class="w-4 h-4 shrink-0" /> View Docs →
160160
</a>
161161
</div>
162162
</div>
@@ -189,7 +189,7 @@ defmodule AlgoraWeb.Challenges.ClickhouseLive do
189189
class="inline-flex items-center gap-2 text-sm text-[#ffcc00] hover:text-[#ffd700] transition-colors font-medium mt-auto"
190190
href="https://github.com/ethanniser/NextFaster"
191191
>
192-
<.icon name="github" class="w-4 h-4" /> View Repository →
192+
<.icon name="github" class="w-4 h-4 shrink-0" /> View Repository →
193193
</a>
194194
</div>
195195
</div>
@@ -299,7 +299,7 @@ defmodule AlgoraWeb.Challenges.ClickhouseLive do
299299
</div>
300300
<%= if job.location do %>
301301
<div class="flex items-center gap-2 text-sm text-muted-foreground">
302-
<.icon name="tabler-map-pin" class="w-4 h-4" />
302+
<.icon name="tabler-map-pin" class="w-4 h-4 shrink-0" />
303303
<span>{job.location}</span>
304304
</div>
305305
<% end %>

lib/algora_web/router.ex

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,17 @@ defmodule AlgoraWeb.Router do
4545
scope "/" do
4646
forward "/asset", AlgoraWeb.Plugs.RewriteAssetsPlug, upstream: :assets_url
4747
forward "/storage", AlgoraWeb.Plugs.RewriteStoragePlug, upstream: :storage_url
48-
forward "/ingest/static", AlgoraWeb.Plugs.RewriteIngestStaticPlug, upstream: :ingest_static_url
48+
49+
forward "/ingest/static", AlgoraWeb.Plugs.RewriteIngestStaticPlug,
50+
upstream: :ingest_static_url
51+
4952
forward "/ingest", AlgoraWeb.Plugs.RewriteIngestPlug, upstream: :ingest_url
50-
forward "/observe/script.js", AlgoraWeb.Plugs.RewriteObserveJSPlug, upstream: "https://plausible.io/js/script.js"
51-
forward "/observe/event", AlgoraWeb.Plugs.RewriteObserveEventPlug, upstream: "https://plausible.io/api/event"
53+
54+
forward "/observe/script.js", AlgoraWeb.Plugs.RewriteObserveJSPlug,
55+
upstream: "https://plausible.io/js/script.js"
56+
57+
forward "/observe/event", AlgoraWeb.Plugs.RewriteObserveEventPlug,
58+
upstream: "https://plausible.io/api/event"
5259

5360
get "/health", AlgoraWeb.HealthController, :index
5461
end
@@ -116,6 +123,7 @@ defmodule AlgoraWeb.Router do
116123
live "/challenges/turso", Challenges.LimboLive
117124
live "/challenges/activepieces", Challenges.ActivepiecesLive
118125
live "/challenges/primeintellect", Challenges.PrimeintellectLive
126+
live "/challenges/clickhouse", Challenges.ClickhouseLive
119127
live "/challenges/atopile", Challenges.AtopileLive
120128
live "/challenges/electric", Challenges.ElectricLive
121129
live "/challenges/prettier", Challenges.PrettierLive
560 KB
Loading
1.19 MB
Loading
51.9 KB
Loading
Lines changed: 15 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)