|
3 | 3 | <header class="header">
|
4 | 4 | <nav class="inner">
|
5 | 5 | <router-link to="/" exact>
|
6 |
| - <img class="logo" src="~public/logo-48.png" alt="logo"> |
| 6 | + <img class="logo" src="~public/logo-48.png" alt="logo" /> |
7 | 7 | </router-link>
|
8 | 8 | <router-link to="/top">Top</router-link>
|
9 | 9 | <router-link to="/new">New</router-link>
|
10 | 10 | <router-link to="/show">Show</router-link>
|
11 | 11 | <router-link to="/ask">Ask</router-link>
|
12 | 12 | <router-link to="/job">Jobs</router-link>
|
13 |
| - <a class="github" href="https://github.com/vuejs/vue-hackernews-2.0" target="_blank" rel="noopener"> |
14 |
| - Built with Vue.js |
15 |
| - </a> |
16 | 13 | </nav>
|
17 | 14 | </header>
|
18 | 15 | <transition name="fade" mode="out-in">
|
19 | 16 | <router-view class="view"></router-view>
|
20 | 17 | </transition>
|
| 18 | + |
| 19 | + <footer class="footer"> |
| 20 | + <div class="container"> |
| 21 | + <p> |
| 22 | + Built with ❤️ using |
| 23 | + <a |
| 24 | + class="github" |
| 25 | + href="https://github.com/UKPLab/sentence-transformers" |
| 26 | + target="_blank" |
| 27 | + rel="noopener" |
| 28 | + >sentence-transformers</a>, |
| 29 | + <a |
| 30 | + class="github" |
| 31 | + href="https://github.com/vuejs/vue-hackernews-2.0" |
| 32 | + target="_blank" |
| 33 | + rel="noopener" |
| 34 | + >Vue.js</a> and |
| 35 | + <a |
| 36 | + class="github" |
| 37 | + href="https://github.com/nmslib/hnswlib" |
| 38 | + target="_blank" |
| 39 | + rel="noopener" |
| 40 | + >hnswlib</a> |
| 41 | + </p> |
| 42 | + </div> |
| 43 | + </footer> |
21 | 44 | </div>
|
22 | 45 | </template>
|
23 | 46 |
|
24 | 47 | <style lang="stylus">
|
25 |
| -body |
26 |
| - font-family -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; |
27 |
| - font-size 15px |
28 |
| - background-color lighten(#eceef1, 30%) |
29 |
| - margin 0 |
30 |
| - padding-top 55px |
31 |
| - color #34495e |
32 |
| - overflow-y scroll |
33 |
| -
|
34 |
| -a |
35 |
| - color #34495e |
36 |
| - text-decoration none |
37 |
| -
|
38 |
| -.header |
39 |
| - background-color #ff6600 |
40 |
| - position fixed |
41 |
| - z-index 999 |
42 |
| - height 55px |
43 |
| - top 0 |
44 |
| - left 0 |
45 |
| - right 0 |
46 |
| - .inner |
47 |
| - max-width 800px |
48 |
| - box-sizing border-box |
49 |
| - margin 0px auto |
50 |
| - padding 15px 5px |
51 |
| - a |
52 |
| - color rgba(255, 255, 255, .8) |
53 |
| - line-height 24px |
54 |
| - transition color .15s ease |
55 |
| - display inline-block |
56 |
| - vertical-align middle |
57 |
| - font-weight 300 |
58 |
| - letter-spacing .075em |
59 |
| - margin-right 1.8em |
60 |
| - &:hover |
61 |
| - color #fff |
62 |
| - &.router-link-active |
63 |
| - color #fff |
64 |
| - font-weight 400 |
65 |
| - &:nth-child(6) |
66 |
| - margin-right 0 |
67 |
| - .github |
68 |
| - color #fff |
69 |
| - font-size .9em |
70 |
| - margin 0 |
71 |
| - float right |
72 |
| -
|
73 |
| -.logo |
74 |
| - width 24px |
75 |
| - margin-right 10px |
76 |
| - display inline-block |
77 |
| - vertical-align middle |
78 |
| -
|
79 |
| -.view |
80 |
| - max-width 800px |
81 |
| - margin 0 auto |
82 |
| - position relative |
83 |
| -
|
84 |
| -.fade-enter-active, .fade-leave-active |
85 |
| - transition all .2s ease |
86 |
| -
|
87 |
| -.fade-enter, .fade-leave-active |
88 |
| - opacity 0 |
89 |
| -
|
90 |
| -@media (max-width 860px) |
91 |
| - .header .inner |
92 |
| - padding 15px 30px |
93 |
| -
|
94 |
| -@media (max-width 600px) |
95 |
| - .header |
96 |
| - .inner |
97 |
| - padding 15px |
98 |
| - a |
99 |
| - margin-right 1em |
100 |
| - .github |
101 |
| - display none |
| 48 | +body { |
| 49 | + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; |
| 50 | + font-size: 15px; |
| 51 | + background-color: lighten(#eceef1, 30%); |
| 52 | + margin: 0; |
| 53 | + padding-top: 55px; |
| 54 | + color: #34495e; |
| 55 | + overflow-y: scroll; |
| 56 | +} |
| 57 | +
|
| 58 | +footer { |
| 59 | + position: fixed; |
| 60 | + bottom: 0; |
| 61 | + width: 100%; |
| 62 | + background-color: #fff; |
| 63 | + height: 40x; |
| 64 | + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); |
| 65 | + text-align: center; |
| 66 | +
|
| 67 | + .github { |
| 68 | + text-decoration: underline; |
| 69 | + } |
| 70 | +} |
| 71 | +
|
| 72 | +a { |
| 73 | + color: #34495e; |
| 74 | + text-decoration: none; |
| 75 | +} |
| 76 | +
|
| 77 | +.header { |
| 78 | + background-color: #ff6600; |
| 79 | + position: fixed; |
| 80 | + z-index: 999; |
| 81 | + height: 55px; |
| 82 | + top: 0; |
| 83 | + left: 0; |
| 84 | + right: 0; |
| 85 | +
|
| 86 | + .inner { |
| 87 | + max-width: 800px; |
| 88 | + box-sizing: border-box; |
| 89 | + margin: 0px auto; |
| 90 | + padding: 15px 5px; |
| 91 | + } |
| 92 | +
|
| 93 | + a { |
| 94 | + color: rgba(255, 255, 255, 0.8); |
| 95 | + line-height: 24px; |
| 96 | + transition: color 0.15s ease; |
| 97 | + display: inline-block; |
| 98 | + vertical-align: middle; |
| 99 | + font-weight: 300; |
| 100 | + letter-spacing: 0.075em; |
| 101 | + margin-right: 1.8em; |
| 102 | +
|
| 103 | + &:hover { |
| 104 | + color: #fff; |
| 105 | + } |
| 106 | +
|
| 107 | + &.router-link-active { |
| 108 | + color: #fff; |
| 109 | + font-weight: 400; |
| 110 | + } |
| 111 | +
|
| 112 | + &:nth-child(6) { |
| 113 | + margin-right: 0; |
| 114 | + } |
| 115 | + } |
| 116 | +} |
| 117 | +
|
| 118 | +.logo { |
| 119 | + width: 24px; |
| 120 | + margin-right: 10px; |
| 121 | + display: inline-block; |
| 122 | + vertical-align: middle; |
| 123 | +} |
| 124 | +
|
| 125 | +.view { |
| 126 | + max-width: 800px; |
| 127 | + margin: 0 auto; |
| 128 | + position: relative; |
| 129 | +} |
| 130 | +
|
| 131 | +.fade-enter-active, .fade-leave-active { |
| 132 | + transition: all 0.2s ease; |
| 133 | +} |
| 134 | +
|
| 135 | +.fade-enter, .fade-leave-active { |
| 136 | + opacity: 0; |
| 137 | +} |
| 138 | +
|
| 139 | +@media (max-width: 860px) { |
| 140 | + .header .inner { |
| 141 | + padding: 15px 30px; |
| 142 | + } |
| 143 | +} |
| 144 | +
|
| 145 | +@media (max-width: 600px) { |
| 146 | + .header { |
| 147 | + .inner { |
| 148 | + padding: 15px; |
| 149 | + } |
| 150 | +
|
| 151 | + a { |
| 152 | + margin-right: 1em; |
| 153 | + } |
| 154 | +
|
| 155 | + .github { |
| 156 | + display: none; |
| 157 | + } |
| 158 | + } |
| 159 | +} |
102 | 160 | </style>
|
0 commit comments