adds js and css build, remove importmap, add tailwind and daisy

This commit is contained in:
2022-04-28 11:03:57 +03:00
parent d809e6f35b
commit 74a492c950
21 changed files with 2187 additions and 84 deletions

View File

@ -1,16 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Gateway</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %>
</head>
<body>
<%= yield %>
</body>
</html>

View File

@ -6,7 +6,7 @@
%meta{:content => "width=device-width,initial-scale=1", :name => "viewport"}/
= csrf_meta_tags
= csp_meta_tag
= stylesheet_link_tag "application", "data-turbo-track": "reload"
= javascript_importmap_tags
= stylesheet_link_tag "application"
= javascript_include_tag "application", defer: true
%body
= yield

View File

@ -1,4 +1,17 @@
%h1 Hello Gateway
%p
Gateway to what? And so you may well ask . . .
Gateway to what? And so you may well ask . . .
.card.w-96.bg-base-100.shadow-xl
.card-body
%h2.card-title Shoes!
%p If a dog chews shoes whose shoes does he choose?
%figure
%img{:alt => "Shoes", :src => "https://api.lorem.space/image/shoes?w=400&h=225"}/
.card.w-96.bg-base-100.shadow-xl
.card-body
%h2.card-title Shoes!
%p If a dog chews shoes whose shoes does he choose?
%figure
%img{:alt => "Shoes", :src => "https://api.lorem.space/image/shoes?w=400&h=225"}/