From d0173cedc634c723e11eafd95c90b9f1fb74f356 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sat, 30 May 2020 02:04:17 -0400 Subject: [PATCH] client: Add new landing page with project info Currently, when you hit http://euchre.live, it throws you right into a prompt asking for your name, table, social security, etc (ok not the last one, but you get the idea!) There's really no context yet on what the heck is going on. This commit adds a new landing page (taking index.html and shoving the old index.html to "prod.html", which better matches the "preprod.html" anyways). I inlined the CSS and wrote the HTMl 100% by hand to create a small and super speedy landing page that will hopefully tell people a little more about what's going on and why it's cool (or at least so we think). --- gloat.pl | 7 ++++++- public/index.html | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- public/prod.html | 13 +++++++++++++ 3 files changed, 112 insertions(+), 5 deletions(-) create mode 100644 public/prod.html diff --git a/gloat.pl b/gloat.pl index 4cf7b45..2d49885 100755 --- a/gloat.pl +++ b/gloat.pl @@ -15,8 +15,13 @@ plugin Webpack => {process => [qw(js css sass)]}; get '/' => sub { my $c = shift; + $c->reply->static('index.html'); +}; + +get '/game' => sub { + my $c = shift; if ($ENV{MOJO_MODE} && $ENV{MOJO_MODE} eq 'production') { - $c->reply->static('index.html'); + $c->reply->static('prod.html'); } else { $c->reply->static('preprod.html'); } diff --git a/public/index.html b/public/index.html index df12b04..4564f39 100644 --- a/public/index.html +++ b/public/index.html @@ -2,12 +2,101 @@ - - + + + Euchre Live!! -
- +

Welcome to euchre.live!

+ + +

What is This Site?

+ +

+ euchre.live is a + free and open source + web-app to play Euchre, an old 19th century card game. +

+ +

+ It is developed by Alex and Chris Karle, with a focus on + enabling their family to play the game socially-distantly during + the COVID-19 Pandemic. +

+ +

+ The site is still under active development, with improvements weekly, + but the basics are there and you're welcome to play a hand! +

+ +
+ Play Now +
+ +

How do I Play?

+ +

+ There's multiple good resources online, but + this + is a good place to start! +

+ +

Think this is cool?

+ +

+ Don't be a stranger! + Drop us a line + on our public mailing list! +

+ diff --git a/public/prod.html b/public/prod.html new file mode 100644 index 0000000..df12b04 --- /dev/null +++ b/public/prod.html @@ -0,0 +1,13 @@ + + + + + + + Euchre Live!! + + +
+ + + -- libgit2 1.1.1