Skip to content

Commit 6d12307

Browse files
committed
Added some more formatting to the html
1 parent dff1ec4 commit 6d12307

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

app/models/user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default Model.extend({
66
name: attr('string'),
77
login: attr('string'),
88
url: attr('string'),
9+
avatarUrl: attr('string'),
910
email: attr('string'),
1011
followers: attr('number'),
1112
bio: attr('string'),

app/templates/components/user-card.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<div class="ui card centered aligned">
2+
<div class="image">
3+
<img src={{user.avatarUrl}} alt="Avatar"/>
4+
</div>
25
<div class="content">
36
<div class="header">{{user.login}}</div>
47
<h4 class="ui sub header">{{user.bio}}</h4>

app/templates/index.hbs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,25 @@
44
<div class="ui search">
55
<div class="ui left icon input">
66
{{input value=searchValue class="prompt center aligned grid" type="text" placeholder="Search GitHub" enter="submitSearch"}}
7-
87
<i class="github icon"></i>
98
</div>
109
</div>
1110
</div>
1211

1312
{{#if model}}
1413
<div class="ui container">
14+
<br>
1515
<h1>Search Results</h1>
1616
<br>
17-
<br>
18-
<h1>User Profile</h1>
17+
<h1>Profile</h1>
1918
{{user-card user=model}}
2019
<br>
2120
<br>
22-
<h1>User Repos</h1>
21+
<h1>Repos</h1>
2322
<br>
2423
{{repo-collection repos=model.repositories}}
2524
</div>
2625
{{else}}
27-
<h1>There is no value present to search for</h1>
26+
<h1>There is no value present to search for...</h1>
2827
{{!-- load error card here --}}
2928
{{/if}}

0 commit comments

Comments
 (0)