diff options
author | David Gay <david@davidgay.org> | 2021-04-05 23:28:30 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-04-05 23:28:30 -0400 |
commit | 504513d1b47a8dfc9dccfca7b7113bbfdfbaa21c (patch) | |
tree | 7e5a846fbd5b193b9941976c4889879c174300c5 /app/views | |
parent | 5fdb938b522a14c8f1d1c611a0003ad45850e95f (diff) |
Basic FE setup
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/application/_footer.html.erb | 7 | ||||
-rw-r--r-- | app/views/application/_header.html.erb | 7 | ||||
-rw-r--r-- | app/views/home/index.html.erb | 15 | ||||
-rw-r--r-- | app/views/layouts/application.html.erb | 10 |
4 files changed, 35 insertions, 4 deletions
diff --git a/app/views/application/_footer.html.erb b/app/views/application/_footer.html.erb new file mode 100644 index 0000000..d4ba8fb --- /dev/null +++ b/app/views/application/_footer.html.erb @@ -0,0 +1,7 @@ +<footer class="flex justify-center p-2 text-gray-500"> + <div> + Appendix Q is free and open-source software licensed under the AGPL v3+. You can + <%= link_to "view the source", "https://github.com/dtgay/appendix-q" %>, + <%= link_to "report a bug, or request a feature", "https://github.com/dtgay/appendix-q/issues" %>. + </div> +</footer> diff --git a/app/views/application/_header.html.erb b/app/views/application/_header.html.erb new file mode 100644 index 0000000..0b317ad --- /dev/null +++ b/app/views/application/_header.html.erb @@ -0,0 +1,7 @@ +<header class="flex justify-between px-4 py-2"> + <div> + <span class="text-xl">Appendix Q</span> + </div> + <div> + </div> +</header> diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index d87f31a..e255981 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -1,3 +1,14 @@ -<h1>Appendix Q</h1> +<p><span class="font-bold">Welcome to Appendix Q.</span></p> -<p class="font-bold">Testing Tailwind</p> +<p>Appendix Q is intended to eventually be a collection of free tools and utilities for use with various tabletop + role-playing games, for gamemasters and players alike.</p> + +<p>This is a brand new project by one person (myself). I've recently started running a + <%= link_to "PTU", "https://pokemontabletop.com/" %> game for my group, and the available community tools for + this system are either out of date or don't have all the features I want. So I figured I'd make them myself. + Likely, tools for other systems will come along as well.</p> + +<p>If you'd like to see a certain tool made, + <%= link_to "open an issue on GitHub", "https://github.com/dtgay/appendix-q/issues" %> + or send an email to <%= link_to "hello@davidgay.org", "mailto:hello@davidgay.org" %>. If you know how to program, + you can also fork Appendix Q on GitHub and submit a pull request with the feature!</p> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 303ac9d..ac331aa 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html> +<html lang="en"> <head> <title>AppendixQ</title> <meta name="viewport" content="width=device-width,initial-scale=1"> @@ -11,6 +11,12 @@ </head> <body> - <%= yield %> + <div class="flex flex-col min-h-screen"> + <%= render "header" %> + <div class="container mx-auto flex-grow"> + <%= yield %> + </div> + <%= render "footer" %> + </div> </body> </html> |