diff --git a/app/assets/stylesheets/pages/_dashboard.scss b/app/assets/stylesheets/pages/_dashboard.scss index 17fc246..6999ce3 100644 --- a/app/assets/stylesheets/pages/_dashboard.scss +++ b/app/assets/stylesheets/pages/_dashboard.scss @@ -89,7 +89,7 @@ width: 35%; bottom: auto; position: absolute; left: 950px; -top: 26%; +top: 30%; animation: bounce 2s ease; img { diff --git a/app/views/pages/dashboard.html.erb b/app/views/pages/dashboard.html.erb index ca1d784..4e35582 100644 --- a/app/views/pages/dashboard.html.erb +++ b/app/views/pages/dashboard.html.erb @@ -5,7 +5,7 @@ <%#

Click on the light question mark to start your next super secret spy challenge....

%> -

+
<%= image_tag "tree branch.png", class:"tree" %>
@@ -46,7 +46,17 @@ <% end %>
+
- <%= image_tag "Original Sammy" , class:"squirrel" %> + <% if current_user.level == 0 %> + <%= image_tag "Original Sammy.png", class:"squirrel" %> + <% elsif current_user.level== 1%> + <%= image_tag "Sammy Chal 1.png", class:"squirrel" %> + <% elsif current_user.level == 2 %> + <%= image_tag "Sammy Chal 2.png", class:"squirrel" %> + <% else %> + <%= image_tag "Sammy Chal 3.png", class:"squirrel" %> + <% end %> +
diff --git a/db/seeds.rb b/db/seeds.rb index 13101bc..f00d7e5 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -21,7 +21,7 @@ user4 = User.new(email: "zac@test.com", password: "123456", first_name: "Zac", level: 3) user4.save! -user5 = User.new(email: "dilber@test.com", password: "123456", first_name: "Dilbur", level: 3) +user5 = User.new(email: "dilber@test.com", password: "123456", first_name: "Dilber", level: 3) user5.save! user6 = User.new(email: "matilda@test.com", password: "123456", first_name: "Matilda", level: 0)