Skip to content

Commit 26190e8

Browse files
committed
Auto merge of #2185 - rye:document-categories, r=jtgeibel
frontend: Document category proposal system and categorization process This PR aims to close #544, and just adds a div and some styles for it. <details><summary>📸 Before</summary><img width="1036" alt="image" src="https://user-images.githubusercontent.com/1566689/74396257-0aa34100-4dd7-11ea-9f77-c27cca629da6.png"></details> <details><summary>📸 After</summary><img width="1040" alt="image" src="https://user-images.githubusercontent.com/1566689/74396288-260e4c00-4dd7-11ea-9c48-04bf3f9c814b.png"></details> Wording and stylesheet placement is absolutely negotiable!
2 parents e4b97d7 + 2662550 commit 26190e8

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

app/styles/app.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ $link-color: rgb(0, 172, 91);
1313
@import "application";
1414
@import "home";
1515
@import "category-slugs";
16+
@import "categories";
1617
@import "crate";
1718
@import "crate/version";
1819
@import "components/crate-toml-copy";

app/styles/categories.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* Styles for the /categories page */
2+
3+
.categories-footer {
4+
width: 100%;
5+
padding: 1em;
6+
text-align: center;
7+
font-size: 85%;
8+
}

app/templates/categories.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,8 @@
6060
</div>
6161

6262
<Pagination @pages={{this.pages}} @prevPage={{this.prevPage}} @nextPage={{this.nextPage}} />
63+
64+
<div class='categories-footer'>
65+
Want to categorize your crate?
66+
<a href='http://doc.crates.io/manifest.html#package-metadata'>Add metadata!</a>
67+
</div>

0 commit comments

Comments
 (0)