Improve UI eyecandy rebrand to My Tendy Zone
This commit is contained in:
parent
a6f4c2e3b9
commit
79c16cc0e1
@ -123,20 +123,32 @@ header
|
|||||||
position: absolute
|
position: absolute
|
||||||
top: 0
|
top: 0
|
||||||
// background-color: hotpink
|
// background-color: hotpink
|
||||||
border-radius: 300px
|
border-radius: 10em
|
||||||
overflow: hidden
|
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
|
img
|
||||||
width: 4rem
|
width: 4rem
|
||||||
cursor: pointer
|
padding: 0.2em
|
||||||
&:hover
|
|
||||||
background-color: gold
|
|
||||||
box-shadow: 1px 1px 8px 4px gold
|
|
||||||
&.clicked
|
&.clicked
|
||||||
|
img, &.icypepe
|
||||||
background-color: #00ffff
|
background-color: #00ffff
|
||||||
box-shadow: 0px 0px 8px 4px #00ffff
|
box-shadow: 0px 0px 8px 4px #00ffff
|
||||||
|
|
||||||
|
|
||||||
li
|
li
|
||||||
list-style: none
|
list-style: none
|
||||||
|
|
||||||
|
|||||||
@ -35,6 +35,10 @@ class User < ActiveRecord::Base
|
|||||||
!soft_user?
|
!soft_user?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def to_s
|
||||||
|
display_name
|
||||||
|
end
|
||||||
|
|
||||||
def display_name
|
def display_name
|
||||||
self.email.split("@")[0] || "Guest#{self.soft_token[0..5]}"
|
self.email.split("@")[0] || "Guest#{self.soft_token[0..5]}"
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,9 +1,17 @@
|
|||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
<%# <li><%= link_to 'Main Menu', root_path %1></li> %>
|
<li><%= link_to 'Home', root_path %></li>
|
||||||
<% if policy(:table).index? %>
|
<% if !request.base_url.match(/pin|my|fireside/) %>
|
||||||
<li><%= link_to 'Tables', tables_path %></li>
|
<% if policy(:table).index? %>
|
||||||
|
<li><%= link_to 'Tables', tables_path %></li>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% if current_user.signed_in? %>
|
||||||
|
<% if current_user.admin? %>
|
||||||
|
<%# <li><%= link_to 'Admin', '/admin' %1></li> %>
|
||||||
|
<li><%= link_to 'Users', users_path %></li>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
<% if current_user.signed_in? %>
|
<% if current_user.signed_in? %>
|
||||||
<li><%= link_to 'My account', edit_user_registration_path %></li>
|
<li><%= link_to 'My account', edit_user_registration_path %></li>
|
||||||
<li><%= link_to 'Sign out', destroy_user_session_path, :method=>'delete' %></li>
|
<li><%= link_to 'Sign out', destroy_user_session_path, :method=>'delete' %></li>
|
||||||
@ -11,11 +19,5 @@
|
|||||||
<li><%= link_to 'Sign in', new_user_session_path %></li>
|
<li><%= link_to 'Sign in', new_user_session_path %></li>
|
||||||
<li><%= link_to 'Sign up', new_user_registration_path %></li>
|
<li><%= link_to 'Sign up', new_user_registration_path %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if current_user.signed_in? %>
|
|
||||||
<% if current_user.admin? %>
|
|
||||||
<li><%= link_to 'Admin', '/admin' %></li>
|
|
||||||
<li><%= link_to 'Users', users_path %></li>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@ -1,38 +1,39 @@
|
|||||||
#home-headline
|
#home-headline
|
||||||
- if request.base_url.match(/pin|my|fireside/)
|
- if request.base_url.match(/pin|my|fireside/)
|
||||||
%h1 My own private tendy zone
|
%h1 My own public tendy zone
|
||||||
- else
|
- else
|
||||||
%h1 Web3 Social Gaming <br/>Crypto Rewards
|
%h1 Web3 Social Gaming <br/>Crypto Rewards
|
||||||
|
|
||||||
|
#canisters
|
||||||
|
= render @canisters
|
||||||
|
|
||||||
#main-menu
|
#main-menu
|
||||||
- if policy(:table).play_now?
|
-# - if policy(:table).play_now?
|
||||||
= link_to 'Play', play_now_path
|
= link_to 'Play 13 Now', play_now_path
|
||||||
- else
|
-# - else
|
||||||
Soon
|
Soon
|
||||||
-# = link_to 'Browse Tables', tables_path
|
-# = link_to 'Browse Tables', tables_path
|
||||||
-# = link_to 'Tutorial', tutorial_path
|
-# = link_to 'Tutorial', tutorial_path
|
||||||
-# = link_to 'About', page_path('about')
|
-# = 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
|
.eyecandy
|
||||||
= inline_svg_tag "Icy Pepe.svg"
|
= image_tag "gongo-logo.png"
|
||||||
-# - 5.times do |i|
|
- 10.times do |i|
|
||||||
.eyecandy
|
.eyecandy
|
||||||
= image_tag "GONGO-coin-white.png"
|
= image_tag "ICYPEES-glass.png"
|
||||||
- 10.times do |i|
|
- 20.times do |i|
|
||||||
.eyecandy
|
.eyecandy
|
||||||
= image_tag "ICYPEES-glass.png"
|
= image_tag "chicken-tenders.png"
|
||||||
- 20.times do |i|
|
-# - 10.times do |i|
|
||||||
.eyecandy
|
.eyecandy.roundcandy
|
||||||
= image_tag "chicken-tenders.png"
|
= image_tag "tendy-logo.jpg"
|
||||||
- 10.times do |i|
|
- 10.times do |i|
|
||||||
.eyecandy.roundcandy
|
.eyecandy
|
||||||
= image_tag "tendy-logo.jpg"
|
= image_tag "ICYPEES-coin.png"
|
||||||
- 10.times do |i|
|
|
||||||
.eyecandy
|
|
||||||
= image_tag "ICYPEES-coin.png"
|
|
||||||
|
|
||||||
-# - Dir.glob("app/assets/images/cards/png/**").each do |card_img|
|
-# - Dir.glob("app/assets/images/cards/png/**").each do |card_img|
|
||||||
- puts card_img
|
- puts card_img
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user