The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

78 lines
3.1 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. = javascript_pack_tag 'about', integrity: true, crossorigin: 'anonymous'
  6. %meta{ property: 'og:site_name', content: site_title }/
  7. %meta{ property: 'og:url', content: about_url }/
  8. %meta{ property: 'og:type', content: 'website' }/
  9. %meta{ property: 'og:title', content: site_hostname }/
  10. %meta{ property: 'og:description', content: strip_tags(@instance_presenter.site_description.presence || t('about.about_mastodon_html')) }/
  11. %meta{ property: 'og:image', content: asset_pack_path('mastodon_small.jpg', protocol: :request) }/
  12. %meta{ property: 'og:image:width', content: '400' }/
  13. %meta{ property: 'og:image:height', content: '400' }/
  14. %meta{ property: 'twitter:card', content: 'summary' }/
  15. .landing-page
  16. .header-wrapper
  17. .mascot-container
  18. = image_tag asset_pack_path('elephant-fren.png'), alt: '', role: 'presentation', class: 'mascot'
  19. .header
  20. .container.links
  21. .brand
  22. = link_to root_url do
  23. = image_tag asset_pack_path('logo_full.svg'), alt: 'Mastodon'
  24. %ul.nav
  25. %li
  26. - if user_signed_in?
  27. = link_to t('settings.back'), root_url, class: 'webapp-btn'
  28. - else
  29. = link_to t('auth.login'), new_user_session_path, class: 'webapp-btn'
  30. %li= link_to t('about.about_this'), about_more_path
  31. %li= link_to t('about.other_instances'), 'https://joinmastodon.org/'
  32. .container.hero
  33. .floats
  34. %div{ role: 'presentation', class: 'float-1' }
  35. %div{ role: 'presentation', class: 'float-2' }
  36. %div{ role: 'presentation', class: 'float-3' }
  37. .heading
  38. %h1
  39. = @instance_presenter.site_title
  40. %small= t 'about.hosted_on', domain: site_hostname
  41. - if @instance_presenter.open_registrations
  42. = render 'registration'
  43. - else
  44. .closed-registrations-message
  45. %div
  46. - if @instance_presenter.closed_registrations_message.blank?
  47. %p= t('about.closed_registrations')
  48. - else
  49. = @instance_presenter.closed_registrations_message.html_safe
  50. = link_to t('about.find_another_instance'), 'https://joinmastodon.org/', class: 'button button-alternative button--block'
  51. .learn-more-cta
  52. .container
  53. %h3= t('about.description_headline', domain: site_hostname)
  54. %p= @instance_presenter.site_description.html_safe.presence || t('about.generic_description', domain: site_hostname)
  55. .features
  56. .container
  57. - if Setting.timeline_preview
  58. #mastodon-timeline{ data: { props: Oj.dump(default_props) } }
  59. .about-mastodon
  60. %h3= t 'about.what_is_mastodon'
  61. %p= t 'about.about_mastodon_html'
  62. %a.button.button-secondary{ href: 'https://joinmastodon.org/' }= t 'about.learn_more'
  63. = render 'features'
  64. .footer-links
  65. .container
  66. %p
  67. = link_to t('about.source_code'), 'https://github.com/tootsuite/mastodon'
  68. = " (#{@instance_presenter.version_number})"