-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
live-reloading working with Tailwind in LiveView #220
- Loading branch information
Showing
4 changed files
with
26 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
<h1 class="">Groups LiveView!</h1> | ||
<h1 class="w-full h-full text-center text-7xl text-white font-bold | ||
bg-gradient-to-r from-green-400 to-blue-500 p-4"> | ||
Groups LiveView! | ||
</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
<!-- LiveView Layout File --> | ||
<.container class="my-10"> | ||
<.alert | ||
color="info" | ||
class="mb-5" | ||
label={live_flash(@flash, :info)} | ||
phx-click="lv:clear-flash" | ||
phx-value-key="info" | ||
/> | ||
<!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><%= assigns[:page_title] || "Auth App" %></title> | ||
<%= csrf_meta_tag() %> | ||
<link rel="stylesheet" href={Routes.static_path(@socket, "/assets/app.css") } /> | ||
</head> | ||
<body class="helvetica"> | ||
|
||
<.alert | ||
color="danger" | ||
class="mb-5" | ||
label={live_flash(@flash, :error)} | ||
phx-click="lv:clear-flash" | ||
phx-value-key="error" | ||
/> | ||
|
||
<%= @inner_content %> | ||
</.container> | ||
<!-- LiveView Layout File --> | ||
<%= @inner_content %> | ||
<script type="text/javascript" src={ Routes.static_path(@socket, "/assets/app.js")}></script> | ||
</body> | ||
</html> |