/
root.html.heex
52 lines (52 loc) · 1.59 KB
/
root.html.heex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!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"/>
<meta name="csrf-token" content={get_csrf_token()} />
<.live_title suffix=" · PhxWCStorybook">
<%= assigns[:page_title] || "PhxWCStorybook" %>
</.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="flex flex-col items-center">
<div class="rainbow"></div>
<%= if assigns[:mode] == "app" do %>
<.wc_simple_appbar
title={"Phoenix WebComponent"}
class="bg-blue-600 text-slate-200"
>
<:menu to={~p"/storybook"}>
Storybook
</:menu>
<:logo>
<logo-gsmlg-dev />
</:logo>
<:user_profile>
<.wc_link href={"https://github.com/gsmlg-dev/phoenix_webcomponent"}>
<.wc_mdi name="github" class="w-12 h-12" color="white" />
</.wc_link>
</:user_profile>
</.wc_simple_appbar>
<% else %>
<.wc_appbar
title={"Phoenix WebComponent"}
>
<:menu to={~p"/storybook"}>
Storybook
</:menu>
<:logo>
<logo-gsmlg-dev />
</:logo>
<:user_profile>
<.wc_link href={"https://github.com/gsmlg-dev/phoenix_webcomponent"}>
<.wc_mdi name="github" class="w-12 h-12" color="white" />
</.wc_link>
</:user_profile>
</.wc_appbar>
<% end %>
<%= @inner_content %>
</body>
</html>