phx update
This commit is contained in:
32
lib/homepage_web/components/layouts/app.html.heex
Normal file
32
lib/homepage_web/components/layouts/app.html.heex
Normal file
@ -0,0 +1,32 @@
|
||||
<header class="px-4 sm:px-6 lg:px-8">
|
||||
<.dropdown>
|
||||
<:label>@rdiedrich</:label>
|
||||
<:entry>
|
||||
<.link
|
||||
title="send an e-mail"
|
||||
href="mailto:hallo@rdiedri.ch">
|
||||
<.icon name="hero-envelope" />
|
||||
hallo@rdiedri.ch
|
||||
</.link>
|
||||
</:entry>
|
||||
|
||||
<: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
|
||||
</.link>
|
||||
</:entry>
|
||||
|
||||
</.dropdown>
|
||||
</header>
|
||||
<main class="px-4 py-20 sm:px-6 lg:px-8">
|
||||
<div class="mx-auto max-w-2xl space-y-16">
|
||||
<.flash_group flash={@flash} />
|
||||
<%= @inner_content %>
|
||||
</div>
|
||||
</main>
|
||||
<footer>
|
||||
</footer>
|
24
lib/homepage_web/components/layouts/root.html.heex
Normal file
24
lib/homepage_web/components/layouts/root.html.heex
Normal file
@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" style="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 suffix="">
|
||||
<%= assigns[:page_title] || "Homepage" %>
|
||||
</.live_title>
|
||||
<link rel="apple-touch-icon" sizes="180x180"
|
||||
href={static_path(@conn, ~p"/apple-touch-icon.png")}>
|
||||
<link rel="icon" type="image/png" sizes="32x32"
|
||||
href={static_path(@conn, ~p"/favicon-32x32.png")}>
|
||||
<link phx-track-static rel="icon" type="image/png" sizes="16x16"
|
||||
href={static_path(@conn, ~p"/favicon-16x16.png")}>
|
||||
<link rel="manifest" href="/site.webmanifest">
|
||||
<link phx-track-static rel="stylesheet" href={static_url(@conn, ~p"/assets/app.css")} />
|
||||
<script defer phx-track-static type="text/javascript" src={static_url(@conn, ~p"/assets/app.js")}>
|
||||
</script>
|
||||
</head>
|
||||
<body class="bg-white antialiased">
|
||||
<%= @inner_content %>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user