diff --git a/.drone.yml b/.drone.yml
index 1078fe8..a4ef025 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -1,6 +1,6 @@
kind: pipeline
type: docker
-name: memex
+name: memEx
steps:
- name: restore-cache
diff --git a/lib/memex_web/components/topbar.ex b/lib/memex_web/components/topbar.ex
index abaa8c7..b22db1f 100644
--- a/lib/memex_web/components/topbar.ex
+++ b/lib/memex_web/components/topbar.ex
@@ -20,7 +20,7 @@ defmodule MemexWeb.Components.Topbar do
navigate={Routes.live_path(Endpoint, HomeLive)}
class="mx-2 my-1 leading-5 text-xl text-primary-400 hover:underline"
>
- <%= gettext("memex") %>
+ <%= gettext("memEx") %>
<%= if @title_content do %>
diff --git a/lib/memex_web/live/faq_live.ex b/lib/memex_web/live/faq_live.ex
new file mode 100644
index 0000000..4584a62
--- /dev/null
+++ b/lib/memex_web/live/faq_live.ex
@@ -0,0 +1,12 @@
+defmodule MemexWeb.FaqLive do
+ @moduledoc """
+ Liveview for the faq page
+ """
+
+ use MemexWeb, :live_view
+
+ @impl true
+ def mount(_params, _session, socket) do
+ {:ok, socket |> assign(page_title: gettext("faq"))}
+ end
+end
diff --git a/lib/memex_web/live/faq_live.html.heex b/lib/memex_web/live/faq_live.html.heex
new file mode 100644
index 0000000..750e9b5
--- /dev/null
+++ b/lib/memex_web/live/faq_live.html.heex
@@ -0,0 +1,18 @@
+
+
+ <%= gettext("faq") %>
+
+
+
+
+
+
+
+ <%= gettext("what is this?") %>
+
+
+ <%= gettext("this is a memex, used to document your notes") %>
+
+
+
+
diff --git a/lib/memex_web/live/home_live.ex b/lib/memex_web/live/home_live.ex
index 0cfbdd8..6c7ecfe 100644
--- a/lib/memex_web/live/home_live.ex
+++ b/lib/memex_web/live/home_live.ex
@@ -5,41 +5,11 @@ defmodule MemexWeb.HomeLive do
use MemexWeb, :live_view
alias Memex.Accounts
+ alias MemexWeb.{Endpoint, FaqLive}
@impl true
def mount(_params, _session, socket) do
admins = Accounts.list_users_by_role(:admin)
- {:ok, socket |> assign(page_title: gettext("home"), query: "", results: %{}, admins: admins)}
- end
-
- @impl true
- def handle_event("suggest", %{"q" => query}, socket) do
- {:noreply, socket |> assign(results: search(query), query: query)}
- end
-
- @impl true
- def handle_event("search", %{"q" => query}, socket) do
- case search(query) do
- %{^query => vsn} ->
- {:noreply, socket |> redirect(external: "https://hexdocs.pm/#{query}/#{vsn}")}
-
- _ ->
- {:noreply,
- socket
- |> put_flash(:error, "No dependencies found matching \"#{query}\"")
- |> assign(results: %{}, query: query)}
- end
- end
-
- defp search(query) do
- if not MemexWeb.Endpoint.config(:code_reloader) do
- raise "action disabled when not in development"
- end
-
- for {app, desc, vsn} <- Application.started_applications(),
- app = to_string(app),
- String.starts_with?(app, query) and not List.starts_with?(desc, ~c"ERTS"),
- into: %{},
- do: {app, vsn}
+ {:ok, socket |> assign(page_title: gettext("home"), admins: admins)}
end
end
diff --git a/lib/memex_web/live/home_live.html.heex b/lib/memex_web/live/home_live.html.heex
index 8628b60..9a8a4b2 100644
--- a/lib/memex_web/live/home_live.html.heex
+++ b/lib/memex_web/live/home_live.html.heex
@@ -1,13 +1,12 @@
-
-
- <%= gettext("memex") %>
+
+
+ <%= gettext("memEx") %>
-
+
<%= gettext("notes:") %>
@@ -16,8 +15,7 @@
-
+
<%= gettext("contexts:") %>
@@ -26,8 +24,7 @@
-
+
<%= gettext("pipelines:") %>
@@ -35,6 +32,15 @@
<%= gettext("document your processes, attaching contexts to each step") %>
+
+
+ <.link
+ navigate={Routes.live_path(Endpoint, FaqLive)}
+ class="link title text-primary-400 text-lg"
+ >
+ <%= gettext("read more on how to use %{name}", name: "memEx") %>
+
+