From 3fb775fa359dfaae57c374d47bca62a0a378aba7 Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Sun, 24 Sep 2023 09:50:53 +0000 Subject: [PATCH] Improve UI eyecandy rebrand to My Tendy Zone --- app/assets/stylesheets/application.css.sass | 26 ++++++++--- app/models/user.rb | 4 ++ app/views/layouts/_navigation_links.html.erb | 20 +++++---- app/views/visitors/index.html.haml | 47 ++++++++++---------- 4 files changed, 58 insertions(+), 39 deletions(-) diff --git a/app/assets/stylesheets/application.css.sass b/app/assets/stylesheets/application.css.sass index 5fd2c10a..0f0cbb82 100644 --- a/app/assets/stylesheets/application.css.sass +++ b/app/assets/stylesheets/application.css.sass @@ -123,20 +123,32 @@ header position: absolute top: 0 // background-color: hotpink - border-radius: 300px + border-radius: 10em overflow: hidden - transition: background-color 0.2s, box-shadow 0.2s + &.icypepe + border-radius: 600em + padding: 1em 5em 1em 2em + cursor: pointer + transition: background-color 0.2s, box-shadow 0.2s + svg + zoom: 80% + &:hover + background-color: gold + box-shadow: 1px 1px 8px 4px gold + img + cursor: pointer + transition: background-color 0.2s, box-shadow 0.2s + &:hover + background-color: gold + box-shadow: 1px 1px 8px 4px gold img width: 4rem - cursor: pointer - &:hover - background-color: gold - box-shadow: 1px 1px 8px 4px gold + padding: 0.2em &.clicked + img, &.icypepe background-color: #00ffff box-shadow: 0px 0px 8px 4px #00ffff - li list-style: none diff --git a/app/models/user.rb b/app/models/user.rb index eff04513..9070412f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -35,6 +35,10 @@ class User < ActiveRecord::Base !soft_user? end + def to_s + display_name + end + def display_name self.email.split("@")[0] || "Guest#{self.soft_token[0..5]}" end diff --git a/app/views/layouts/_navigation_links.html.erb b/app/views/layouts/_navigation_links.html.erb index 59f01b65..ba673739 100644 --- a/app/views/layouts/_navigation_links.html.erb +++ b/app/views/layouts/_navigation_links.html.erb @@ -1,9 +1,17 @@ diff --git a/app/views/visitors/index.html.haml b/app/views/visitors/index.html.haml index 879311de..6283f184 100644 --- a/app/views/visitors/index.html.haml +++ b/app/views/visitors/index.html.haml @@ -1,38 +1,39 @@ #home-headline - if request.base_url.match(/pin|my|fireside/) - %h1 My own private tendy zone + %h1 My own public tendy zone - else %h1 Web3 Social Gaming
Crypto Rewards +#canisters + = render @canisters #main-menu - - if policy(:table).play_now? - = link_to 'Play', play_now_path - - else - Soon + -# - if policy(:table).play_now? + = link_to 'Play 13 Now', play_now_path + -# - else + Soon -# = link_to 'Browse Tables', tables_path -# = link_to 'Tutorial', tutorial_path -# = link_to 'About', page_path('about') - -- if !request.base_url.match(/pin|my|fireside/) +-# - if !request.base_url.match(/pin|my|fireside/) +.eyecandy.icypepe + = inline_svg_tag "Icy Pepe.svg" +- 5.times do |i| .eyecandy - = inline_svg_tag "Icy Pepe.svg" - -# - 5.times do |i| - .eyecandy - = image_tag "GONGO-coin-white.png" - - 10.times do |i| - .eyecandy - = image_tag "ICYPEES-glass.png" - - 20.times do |i| - .eyecandy - = image_tag "chicken-tenders.png" - - 10.times do |i| - .eyecandy.roundcandy - = image_tag "tendy-logo.jpg" - - 10.times do |i| - .eyecandy - = image_tag "ICYPEES-coin.png" + = image_tag "gongo-logo.png" +- 10.times do |i| + .eyecandy + = image_tag "ICYPEES-glass.png" +- 20.times do |i| + .eyecandy + = image_tag "chicken-tenders.png" +-# - 10.times do |i| + .eyecandy.roundcandy + = image_tag "tendy-logo.jpg" +- 10.times do |i| + .eyecandy + = image_tag "ICYPEES-coin.png" -# - Dir.glob("app/assets/images/cards/png/**").each do |card_img| - puts card_img