run phx.new and add phx.gen.auth
This commit is contained in:
		
							
								
								
									
										11
									
								
								lib/lokal_web/templates/layout/app.html.eex
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								lib/lokal_web/templates/layout/app.html.eex
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
<main role="main" class="container min-h-full min-w-full">
 | 
			
		||||
  <p class="alert alert-info" role="alert">
 | 
			
		||||
    <%= get_flash(@conn, :info) %>
 | 
			
		||||
  </p>
 | 
			
		||||
  
 | 
			
		||||
  <p class="alert alert-danger" role="alert">
 | 
			
		||||
    <%= get_flash(@conn, :error) %>
 | 
			
		||||
  </p>
 | 
			
		||||
  
 | 
			
		||||
  <%= @inner_content %>
 | 
			
		||||
</main>
 | 
			
		||||
							
								
								
									
										5
									
								
								lib/lokal_web/templates/layout/live.html.leex
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								lib/lokal_web/templates/layout/live.html.leex
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
<main role="main" class="container min-w-full min-h-full">
 | 
			
		||||
  <%= live_component LokalWeb.Live.Component.Topbar %>
 | 
			
		||||
 | 
			
		||||
  <%= @inner_content %>
 | 
			
		||||
</main>
 | 
			
		||||
							
								
								
									
										15
									
								
								lib/lokal_web/templates/layout/root.html.leex
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								lib/lokal_web/templates/layout/root.html.leex
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
<!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"/>
 | 
			
		||||
    <%= csrf_meta_tag() %>
 | 
			
		||||
    <%= live_title_tag assigns[:page_title] || "Lokal", suffix: "" %>
 | 
			
		||||
    <link phx-track-static rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>"/>
 | 
			
		||||
    <script defer phx-track-static type="text/javascript" src="<%= Routes.static_path(@conn, "/js/app.js") %>"></script>
 | 
			
		||||
  </head>
 | 
			
		||||
  <body class="m-0 p-0 min-w-full min-h-full">
 | 
			
		||||
    <%= @inner_content %>
 | 
			
		||||
  </body>
 | 
			
		||||
</html>
 | 
			
		||||
		Reference in New Issue
	
	Block a user