From 5b515917a1c0ac52fa8cc584137285a9309301a3 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 24 Aug 2018 09:01:00 +0500 Subject: Add list view for repositories --- src/components/repository-list/index.js | 8 ++- src/components/repository-list/list-item/index.js | 64 ++++++++++++-------- .../repository-list/list-item/styles.css | 68 ++++++++++++++++++++++ src/components/repository-list/styles.css | 6 ++ src/containers/feed/index.js | 2 +- src/containers/feed/styles.css | 14 ++--- 6 files changed, 124 insertions(+), 38 deletions(-) create mode 100644 src/components/repository-list/styles.css diff --git a/src/components/repository-list/index.js b/src/components/repository-list/index.js index 4866094..5742ef7 100644 --- a/src/components/repository-list/index.js +++ b/src/components/repository-list/index.js @@ -1,11 +1,13 @@ import React from 'react'; import ListItem from './list-item'; +import './styles.css'; + class RepositoryList extends React.Component { render() { return ( -
-
+
+
@@ -23,7 +25,7 @@ class RepositoryList extends React.Component {
-
+
diff --git a/src/components/repository-list/list-item/index.js b/src/components/repository-list/list-item/index.js index 3d39eec..1482ad9 100644 --- a/src/components/repository-list/list-item/index.js +++ b/src/components/repository-list/list-item/index.js @@ -5,31 +5,47 @@ import './styles.css'; class ListItem extends React.Component { render() { return ( -
-

ValveSoftware / Proton

-

Compatibility tool for Steam Play based on Wine and additional components

- -
- - - - - 3,087 - - - - - - - 65 - - - - Built by - - +
+
+
+

ValveSoftware / Proton

+

Built by · kamranahmedse · July 12, 2018

+
+
+

Create React apps with no build configuration

+
+
+ + + +
); } diff --git a/src/components/repository-list/list-item/styles.css b/src/components/repository-list/list-item/styles.css index e69de29..ff43acd 100644 --- a/src/components/repository-list/list-item/styles.css +++ b/src/components/repository-list/list-item/styles.css @@ -0,0 +1,68 @@ +.list-item-container { + padding: 0 0 20px; + margin-bottom: 20px; + border-bottom: 1px solid #e8e8e8; + position: relative; +} + +.list-item-container .repo-header h3 { + margin-bottom: 4px; + font-size: 20px; + font-weight: 600; +} + +.list-item-container .repo-header h3 .text-normal { + font-weight: 400; +} + +.list-item-container .repo-footer { + font-size: 13px; +} + +.list-item-container .repo-header p { + margin-bottom: 0; +} + +.list-item-container .repo-header, .list-item-container .repo-body { + margin-bottom: 15px; +} + +.list-item-container .repo-body p { + margin-bottom: 0; +} + +.list-item-container .repo-footer svg { + position: relative; + top: -1px; + margin-right: 6px; + fill: #6c7583; +} + +.list-item-container .repo-meta a { + color: currentColor; + text-decoration: none; + font-weight: 500; +} + +.list-container .list-item-container:last-child { + margin-bottom: 0; + border-bottom: 0; + padding-bottom: 0; +} + +.list-item-container .repo-footer a { + color: black; + text-decoration: none; +} + +.list-item-container .author-link { + position: absolute; + top: 15px; + right: 15px; +} + +.list-item-container .author-img { + height: 92px; + width: 92px; + border-radius: 92px; +} diff --git a/src/components/repository-list/styles.css b/src/components/repository-list/styles.css new file mode 100644 index 0000000..66a9d54 --- /dev/null +++ b/src/components/repository-list/styles.css @@ -0,0 +1,6 @@ +.list-container { + background: white; + padding: 25px; + margin: 25px 0 0; + border-radius: 8px; +} diff --git a/src/containers/feed/index.js b/src/containers/feed/index.js index 869fc8a..50951e2 100644 --- a/src/containers/feed/index.js +++ b/src/containers/feed/index.js @@ -13,7 +13,7 @@ class FeedContainer extends React.Component {
-
+

Today July 12, 2019

diff --git a/src/containers/feed/styles.css b/src/containers/feed/styles.css index 6e7c61a..11fbe5d 100644 --- a/src/containers/feed/styles.css +++ b/src/containers/feed/styles.css @@ -4,9 +4,12 @@ float: left; } +.header-row h4 { + margin-top: 15px; +} + .group-heading h4 { margin-bottom: 0; - margin-top: 15px; } .group-heading .small { @@ -23,15 +26,6 @@ margin-top: 20px; } -.grid-container:hover .grid-item-container { - opacity: 0.5; -} - -.grid-container .grid-item-container:hover { - opacity: 1; - z-index: 2; -} - .row-group { margin-top: 35px; } -- cgit v1.3