Skip to content

Commit bfd8d9a

Browse files
author
Evan You
committed
add some links
1 parent 88f4ff2 commit bfd8d9a

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

css/style.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@ a {
4848
}
4949
#nav {
5050
padding: 10px 10px 10px 40px;
51-
background-color: #333;
52-
color: #fff;
51+
border-top: 2px solid #f60;
5352
}
5453
#nav a {
55-
color: #fff;
5654
margin-right: 10px;
5755
}
56+
#nav .source {
57+
float: right;
58+
}
5859
.story {
5960
padding: 2px 0 2px 40px;
6061
position: relative;

css/style.styl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ a
4848

4949
#nav
5050
padding 10px 10px 10px 40px
51-
background-color #333
52-
color #fff
51+
border-top 2px solid #f60
5352
a
54-
color #fff
5553
margin-right 10px
54+
.source
55+
float right
5656

5757
.story
5858
padding 2px 0 2px 40px

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ <h1><a href="#1">Hacker News</a></h1>
7272
<div id="nav" v-show="stories.length > 0">
7373
<a v-if="page > 1" href="#{{page - 1}}">&lt; prev</a>
7474
<a v-if="page < 4" href="#{{page + 1}}">more...</a>
75+
<span class="source">
76+
Built with <a href="http://vuejs.org" target="_blank">Vue.js</a> |
77+
<a href="https://github.com/yyx990803/vue-hackernews" target="_blank">Source</a>
78+
</span>
7579
</div>
7680

7781
<!-- comments sidebar -->

0 commit comments

Comments
 (0)