planiverse

A minimalist, no-JS front-end for Mastodon.
git clone https://git.stjo.hn/planiverse
Log | Files | Refs | README | LICENSE

home_timeline.blade.php (1407B)


      1 <!doctype html>
      2 <html lang="{{ app()->getLocale() }}">
      3     <head>
      4         <meta charset="utf-8">
      5         <meta http-equiv="X-UA-Compatible" content="IE=edge">
      6         <meta name="viewport" content="width=device-width, initial-scale=1">
      7 
      8         <title>{{ $mastodon_domain }} | Timeline</title>
      9 
     10         <link rel="stylesheet" href="{{ url('css/styles.css') }}" />
     11     </head>
     12     <body>
     13         <h1>{{ $mastodon_domain }} | Timeline</h1>
     14 
     15         @component('navigation')
     16         @endcomponent
     17 
     18         <form method="post" action="{{ route('post_status') }}">
     19             <input type="text" name="spoiler_text" placeholder="Spoiler/Warning" />
     20             <textarea rows="4" name="status" placeholder="Status" required autofocus></textarea>
     21             <select name="visibility">
     22                 <option value="public">Public</option>
     23                 <option value="unlisted">Unlisted</option>
     24                 <option value="private">Private</option>
     25                 <option value="direct">Direct</option>
     26             </select>
     27             <input type="submit" value="Post" />
     28             {{ csrf_field() }}
     29         </form>
     30 
     31         <ul>
     32             @foreach ($statuses as $status)
     33                 @component('status', ['status' => $status])
     34                 @endcomponent
     35             @endforeach
     36         </ul>
     37 
     38         @component('pagination', ['links' => $links])
     39         @endcomponent
     40     </body>
     41 </html>