- """
+ """
end
slot :inner_block, required: true
+
def markdown(assigns) do
~H"""
<%= render_slot(@inner_block)
- |> slot_markdown_as_html()
- |> raw()
- %>
+ |> slot_markdown_as_html()
+ |> raw() %>
"""
end
@@ -33,12 +33,12 @@ defmodule HomepageWeb.HelperComponents do
[slot] = dynamic_slot.(false)
slot |> slot_markdown_as_html()
end
-
+
defp slot_markdown_as_html(rendered_slot) do
- %{static: [markdown]} = rendered_slot
+ %{static: [markdown]} = rendered_slot
trim_leading_space(markdown)
- |> String.replace(~S("\""), ~S("""), global: true)
+ |> String.replace(~S("\""), ~S("""), global: true)
|> Earmark.as_html!(compact_output: true)
end
@@ -60,4 +60,4 @@ defmodule HomepageWeb.HelperComponents do
""
end
end
-end
\ No newline at end of file
+end
diff --git a/lib/homepage_web/components/layouts/app.html.heex b/lib/homepage_web/components/layouts/app.html.heex
index 6cb1212..2b5e800 100644
--- a/lib/homepage_web/components/layouts/app.html.heex
+++ b/lib/homepage_web/components/layouts/app.html.heex
@@ -1,26 +1,24 @@
- <.dropdown>
- <:label>@rdiedrich
- <:entry>
- <.link
- title="send an e-mail"
- href="mailto:hallo@rdiedri.ch">
- <.icon name="hero-envelope" />
- hallo@rdiedri.ch
-
-
+
+ <.dropdown>
+ <:label>@rdiedrich
+ <:entry>
+ <.link title="send an e-mail" href="mailto:hallo@rdiedri.ch">
+ <.icon name="hero-envelope" /> hallo@rdiedri.ch
+
+
- <:entry>
- <.link
- title="chat with me on matrix"
- href="https://matrix.to/#/@rdiedrich:matrix.org"
- target="_blank">
- <.icon name="hero-chat-bubble-bottom-center-text" />
- @rdiedrich:matrix.org
-
-
-
-
+ <:entry>
+ <.link
+ title="chat with me on matrix"
+ href="https://matrix.to/#/@rdiedrich:matrix.org"
+ target="_blank"
+ >
+ <.icon name="hero-chat-bubble-bottom-center-text" /> @rdiedrich:matrix.org
+
+
+
+
@@ -28,5 +26,4 @@
<%= @inner_content %>
-
\ No newline at end of file
+
diff --git a/lib/homepage_web/controllers/page_html/home.html.heex b/lib/homepage_web/controllers/page_html/home.html.heex
index 22748a9..020134c 100644
--- a/lib/homepage_web/controllers/page_html/home.html.heex
+++ b/lib/homepage_web/controllers/page_html/home.html.heex
@@ -1,42 +1,33 @@
about
<.markdown>
- Hi, my name is **RĂ¼diger Diedrich** and this is my homepage.
+ Hi, my name is **RĂ¼diger Diedrich** and this is my homepage.
- For the last couple of years I am a big proponent of the Elixir and
- Erlang/OTP ecosystem: be it projects like Phoenix framework which
- bends the rules of traditional client-server-based web development
- or Livebook - built on top of Phoenix - which for me is simply the
- next generation of interactive notebooks and completely changed
- the way I go about prototyping and data analysis.
-
- Check out some of the projects I've been working on.
+ Check out some of the projects I've been working on.
projects
- <.project
+ <.project
url="https://chicken.rdiedri.ch"
- forge_url="https://forge.rdiedri.ch/rdiedrich/exponential-chicken-egg">
+ forge_url="https://forge.rdiedri.ch/rdiedrich/exponential-chicken-egg"
+ >
<:title>Exponential Chicken Egg
- The chicken is very busy.
+ The chicken is very busy. \
100% implemented in Phoenix Liveview. Press spacebar (or tap) for fun.
- <.project
- url="https://app.rdiedri.ch"
- forge_url="https://forge.rdiedri.ch/rdiedrich/physics">
+ <.project url="https://app.rdiedri.ch" forge_url="https://forge.rdiedri.ch/rdiedrich/physics">
<:title>Physics
- Random falling blocks under the yoke of gravity.
+ Random falling blocks under the yoke of gravity. \
Typescript using the pixi engine. Click or tap a block to give it a boost.
- <.project
+ <.project
url="https://colorer.vercel.app"
- forge_url="https://forge.rdiedri.ch/rdiedrich/colorer">
+ forge_url="https://forge.rdiedri.ch/rdiedrich/colorer"
+ >
<:title>Colorer
- Play around with HSLA color.
+ Play around with HSLA color. \
Reactive app show-casing SolidJS, deployed on vercel.
-
-