├── README.md ├── css └── style.css ├── index.html └── js ├── angular-marked.js ├── index.js ├── marked.js └── ngRoute.js /README.md: -------------------------------------------------------------------------------- 1 | Read [Awesome AMAs](https://github.com/sindresorhus/amas). 2 | ======= 3 | I love reading the AMAs of some of the [Awesome](https://github.com/sindresorhus/amas) people. It's pretty annoying when I have to open each issue in a new tab. So using GitHub API and AngularJS I have made this. 4 | 5 | ## TODO 6 | 7 | - [x] Add a `show more` button and load the next page 8 | - [x] Better UI 9 | - [x] Should only list closed issues as those are the answered ones 10 | - [x] Needs to render Markdown 11 | - [ ] It's currently pretty slow from clicking the title to seeing the comment. The moment the page has loaded, it should start preloading the comments in the background 12 | - [ ] Clicking a new title should close the previous, like an accordion widget 13 | - [ ] Would be cool to list all the top AMAs (based on no. of issues closed) from https://github.com/sindresorhus/amas below the search on the front-page 14 | 15 | 16 | -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css?family=Oldenburg'); 2 | html, 3 | body, 4 | h1, 5 | h2, 6 | p, 7 | img { 8 | margin: 0; 9 | padding: 0; 10 | border: 0; 11 | font-size: 100%; 12 | font: inherit; 13 | vertical-align: baseline; 14 | outline: none; 15 | -webkit-font-smoothing: antialiased; 16 | -webkit-text-size-adjust: 100%; 17 | -ms-text-size-adjust: 100%; 18 | -webkit-box-sizing: border-box; 19 | -moz-box-sizing: border-box; 20 | box-sizing: border-box; 21 | } 22 | html { 23 | overflow-y: scroll; 24 | } 25 | body { 26 | font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 27 | font-size: 62.5%; 28 | line-height: 1; 29 | color: #616161; 30 | padding: 35px 0; 31 | } 32 | input, 33 | textarea { 34 | -webkit-font-smoothing: antialiased; 35 | -webkit-text-size-adjust: 100%; 36 | -ms-text-size-adjust: 100%; 37 | -webkit-box-sizing: border-box; 38 | -moz-box-sizing: border-box; 39 | box-sizing: border-box; 40 | outline: none; 41 | } 42 | img { 43 | border: 0; 44 | max-width: 100%; 45 | } 46 | h1 { 47 | font-family: 'Oldenburg', Arial, sans-serif; 48 | color: #646464; 49 | font-size: 4.0em; 50 | line-height: 1.6em; 51 | text-align: center; 52 | /* padding-bottom: 143px; */ 53 | /* margin-bottom: 70px; */ 54 | } 55 | h2 { 56 | font-size: 2.1em; 57 | line-height: 1.5em; 58 | margin-bottom: 4px; 59 | margin-top: 15px; 60 | text-align: center; 61 | color: black; 62 | } 63 | .error h2 { 64 | font-size: 3.1em; 65 | line-height: 0.95em; 66 | margin-bottom: 4px; 67 | color: #888; 68 | } 69 | p { 70 | font-size: 2.5em; 71 | line-height: 1.35em; 72 | margin-bottom: 12px; 73 | } 74 | a { 75 | color: #00387b; 76 | font-size: 28px; 77 | text-decoration: none; 78 | margin: 11px; 79 | padding-top: 12px; 80 | } 81 | a:hover { 82 | color: #6e91b9; 83 | } 84 | /* page structure */ 85 | 86 | #w { 87 | display: block; 88 | width: 800px; 89 | /* height: 800px; */ 90 | 91 | max-height: auto; 92 | margin: 0 auto; 93 | /* background: #f8f8f8; */ 94 | 95 | padding: 130px 25px; 96 | } 97 | #gitapidata { 98 | display: block; 99 | padding: 25px 0; 100 | } 101 | /* input field */ 102 | 103 | #gitusername { 104 | display: block; 105 | padding: 5px 8px; 106 | font-size: 2.4em; 107 | color: #666; 108 | margin-top: 12px; 109 | width: 351px; 110 | margin-bottom: 15px; 111 | margin-left: 214px; 112 | } 113 | .next { 114 | padding: 10px 18px; 115 | font-size: 20px; 116 | font-weight: bold; 117 | color: #444; 118 | margin-top: 6px; 119 | cursor: pointer; 120 | text-decoration: none; 121 | text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); 122 | background-color: #eaeaea; 123 | background-image: -webkit-linear-gradient(#fafafa, #eaeaea); 124 | background-image: -moz-linear-gradient(#fafafa, #eaeaea); 125 | background-image: -ms-linear-gradient(top, #fafafa, #eaeaea); 126 | background-image: -o-linear-gradient(top, #fafafa, #eaeaea); 127 | background-image: linear-gradient(#fafafa, #eaeaea); 128 | border-radius: 3px; 129 | border: 1px solid #ddd; 130 | border-bottom-color: #c5c5c5; 131 | -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 132 | -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 133 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 134 | } 135 | #gitsubmitbtn { 136 | display: inline-block; 137 | padding: 8px 18px; 138 | font-size: 20px; 139 | font-weight: bold; 140 | float: right; 141 | color: #444; 142 | margin-top: -57px; 143 | margin-right: 234px; 144 | text-decoration: none; 145 | text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); 146 | background-color: #eaeaea; 147 | background-image: -webkit-linear-gradient(#fafafa, #eaeaea); 148 | background-image: -moz-linear-gradient(#fafafa, #eaeaea); 149 | background-image: -ms-linear-gradient(top, #fafafa, #eaeaea); 150 | background-image: -o-linear-gradient(top, #fafafa, #eaeaea); 151 | background-image: linear-gradient(#fafafa, #eaeaea); 152 | border-radius: 3px; 153 | border: 1px solid #ddd; 154 | border-bottom-color: #c5c5c5; 155 | -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 156 | -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 157 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); 158 | } 159 | #gitsubmitbtn:hover { 160 | background-color: #dadada; 161 | background-image: -webkit-linear-gradient(#eaeaea, #dadada); 162 | background-image: -moz-linear-gradient(#eaeaea, #dadada); 163 | background-image: -ms-linear-gradient(top, #eaeaea, #dadada); 164 | background-image: -o-linear-gradient(top, #eaeaea, #dadada); 165 | background-image: linear-gradient(#eaeaea, #dadada); 166 | border-color: #ccc #ccc #b5b5b5; 167 | } 168 | #gitsubmitbtn:active { 169 | background-color: #dadada; 170 | background-image: none; 171 | border-color: #b5b5b5; 172 | -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.25); 173 | -moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.25); 174 | box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.25); 175 | } 176 | .comments { 177 | display: block; 178 | font-size: 25px; 179 | font-family: 'sans-serif'; 180 | line-height: 1.3; 181 | margin: 30px; 182 | } 183 | .q { 184 | margin: 20px 20px 20px 0px; 185 | text-align: left; 186 | border: 1.2px solid #616161; 187 | display: block; 188 | text-decoration: none; 189 | padding: 10px; 190 | } 191 | a.active { 192 | color: red !important; 193 | } 194 | .active { 195 | color: red !important; 196 | } 197 | .userlinks { 198 | margin: 0 !important; 199 | color: rgba(0, 0, 0, .4) 200 | } 201 | .mdcomments a { 202 | font-size: 23px; 203 | margin: 0; 204 | line-height: 0; 205 | } 206 | .mdcomments li { 207 | font-size: 2.0em; 208 | line-height: 1.35em; 209 | margin-bottom: 12px; 210 | } 211 | .info { 212 | padding: 10px; 213 | } 214 | .mdcomments p { 215 | color: #0e0202 216 | } 217 | .info h2 { 218 | text-align: left; 219 | } 220 | .add_comment { 221 | display: block; 222 | background: #dbd6ce; 223 | padding: 10px; 224 | width: 196px; 225 | } 226 | .add_comment a { 227 | font-size:1.2rem; 228 | color:rgba(0, 0, 0, .4); 229 | } 230 | [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak { 231 | display: none !important; 232 | } 233 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 |