Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7a34783

Browse files
committed
More responsive front page
1 parent81db65c commit7a34783

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

‎src/js/front.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Vue.component('user-link',{
22
props:['login','avatar_url'],
33
template:`
4-
<divx x-first x-last">user">
4+
<divx x-first x-last">col-1-xl col-2-l col-4-m col-12">
55
<a v-bind:href="'/github#' + login">
6-
<img :src="avatar_url" :alt="login">
6+
<img :src="avatar_url" :alt="login"/><br>
77
<i class="fa fa-user" aria-hidden="true"></i> {{ login }}
88
</a>
99
</div>

‎templates/front.html‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,49 +8,49 @@ <h1>CoderStats</h1>
88
</div>
99
<divclass="box-search"id="search">
1010
<formclass="row"@submit.prevent>
11-
<divclass="col-10">
11+
<divclass="col-12 col-7-m col-8-l col-10-xl">
1212
<inputclass="field"id="username"type="text"placeholder="GitHub user name or organization"v-model="username">
1313
</div>
14-
<divclass="col-2">
14+
<divclass="col-12 col-5-m col-4-l col-2-xl">
1515
<button@click="coder"class="button">Get Stats</button>
1616
</div>
1717
</form>
1818
</div>
1919
<divv-if="events"id="active-users"class="padb">
2020
<h2>Recently active users</h2>
21-
<divclass="flex">
21+
<divclass="row">
2222
<user-link
23-
v-for="user in users.slice(0,10)"
23+
v-for="user in users.slice(0,12)"
2424
v-bind:login="user.key"
2525
v-bind:avatar_url="user.values[0].actor.avatar_url"
2626
></user-link>
2727
</div>
2828
</div>
2929
<divv-if="users"id="followed-users"class="padb">
3030
<h2>Users with many followers</h2>
31-
<divclass="flex">
31+
<divclass="row">
3232
<user-link
33-
v-for="user in users.slice(0,10)"
33+
v-for="user in users.slice(0,12)"
3434
v-bind:login="user.login"
3535
v-bind:avatar_url="user.avatar_url"
3636
></user-link>
3737
</div>
3838
</div>
3939
<divv-if="users"id="most-repos-users"class="padb">
4040
<h2>Users with many repositories</h2>
41-
<divclass="flex">
41+
<divclass="row">
4242
<user-link
43-
v-for="user in users.slice(0,10)"
43+
v-for="user in users.slice(0,12)"
4444
v-bind:login="user.login"
4545
v-bind:avatar_url="user.avatar_url"
4646
></user-link>
4747
</div>
4848
</div>
4949
<divv-if="users"id="earliest-users"class="padb">
5050
<h2>Users with old accounts</h2>
51-
<divclass="flex">
51+
<divclass="row">
5252
<user-link
53-
v-for="user in users.slice(0,10)"
53+
v-for="user in users.slice(0,12)"
5454
v-bind:login="user.login"
5555
v-bind:avatar_url="user.avatar_url"
5656
></user-link>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp