starting files
This commit is contained in:
14
lib/elixir_ai_web/components/layouts.ex
Normal file
14
lib/elixir_ai_web/components/layouts.ex
Normal file
@@ -0,0 +1,14 @@
|
||||
defmodule ElixirAiWeb.Layouts do
|
||||
@moduledoc """
|
||||
This module holds different layouts used by your application.
|
||||
|
||||
See the `layouts` directory for all templates available.
|
||||
The "root" layout is a skeleton rendered as part of the
|
||||
application router. The "app" layout is set as the default
|
||||
layout on both `use ElixirAiWeb, :controller` and
|
||||
`use ElixirAiWeb, :live_view`.
|
||||
"""
|
||||
use ElixirAiWeb, :html
|
||||
|
||||
embed_templates "layouts/*"
|
||||
end
|
||||
17
lib/elixir_ai_web/components/layouts/root.html.heex
Normal file
17
lib/elixir_ai_web/components/layouts/root.html.heex
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" class="[scrollbar-gutter:stable]">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="csrf-token" content={get_csrf_token()} />
|
||||
<.live_title default="ElixirAi" suffix=" · Phoenix Framework">
|
||||
{assigns[:page_title]}
|
||||
</.live_title>
|
||||
<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"} />
|
||||
<script defer phx-track-static type="text/javascript" src={~p"/assets/app.js"}>
|
||||
</script>
|
||||
</head>
|
||||
<body class="bg-cyan-900 text-cyan-50">
|
||||
{@inner_content}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user