diff --git a/sass/_project-sass/_project-Main.scss b/sass/_project-sass/_project-Main.scss index 29697590..3c815973 100644 --- a/sass/_project-sass/_project-Main.scss +++ b/sass/_project-sass/_project-Main.scss @@ -384,6 +384,12 @@ width: 100%; position: relative; border-right: 1px solid #ddd; + h2 { + margin-top: 1em; + float: left; + width: 100%; + margin-bottom: .75em; + } } .right-col { background: #FAF6F1; diff --git a/views/home.erb b/views/home.erb index 91861972..37c1f22c 100644 --- a/views/home.erb +++ b/views/home.erb @@ -3,7 +3,7 @@

Your Feed

- <% if !@events.empty? || params[:activity] == 'mine' %> + <% if !@events.empty? && (site.followings_dataset.count > 0) %> class="selected"<% end %>>All Activity    class="selected"<% end %>> @@ -23,24 +23,33 @@
- <% if !@events.empty? %> - <%== erb :'_news', layout: false, locals: {site: current_site, events: @events} %> - <% elsif params[:activity] == 'mine' %> - - <% else %> + + + <% if site.followings_dataset.count == 0 %>

Welcome to your Neocities news feed!

- You aren’t following any websites yet! Once you do, more updates will show up here. + You aren’t following any websites yet! Once you do, <% if !@events.empty? %>more<% end %> updates will show up here. - Here are some website suggestions for you. Want to find some sites to follow? Check out all the sites on Neocities! + Below are some website suggestions for you. For more, check out all the sites on Neocities!

+ <% end %> + + <% if !site.site_changed && site.followings_dataset.count > 0 %> +
+

Thanks for joining the Neocities community!

+

Now start building your website! +

+
+ <% end %> + <% if !@events.empty? %> + <%== erb :'_news', layout: false, locals: {site: current_site, events: @events} %> + <% end %> + + <% if site.followings_dataset.count == 0 %> + <% if !@events.empty? %>

Sites to Follow

<% end %>