You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
3.3 KiB

  1. - content_for :page_title do
  2. = site_hostname
  3. - content_for :header_tags do
  4. %script#initial-state{ type: 'application/json' }!= json_escape(@initial_state_json)
  5. = render partial: 'shared/og'
  6. .landing-page
  7. .header-wrapper
  8. .mascot-container
  9. = image_tag asset_pack_path('elephant-fren.png'), alt: '', role: 'presentation', class: 'mascot'
  10. .header
  11. .container.links
  12. .brand
  13. = link_to root_url do
  14. = image_tag asset_pack_path('logo_full.svg'), alt: 'Mastodon'
  15. %ul.nav
  16. %li
  17. - if user_signed_in?
  18. = link_to t('settings.back'), root_url, class: 'webapp-btn'
  19. - else
  20. = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn'
  21. %li= link_to t('about.about_this'), about_more_path
  22. %li
  23. = link_to 'https://joinmastodon.org/' do
  24. = "#{t('about.other_instances')}"
  25. %i.fa.fa-external-link{ style: 'padding-left: 5px;' }
  26. .container.hero
  27. .floats
  28. %div{ role: 'presentation', class: 'float-1' }
  29. %div{ role: 'presentation', class: 'float-2' }
  30. %div{ role: 'presentation', class: 'float-3' }
  31. .heading
  32. %h1
  33. = @instance_presenter.site_title
  34. %small= t 'about.hosted_on', domain: site_hostname
  35. - if @instance_presenter.open_registrations
  36. = render 'registration'
  37. - else
  38. .closed-registrations-message
  39. %div
  40. - if @instance_presenter.closed_registrations_message.blank?
  41. %p= t('about.closed_registrations')
  42. - else
  43. = @instance_presenter.closed_registrations_message.html_safe
  44. = simple_form_for(:user, html: { style: 'margin-left: -20px' }, url: session_path(:user)) do |f|
  45. = f.input :email, autofocus: true, placeholder: t('simple_form.labels.defaults.email'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.email') }
  46. = f.input :password, placeholder: t('simple_form.labels.defaults.password'), required: true, input_html: { 'aria-label' => t('simple_form.labels.defaults.password'), :autocomplete => 'off' }
  47. .actions
  48. = f.button :button, t('auth.login'), type: :submit
  49. = link_to t('about.find_another_instance'), 'https://joinmastodon.org/', class: 'button button-alternative button--block'
  50. .about-short
  51. .container
  52. %h3= t('about.description_headline', domain: site_hostname)
  53. %p= @instance_presenter.site_description.html_safe.presence || t('about.generic_description', domain: site_hostname)
  54. .features
  55. .container
  56. - if Setting.timeline_preview
  57. #mastodon-timeline{ data: { props: Oj.dump(default_props) } }
  58. .about-mastodon
  59. %h3= t 'about.what_is_mastodon'
  60. %p= t 'about.about_mastodon_html'
  61. = link_to t('about.learn_more'), 'https://joinmastodon.org/', class: 'button button-secondary'
  62. = render 'features'
  63. .footer-links
  64. .container
  65. %p
  66. = link_to t('about.source_code'), @instance_presenter.source_url
  67. - if @instance_presenter.commit_hash == ""
  68. %strong= " (#{@instance_presenter.version_number})"
  69. - else
  70. %strong= " (#{@instance_presenter.version_number}, "
  71. %strong= " #{@instance_presenter.commit_hash})"