diff --git a/app/views/aspects/index.html.haml b/app/views/aspects/index.html.haml index 388b08023..29d3dcd6e 100644 --- a/app/views/aspects/index.html.haml +++ b/app/views/aspects/index.html.haml @@ -12,6 +12,9 @@ %h3 = current_user.first_name + .section + = link_to "Get Started", getting_started_path + .section = render 'aspects/aspect_listings' @@ -28,67 +31,4 @@ .span-5.rightBar.last = render 'selected_contacts', :people => @selected_people.sample(20), :count => @contact_count - .section - .title - = image_tag('/images/icons/bookmark.png') - %h5 - = t(".diaspora_id.heading") - .content - = t(".diaspora_id.content_1") - %b - = current_user.diaspora_handle - %br - = t(".diaspora_id.content_2") - - - unless AppConfig[:invites_off] - .section - .title - - = image_tag('/images/icons/plus.png') - %h5 - - unless AppConfig[:open_invitations] - .right - = t('shared.invitations.invitations_left', :count => @invites) - = t('shared.invitations.invite_your_friends') - .content - = render "shared/invitations", :invites => @invites - - .section - .title - = image_tag('/images/icons/cubbies.png') - %h5 - = t('.cubbies.heading') - .content - = t('.cubbies.explanation') - = link_to t('.cubbies.learn_more'), token_path - - - unless AppConfig.configured_services.blank? - .section - .title - = image_tag('/images/icons/monotone_wrench_settings.png') - %h5 - = t('.services.heading') - .content - = t('.services.content') - - AppConfig.configured_services.each do |service| - - unless current_user.services.any?{|x| x.provider == service} - %br= link_to service.titleize, "/auth/#{service}" - - .section - .title - = image_tag('/images/icons/bookmark.png') - %h5 - = t('bookmarklet.heading') - .content - != t('bookmarklet.explanation', :link => link_to(t('bookmarklet.explanation_link_text'), bookmarklet)) - - - unless AppConfig[:paypal_hosted_button_id].blank? - .section - .title - = image_tag('/images/icons/coffee.png') - %h5 - = t('.donate') - .content - = t('.keep_us_running', :pod => URI.parse(AppConfig[:pod_url]).host) - %br - = render 'shared/donate' + = render 'shared/right_sections' diff --git a/app/views/shared/_right_sections.html.haml b/app/views/shared/_right_sections.html.haml new file mode 100644 index 000000000..6f1641e78 --- /dev/null +++ b/app/views/shared/_right_sections.html.haml @@ -0,0 +1,47 @@ +-# Copyright (c) 2010, Diaspora Inc. This file is +-# licensed under the Affero General Public License version 3 or later. See +-# the COPYRIGHT file. + + +.section + .title + = image_tag('/images/icons/cubbies.png') + %h5 + = t('aspects.index.cubbies.heading') + .content + = t('aspects.index.cubbies.explanation') + = link_to t('aspects.index.cubbies.learn_more'), token_path + +- unless AppConfig.configured_services.blank? + .section + .title + = image_tag('/images/icons/monotone_wrench_settings.png') + %h5 + = t('aspects.index.services.heading') + .content + %div + = t('aspects.index.services.content') + + #right_service_icons + - AppConfig.configured_services.each do |service| + - unless current_user.services.any?{|x| x.provider == service} + = link_to(image_tag("social_media_logos/#{service.downcase}-24x24.png", :title => service.titleize), "/auth/#{service}") + +.section + .title + = image_tag('/images/icons/bookmark.png') + %h5 + = t('bookmarklet.heading') + .content + != t('bookmarklet.explanation', :link => link_to(t('bookmarklet.explanation_link_text'), bookmarklet)) + +- unless AppConfig[:paypal_hosted_button_id].blank? + .section + .title + = image_tag('/images/icons/coffee.png') + %h5 + = t('aspects.index.donate') + .content + = t('aspects.index.keep_us_running', :pod => URI.parse(AppConfig[:pod_url]).host) + %br + = render 'shared/donate' diff --git a/app/views/users/getting_started.html.haml b/app/views/users/getting_started.html.haml index 551c2c403..e628bdf7d 100644 --- a/app/views/users/getting_started.html.haml +++ b/app/views/users/getting_started.html.haml @@ -2,36 +2,99 @@ -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. +- content_for :head do + = include_javascripts :home -= content_for :head do - :css - header{ display:none; } +.span-5.leftNavBar + #home_user_badge + = owner_image_link + %h3 + = current_user.first_name - #getting_started_logo.start{ - -webkit-animation-name: fadeUp; - -webkit-animation-delay: 0s; - -webkit-animation-duration: 0.35s; - } + .section + = link_to "Get Started", getting_started_path - @media only screen { - #getting_started_logo { -webkit-transform: translateZ(0); } - } - @-webkit-keyframes fadeUp { - 0% { opacity: 0; -webkit-transform: translate3d(0, 40px, 0); -webkit-animation-timing-function: ease-out; } - 70% { opacity: 0; -webkit-transform: translate3d(0, 35px, 0); } - 100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0); -webkit-animation-timing-function: ease-out; } - } +//.section +// = render 'aspects/aspect_listings' -.span-15.prepend-4.last{:style => 'position:relative;'} - = image_tag 'logo_caps.png', :id => 'getting_started_logo', :width => 143, :height => 21, :class => ('start' if @step == 1) - %br - %br - .floating{:style=>"min-height:300px;"} - = render "users/getting_started/step_#{@step}", :current_user => current_user +//.section +// = render 'tags/followed_tags_listings' - - if @step > 1 - = link_to t('back'), getting_started_path(:step => @step-1), :class => "button", :id => "previous_step" +.span-13.append-1 + .stream_container + %h3 + = "Welcome, #{current_user.first_name}!" -- if @user.getting_started - .bottom_notification - = link_to "#{t('.skip')} →", getting_started_completed_path + %ul#getting_started + %li.profile + #getting_started_profile_photo + = person_image_link(current_user.person, :size => :thumb_medium) + %h4 + %span.getting_started_number + 1 + Fill Out Your Profile + %p + Description of why you'd want to do this (or checks like g+) + .span-8 + - ["Name", "Birthday", "Gender", "Bio", "Location", "Tags"].each do |attr| + .span-4.last + = attr + + #edit_profile_button_div + = link_to "Edit Profile", edit_profile_path, :class => "button" + + %li.services + %h4 + %span.getting_started_number + 2 + Connect to your other social networks + #getting_started_service_icons + - AppConfig.configured_services.each do |service| + - unless current_user.services.any?{|x| x.provider == service} + = link_to(image_tag("social_media_logos/#{service.downcase}-48x48.png", :title => service.titleize), "/auth/#{service}") + + %li + %h4 + %span.getting_started_number + 3 + Connect with people + + #diaspora_hq_pane + - person = Person.first + = person_image_link(Person.first) + .add_to_aspect + = render :partial => 'people/relationship_action', + :locals => { :person => Person.first, + :contact => current_user.contact_for(Person.first), + :current_user => current_user } + + .name + = person_link(person) + + .info + Get updates about the project. + + %li + %h4 + %span.getting_started_number + 4 + Follow your interests + %p + popular/curated tags? person's tags? + + %li + %h4 + %span.getting_started_number + 5 + Connect to + = link_to "Cubbi.es", "http://cubbi.es/" + %p + = t('tokens.show.what_is_cubbies') + + .cubbies_images + = image_tag '/images/cubbies_collage.png', :width => 422, :height => 159, :class => "cubbies_collage_small" + = image_tag '/images/cubbies_screenshot2.png', :height => 151, :width => 200, :class => "cubbies_user_page_small" + +.span-5.rightBar.last + /= render 'selected_contacts', :people => @selected_people.sample(20), :count => @contact_count + /= render 'shared/right_sections' diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index ed3721bf7..ae7b07fe0 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -3183,3 +3183,78 @@ ul.left_nav :bottom 12px :right 5px :position absolute + +ul#getting_started + :padding 0 + :margin 0 + + li + :position relative + :border + :bottom 1px solid #ddd + :padding + :top 25px + :bottom 5px + + .profile + :min-height 170px + +#getting_started_profile_photo + :float right + .avatar + :height 150px + :width 150px + +#edit_profile_button_div + :padding + :top 70px + +#getting_started_service_icons + :text-align center + + img + :margin + :right 48px + + :padding + :bottom 20px + :top 10px + +#right_service_icons + :text-align center + :padding 10px + :bottom 0 + +#diaspora_hq_pane + :padding + :top 10px + :min-height 70px + + .add_to_aspect + :float right + + .avatar + :float left + :margin + :right 10px + + .name + :font + :weight bold + +.cubbies_images + :margin-left 50px + +.cubbies_user_page_small + :position absolute + :left 250px + + +.getting_started_number + :background + :color #eee + :padding 4px + :left 8px + + :margin + :right 8px