diff --git a/src/assets/stylesheet.css b/src/assets/stylesheet.css index 2c180b6..5ba82b0 100644 --- a/src/assets/stylesheet.css +++ b/src/assets/stylesheet.css @@ -39,6 +39,10 @@ a { padding-bottom: 20px; } +.-mar-no { + margin: 0; +} + .-left { float: left; } @@ -92,12 +96,24 @@ a { .index-interiorlink { display: block; width: 100%; - padding: 1rem; + padding: .5rem 2rem; color: white; text-decoration: none; box-sizing: border-box; } +.index-interiorlink-description { + height: 1.5em; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; +} + +.index-interiorlink-icon { + position: relative; + top: .2em; +} + .interior-topbar { height: 25px; } @@ -114,6 +130,11 @@ a { background: linear-gradient(90deg, rgba(235, 181, 242, .3), rgba(128, 95, 132, .3)); } +.index-interiorlink.-git, +.interior-headline.-git { + background: linear-gradient(90deg, rgba(181, 242, 186, .3), rgba(95, 132, 105, .3)); +} + .interior-headline svg { vertical-align: bottom; } diff --git a/src/discoverJSONData.js b/src/discoverJSONData.js index d826357..6b552e9 100644 --- a/src/discoverJSONData.js +++ b/src/discoverJSONData.js @@ -17,6 +17,7 @@ const getPinnedRepoJSONs = async () => { } } = await requestGithub(schema); return pinnedRepoData.map(data => { + data.node.pageType = 'git'; if (data.node.readme && data.node.readme.text) { data.node.readme.html = marked(data.node.readme.text); } diff --git a/src/pages/example.json b/src/pages/example.json index cfdcf2a..7dab33a 100644 --- a/src/pages/example.json +++ b/src/pages/example.json @@ -1,5 +1,17 @@ { "name": "Example", + "pageType": "volunteer", + "repositoryTopics": { + "edges": [ + { + "node": { + "topic": { + "name": "volunteering" + } + } + } + ] + }, "readme": { "text": "## Whats Up?" } diff --git a/src/templates/index.hbs b/src/templates/index.hbs index 0deb239..2a66c3e 100644 --- a/src/templates/index.hbs +++ b/src/templates/index.hbs @@ -16,9 +16,14 @@
{{this.description}}
+ +{{this.description}}
-