The code powering m.abunchtell.com https://m.abunchtell.com
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

80 行
3.2 KiB

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