-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use card for displaying github profile #17
- Loading branch information
Showing
3 changed files
with
72 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
<h1 class="text-3xl text-white py-3 text-center | ||
bg-gradient-to-r from-green-400 to-blue-500 rounded-lg shadow-lg"> | ||
hello david | ||
</h1> | ||
|
||
<div> | ||
<h1 class="text-4xl font-bold text-center"> | ||
The count is: <%= @data.id %> </h1> | ||
|
||
<p class="text-center"> | ||
<button phx-click="dec" | ||
class="w-20 bg-red-500 hover:bg-red-600">-</button> | ||
<button phx-click="inc" | ||
class="w-20 bg-green-500 hover:bg-green-600">+</button> | ||
</p> | ||
</div> | ||
|
||
<h1>{ @data.login }</h1> | ||
|
||
<img style="height:auto;" src={@data.avatar_url} | ||
width="260" height="260" | ||
class="rounded-full"> | ||
|
||
|
||
<button phx-click="sync" | ||
class="w-20 bg-green-600 hover:bg-green-800 text-white font-bold py-2 px-4 rounded"> | ||
Sync | ||
</button> | ||
</button> | ||
|
||
|
||
<div class="flex flex-row justify-center items-center"> | ||
<div class="w-64 m-10 max-w-sm"> | ||
<div class="rounded-lg border bg-white px-4 pt-8 pb-10 shadow-lg"> | ||
<div class="relative mx-auto w-36 rounded-full"> | ||
<span class="absolute right-0 m-3 h-3 w-3 rounded-full bg-green-500 ring-2 ring-green-300 ring-offset-2"></span> | ||
<img class="mx-auto h-auto w-full rounded-full" | ||
src={@data.avatar_url} alt={@data.name} /> | ||
</div> | ||
<h1 class="my-1 text-center text-xl font-bold leading-8 text-gray-900">@{@data.login}</h1> | ||
<h3 class="font-lg text-semibold text-center leading-6 text-gray-600">{@data.name}</h3> | ||
<p class="text-center text-sm leading-6 text-gray-500 hover:text-gray-600">{@data.bio}</p> | ||
<ul class="mt-3 divide-y rounded bg-gray-100 py-2 px-3 text-gray-600 shadow-sm hover:text-gray-700 hover:shadow"> | ||
<li class="flex items-center py-3 text-sm"> | ||
<span>Company</span> | ||
<span class="ml-auto"> | ||
<span class="rounded-full bg-green-200 py-1 px-2 text-xs font-medium text-green-700">{@data.company}</span></span> | ||
</li> | ||
<li class="flex items-center py-3 text-sm"> | ||
<span>Joined On</span> | ||
<span class="ml-auto">{@data.created_at}</span> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters