This commit is contained in:
10
app/views/layouts/_lightbox.html.erb
Normal file
10
app/views/layouts/_lightbox.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<dialog class="lightbox" aria-label="Image Viewer (Press escape to close)" data-lightbox-target="dialog" data-action="close->lightbox#reset">
|
||||
<img src="" class="lightbox__image" data-lightbox-target="zoomedImage" />
|
||||
|
||||
<form method="dialog" class="lightbox__btn">
|
||||
<button class="btn fill-white">
|
||||
<%= image_tag "remove.svg", aria: { hidden: "true" } %>
|
||||
<span class="for-screen-reader">Close image viewer</span>
|
||||
</button>
|
||||
</form>
|
||||
</dialog>
|
||||
53
app/views/layouts/application.html.erb
Normal file
53
app/views/layouts/application.html.erb
Normal file
@@ -0,0 +1,53 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><%= content_for(:title) || "Writebook" %></title>
|
||||
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta charset="UTF-8">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)">
|
||||
<meta name="theme-color" content="#000000" media="(prefers-color-scheme: dark)">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, interactive-widget=resizes-content">
|
||||
<meta name="view-transition" content="same-origin">
|
||||
<meta name="turbo-cache-control" content="no-cache">
|
||||
|
||||
<%= csrf_meta_tags %>
|
||||
<%= csp_meta_tag %>
|
||||
<% if signed_in? %>
|
||||
<%= hide_from_user_style_tag %>
|
||||
<% end %>
|
||||
|
||||
<%= yield :head %>
|
||||
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||
<link rel="icon" href="/favicon.png" type="image/png">
|
||||
<link rel="apple-touch-icon" href="/app-icon.png">
|
||||
|
||||
<%= stylesheet_link_tag :all, "data-turbo-track": "reload" %>
|
||||
<%= custom_styles_tag %>
|
||||
|
||||
<%= javascript_importmap_tags %>
|
||||
</head>
|
||||
|
||||
<body data-controller="fullscreen lightbox touch">
|
||||
<header id="header">
|
||||
<%= yield :header %>
|
||||
</header>
|
||||
|
||||
<div id="toolbar">
|
||||
<%= yield :toolbar %>
|
||||
</div>
|
||||
|
||||
<main id="main" class="<%= @layout_class %>">
|
||||
<%= yield %>
|
||||
</main>
|
||||
|
||||
<footer id="footer">
|
||||
<%= yield :footer %>
|
||||
</footer>
|
||||
|
||||
<%= render "layouts/lightbox" %>
|
||||
</body>
|
||||
</html>
|
||||
13
app/views/layouts/mailer.html.erb
Normal file
13
app/views/layouts/mailer.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<style>
|
||||
/* Email styles need to be inline */
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>
|
||||
1
app/views/layouts/mailer.text.erb
Normal file
1
app/views/layouts/mailer.text.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= yield %>
|
||||
Reference in New Issue
Block a user