summaryrefslogtreecommitdiff
path: root/lib/aggiedit_web/templates/page/index.html.heex
blob: f2d212864a04a22486221308b963baa69e86a55c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<div>
  <h1>
    Welcome to AggiEdit!
  </h1>
</div>
<div>
  <h3>
  How does it work?
  </h3>
  <p>
  AggiEdit is a Reddit clone, but "sub-aggies" are only available to other users that share the same domain name in the email as yourself.
  For example, if you sign up with your email address "joe@mailinator.com" you are assigned to the sub-aggie "mailinator.com".
  <br>
  In a sub-aggie, you can create posts with a title, a body, and an attachment. Posts are visible to everyone in your sub-aggie, and a realtime
  chat-room is created for each post in the sub-aggie to discuss that post.
  </p>
  <%= if !@current_user do %>
  <p>
    Get started by <%= link "registering", to: Routes.user_registration_path(@conn, :new) %> to be able to view posts in your sub-aggie!
  </p>
  <% else %>
  <p>
    You are signed in! <%= link "Visit your sub-aggie!", to: "/room/#{@current_user.room_id}" %>
  </p>
  <% end %>
</div>