init commit

This commit is contained in:
2025-07-26 03:35:08 -04:00
commit 378c8e09fb
24 changed files with 1733 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
defmodule Llmex.PostLayout do
use Tableau.Layout, layout: Llmex.RootLayout
use Phoenix.Component
def template(assigns) do
~H"""
<%= {:safe, render(@inner_content)} %>
"""
end
end

View File

@@ -0,0 +1,38 @@
defmodule Llmex.RootLayout do
use Tableau.Layout
use Phoenix.Component
def template(assigns) do
~H"""
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http_equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
<%= [@page[:title], Llmex]
|> Enum.filter(& &1)
|> Enum.intersperse("|")
|> Enum.join(" ") %>
</title>
<link rel="stylesheet" href="/css/simple.css" />
</head>
<body>
<main>
<%= render @inner_content %>
</main>
</body>
<%= if Mix.env() == :dev do %>
<%= Phoenix.HTML.raw(Tableau.live_reload(assigns)) %>
<% end %>
</html>
"""
|> Phoenix.HTML.Safe.to_iodata()
end
end