Skip to content

Commit f812c6e

Browse files
authored
feat: limbo challenge (#144)
1 parent 290ca88 commit f812c6e

File tree

10 files changed

+482
-3
lines changed

10 files changed

+482
-3
lines changed

config/config.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ config :algora,
2424
{"/onboarding/solver", "/onboarding/dev"},
2525
{"/:org/contract/:id", "/:org/contracts/:id"},
2626
{"/org/*path", "/*path"},
27-
{"/@/:handle", "/:handle/profile"}
27+
{"/@/:handle", "/:handle/profile"},
28+
{"/challenges/limbo", "/challenges/turso"}
2829
]
2930

3031
# Configures the endpoint

lib/algora_web/components/header.ex

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,19 @@ defmodule AlgoraWeb.Components.Header do
1515
end
1616

1717
attr :class, :string, default: nil
18+
attr :hide_banner, :boolean, default: false
1819

1920
def header(assigns) do
2021
~H"""
2122
<header class="absolute inset-x-0 top-0 z-50">
22-
<AlgoraWeb.Components.Banner.banner />
23+
<%= if !@hide_banner do %>
24+
<AlgoraWeb.Components.Banner.banner />
25+
<% end %>
2326
<nav
2427
class={
2528
classes([
26-
"-mt-3 mx-auto container flex items-center justify-between p-6 lg:px-8",
29+
"mx-auto flex container items-center justify-between p-6 lg:px-8",
30+
!@hide_banner && "-mt-3",
2731
@class
2832
])
2933
}

lib/algora_web/live/challenges/limbo_live.ex

Lines changed: 465 additions & 0 deletions
Large diffs are not rendered by default.

lib/algora_web/router.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ defmodule AlgoraWeb.Router do
109109
live "/crowdfund", CrowdfundLive, :index
110110
live "/pricing", PricingLive
111111
live "/challenges", ChallengesLive
112+
live "/challenges/turso", Challenges.LimboLive
112113
live "/challenges/prettier", Challenges.PrettierLive
113114
live "/challenges/golem", Challenges.GolemLive
114115
live "/challenges/tsperf", Challenges.TsperfLive
143 KB
Loading
32.8 KB
Loading
806 KB
Loading
572 KB
Loading
35 KB
Loading
Lines changed: 8 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)