scribe/src/pages/home/index_page.cr

48 lines
1.1 KiB
Crystal
Raw Normal View History

2021-09-06 19:38:18 +02:00
class Home::IndexPage < MainLayout
def page_title
Application.settings.name
2021-09-06 19:38:18 +02:00
end
def content
h1 "Scribe"
2021-10-11 19:13:00 +02:00
h2 "An alternative frontend to Medium"
para do
a(
"Here's an example",
href: "/@ftrain/big-data-small-effort-b62607a43a8c"
)
end
2021-09-06 19:38:18 +02:00
article do
section do
2021-10-03 23:17:36 +02:00
h2 "How-To"
2021-09-06 19:38:18 +02:00
para do
2021-10-03 23:17:36 +02:00
text "To view a Medium post simply replace "
code "medium.com", class: "highlight"
text " with "
code app_domain, class: "highlight"
2021-09-06 19:38:18 +02:00
end
para do
2021-10-11 19:13:00 +02:00
text "If the URL is: "
2021-10-03 23:17:36 +02:00
code do
span "medium.com", class: "highlight"
text "/@user/my-post-09a6af907a2"
end
text " change it to "
code do
span app_domain, class: "highlight"
text "/@user/my-post-09a6af907a2"
end
2021-09-06 19:38:18 +02:00
end
end
section do
h2 "How-To Automatically"
para do
2021-10-23 21:34:13 +02:00
text "Check out the "
link "FAQ", to: Faq::Index
2021-09-06 19:38:18 +02:00
end
end
2021-10-23 21:34:13 +02:00
mount Shared::LayoutFooter
2021-09-06 19:38:18 +02:00
end
end
end