diff --git a/assets/tailwind.config.js b/assets/tailwind.config.js index bfc2a00..22220bb 100644 --- a/assets/tailwind.config.js +++ b/assets/tailwind.config.js @@ -1,6 +1,6 @@ module.exports = { mode: "jit", - purge: [ + content: [ "./js/**/*.js", "../lib/*_web/**/*.*ex" ], diff --git a/lib/reaproche_web/live/page_view_live.ex b/lib/reaproche_web/live/page_view_live.ex new file mode 100644 index 0000000..97a78a0 --- /dev/null +++ b/lib/reaproche_web/live/page_view_live.ex @@ -0,0 +1,6 @@ +defmodule ReaprocheWeb.PageViewLive do + use ReaprocheWeb, :live_view + def mount(_params, _, socket) do + {:ok, socket} + end +end diff --git a/lib/reaproche_web/live/page_view_live.html.heex b/lib/reaproche_web/live/page_view_live.html.heex new file mode 100644 index 0000000..be0376c --- /dev/null +++ b/lib/reaproche_web/live/page_view_live.html.heex @@ -0,0 +1,43 @@ +
+

Reaproche

+

Agissons ensemble pour se faire entendre

+

La visite est une étape à part entière des soins

+

Soutenons le droit des visites même en ce contexte sanitaire

+
+ +
+
+

Resources

+ +
+
+

Help

+ +
+
diff --git a/lib/reaproche_web/router.ex b/lib/reaproche_web/router.ex index 6983b50..531cd33 100644 --- a/lib/reaproche_web/router.ex +++ b/lib/reaproche_web/router.ex @@ -17,7 +17,9 @@ defmodule ReaprocheWeb.Router do scope "/", ReaprocheWeb do pipe_through :browser - get "/", PageController, :index + live_session :default do + live "/", PageViewLive + end end # Other scopes may use custom stacks. diff --git a/lib/reaproche_web/templates/layout/root.html.heex b/lib/reaproche_web/templates/layout/root.html.heex index 51f5b7c..3df041d 100644 --- a/lib/reaproche_web/templates/layout/root.html.heex +++ b/lib/reaproche_web/templates/layout/root.html.heex @@ -13,15 +13,12 @@
-
diff --git a/lib/reaproche_web/templates/page/index.html.heex b/lib/reaproche_web/templates/page/index.html.heex index e61f74c..be0376c 100644 --- a/lib/reaproche_web/templates/page/index.html.heex +++ b/lib/reaproche_web/templates/page/index.html.heex @@ -1,5 +1,5 @@
-

<%= gettext "Reaproche" %>

+

Reaproche

Agissons ensemble pour se faire entendre

La visite est une étape à part entière des soins

Soutenons le droit des visites même en ce contexte sanitaire

@@ -40,53 +40,4 @@ -
- -
-

Tailwind CSS with Alpine JS Dropdown

-
- -
- - -
- - -
-

Counter with Component Buttons

-
- -
- - count: - -
-
diff --git a/lib/reaproche_web/views/page_view.ex b/lib/reaproche_web/views/page_view.ex deleted file mode 100644 index 66edb72..0000000 --- a/lib/reaproche_web/views/page_view.ex +++ /dev/null @@ -1,3 +0,0 @@ -defmodule ReaprocheWeb.PageView do - use ReaprocheWeb, :view -end diff --git a/mix.exs b/mix.exs index 2d9c3a8..d998598 100644 --- a/mix.exs +++ b/mix.exs @@ -46,7 +46,8 @@ defmodule Reaproche.MixProject do {:gettext, "~> 0.18"}, {:jason, "~> 1.2"}, {:plug_cowboy, "~> 2.5"}, - {:credo, "~> 1.6"} + {:credo, "~> 1.6"}, + {:earmark_parser, "~> 1.4"}, ] end diff --git a/mix.lock b/mix.lock index 700e3f6..49114ab 100644 --- a/mix.lock +++ b/mix.lock @@ -5,6 +5,8 @@ "cowboy_telemetry": {:hex, :cowboy_telemetry, "0.4.0", "f239f68b588efa7707abce16a84d0d2acf3a0f50571f8bb7f56a15865aae820c", [:rebar3], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7d98bac1ee4565d31b62d59f8823dfd8356a169e7fcbb83831b8a5397404c9de"}, "cowlib": {:hex, :cowlib, "2.11.0", "0b9ff9c346629256c42ebe1eeb769a83c6cb771a6ee5960bd110ab0b9b872063", [:make, :rebar3], [], "hexpm", "2b3e9da0b21c4565751a6d4901c20d1b4cc25cbb7fd50d91d2ab6dd287bc86a9"}, "credo": {:hex, :credo, "1.6.4", "ddd474afb6e8c240313f3a7b0d025cc3213f0d171879429bf8535d7021d9ad78", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:file_system, "~> 0.2.8", [hex: :file_system, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "c28f910b61e1ff829bffa056ef7293a8db50e87f2c57a9b5c3f57eee124536b7"}, + "earmark": {:hex, :earmark, "1.4.26", "f0e3c3d5c278a6d448ad8c27ab0ecdec9c57a7710553138c56af220a6330a4fd", [:mix], [{:earmark_parser, "~> 1.4.26", [hex: :earmark_parser, repo: "hexpm", optional: false]}], "hexpm", "e1231882b56bece0692af33f0959f06c9cd580c2dc2ecb1dc9f16f2750fa78c5"}, + "earmark_parser": {:hex, :earmark_parser, "1.4.26", "f4291134583f373c7d8755566122908eb9662df4c4b63caa66a0eabe06569b0a", [:mix], [], "hexpm", "48d460899f8a0c52c5470676611c01f64f3337bad0b26ddab43648428d94aabc"}, "esbuild": {:hex, :esbuild, "0.4.0", "9f17db148aead4cf1e6e6a584214357287a93407b5fb51a031f122b61385d4c2", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}], "hexpm", "b61e4e6b92ffe45e4ee4755a22de6211a67c67987dc02afb35a425a0add1d447"}, "file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"}, "floki": {:hex, :floki, "0.32.1", "dfe3b8db3b793939c264e6f785bca01753d17318d144bd44b407fb3493acaa87", [:mix], [{:html_entities, "~> 0.5.0", [hex: :html_entities, repo: "hexpm", optional: false]}], "hexpm", "d4b91c713e4a784a3f7b1e3cc016eefc619f6b1c3898464222867cafd3c681a3"}, @@ -27,4 +29,6 @@ "telemetry": {:hex, :telemetry, "1.1.0", "a589817034a27eab11144ad24d5c0f9fab1f58173274b1e9bae7074af9cbee51", [:rebar3], [], "hexpm", "b727b2a1f75614774cff2d7565b64d0dfa5bd52ba517f16543e6fc7efcc0df48"}, "telemetry_metrics": {:hex, :telemetry_metrics, "0.6.1", "315d9163a1d4660aedc3fee73f33f1d355dcc76c5c3ab3d59e76e3edf80eef1f", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7be9e0871c41732c233be71e4be11b96e56177bf15dde64a8ac9ce72ac9834c6"}, "telemetry_poller": {:hex, :telemetry_poller, "1.0.0", "db91bb424e07f2bb6e73926fcafbfcbcb295f0193e0a00e825e589a0a47e8453", [:rebar3], [{:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "b3a24eafd66c3f42da30fc3ca7dda1e9d546c12250a2d60d7b81d264fbec4f6e"}, + "yamerl": {:hex, :yamerl, "0.10.0", "4ff81fee2f1f6a46f1700c0d880b24d193ddb74bd14ef42cb0bcf46e81ef2f8e", [:rebar3], [], "hexpm", "346adb2963f1051dc837a2364e4acf6eb7d80097c0f53cbdc3046ec8ec4b4e6e"}, + "yaml_elixir": {:hex, :yaml_elixir, "2.9.0", "9a256da867b37b8d2c1ffd5d9de373a4fda77a32a45b452f1708508ba7bbcb53", [:mix], [{:yamerl, "~> 0.10", [hex: :yamerl, repo: "hexpm", optional: false]}], "hexpm", "0cb0e7d4c56f5e99a6253ed1a670ed0e39c13fc45a6da054033928607ac08dfc"}, } diff --git a/priv/static/images/Logo Orange.png b/priv/static/images/Logo Orange.png new file mode 100644 index 0000000..428a09a Binary files /dev/null and b/priv/static/images/Logo Orange.png differ