1defmodule CometApp.HomePage do
2 use Hologram.Page
3
4 route "/"
5
6 layout CometApp.MainLayout, page_title: "Home"
7
8 # def init(_params, component, _server) do
9 # # In real app, fetch from database
10 # posts = [
11 # %{id: 1, title: "First Post", excerpt: "This is my first post"},
12 # %{id: 2, title: "Second Post", excerpt: nil}
13 # ]
14
15 # put_state(component, :posts, posts)
16 # end
17
18 def template do
19 ~HOLO"""
20 <h1 class="italic text-9xl tracking-tighter leading-30 mb-10 font-thin">
21 <span class="font-medium">Comet</span> is the next-generation of music streaming.
22 </h1>
23 <p class="text-2xl font-light">
24 Powered by the AT Protocol, we're putting the power back in the hands of musicians.
25 </p>
26 """
27 end
28end