|
12 | 12 | <div class="relative bg-white shadow-lg rounded sm:rounded-md p-4 sm:p-6 lg:p-8 space-y-4">
|
13 | 13 | <header class="flex flex-row items-center space-x-2">
|
14 | 14 | <div>
|
15 |
| - <!-- twitter.user.avatar --> |
16 |
| - <img src="/assets/logo.png" class="h-12 sm:h-16 w-12 sm:w-16" alt=" avatar"> |
| 15 | + <img src="{{ $user->profile_image_url_https }}" class="h-12 sm:h-16 w-12 sm:w-16" alt=" avatar"> |
17 | 16 | </div>
|
18 | 17 | <div class="flex-grow">
|
19 | 18 | <div class="flex flex-row space-x-2">
|
20 |
| - <!-- twitter.user.name --> |
21 |
| - <div class="text-xl text-gray-600 font-bold tracking-wide">Larabelles</div> |
22 |
| - <!-- twitter.user.handle --> |
23 |
| - <div class="text-gray-400">@LarabellesPHP</div> |
| 19 | + <div class="text-xl text-gray-600 font-bold tracking-wide">{{ $user->name }}</div> |
| 20 | + <div class="text-gray-400">{{ '@'.$user->screen_name }}</div> |
24 | 21 | </div>
|
25 |
| - <!-- tweet.date --> |
26 |
| - <div class="text-sm text-gray-400">8:39 AM - Feb 12, 2021</div> |
| 22 | + <div class="text-sm text-gray-400">{{ \Carbon\Carbon::parse($created_at)->toDayDateTimeString() }}</div> |
27 | 23 | </div>
|
28 | 24 | <div>
|
29 |
| - <!-- tweet.url --> |
30 |
| - <a href="#"> |
| 25 | + <a href="https://twitter.com/{{ $user->screen_name }}/status/{{ $id }}"> |
31 | 26 | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1"
|
32 | 27 | width="289.984" height="289.984" viewBox="0 0 289.984 289.984" xml:space="preserve" class="h-4 sm:h-6">
|
33 | 28 | <desc>Created with Fabric.js 1.7.22</desc>
|
|
47 | 42 |
|
48 | 43 | <main>
|
49 | 44 | <p class="overflow-clip overflow-hidden inline">
|
50 |
| - <!-- tweet.body --> |
51 |
| - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque convallis, turpis et |
52 |
| - hendrerit viverra, tortor mi imperdiet eros, sit amet tristique nisl ligula vitae magna. |
| 45 | + {{ $text }} |
53 | 46 | </p>
|
54 |
| - <!-- tweet.url --> |
55 |
| - <a class="text-blue-400" href="#">tweet.url</a> |
56 | 47 | </main>
|
57 | 48 |
|
58 | 49 | <footer class="space-x-4">
|
59 |
| - <!-- tweet.like --> |
60 |
| - <span class="text-gray-400 text-sm">♡ 35</span> |
61 |
| - <!-- twitter.user.handle --> |
62 |
| - <span class="text-gray-400 text-sm"><a href="#">★ See LarabellesPHPs other Tweets</a></span> |
| 50 | + <span class="text-gray-400 text-sm">♡ {{ $favorite_count }}</span> |
| 51 | + <span class="text-gray-400 text-sm"><a href="https://twitter.com/{{ $user->screen_name }}">★ See {{ $user->name }}'s other Tweets</a></span> |
63 | 52 | </footer>
|
64 | 53 | </div>
|
65 | 54 | </article>
|
|
0 commit comments