From a899019a82a920f7c3cec0f82b92bd4386ae4958 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Thu, 23 Aug 2018 14:32:23 +0500 Subject: Repository grid --- src/components/repository-grid/grid-item/index.js | 63 ++++++++++++++ .../repository-grid/grid-item/styles.css | 99 ++++++++++++++++++++++ src/components/repository-grid/index.js | 39 +++++++++ src/components/repository/index.js | 63 -------------- src/components/repository/styles.css | 99 ---------------------- src/containers/feed/index.js | 30 +------ src/containers/feed/styles.css | 4 +- 7 files changed, 206 insertions(+), 191 deletions(-) create mode 100644 src/components/repository-grid/grid-item/index.js create mode 100644 src/components/repository-grid/grid-item/styles.css create mode 100644 src/components/repository-grid/index.js delete mode 100644 src/components/repository/index.js delete mode 100644 src/components/repository/styles.css diff --git a/src/components/repository-grid/grid-item/index.js b/src/components/repository-grid/grid-item/index.js new file mode 100644 index 0000000..dac236d --- /dev/null +++ b/src/components/repository-grid/grid-item/index.js @@ -0,0 +1,63 @@ +import React from 'react'; + +import './styles.css'; + +class GridItem extends React.Component { + render() { + return ( +
+
+
+ +
+ +
+
+
kamranahmedse
+

View Profile

+
+
+
+
+
+ design-patterns-for-humans +
+

Built by · kamranahmedse · July 12, 2018

+
+
+

Create React apps with no build configuration

+
+
+ + + + PHP + + + + + + + 1,532 + + + + + + 30 + + + + 55 + +
+
+
+ ); + } +} + +export default GridItem; diff --git a/src/components/repository-grid/grid-item/styles.css b/src/components/repository-grid/grid-item/styles.css new file mode 100644 index 0000000..c6ade83 --- /dev/null +++ b/src/components/repository-grid/grid-item/styles.css @@ -0,0 +1,99 @@ +.repository-container { + padding: 10px; + transition: all 0.3s ease; +} + +.repository-body { + background: white; + padding: 20px; + border-radius: 10px; + box-shadow: -5px 10px 60px -13px rgba(0, 0, 0, 0.20); + height: 270px; +} + +.author-details { + margin-bottom: 20px; +} + +.author-img img { + width: 35px; + height: 35px; + object-fit: cover; + border-radius: 8px; + float: left; + margin-right: 15px; +} + +.author-details h5 { + margin-bottom: 2px; + font-weight: 600; + color: #6c7583; + font-size: 14px; +} + +.author-details a { + color: #6c7583; +} + +.author-details p { + margin-bottom: 0; + font-size: 12px; +} + +.author-header, .repo-header, .repo-body { + margin-bottom: 15px; +} + +.author-header a { + text-decoration: none; +} + +.repo-header h5 { + font-size: 19px; + margin-bottom: 5px; +} + +.repo-header p { + margin-bottom: 0; +} + +.repo-header a { + color: black; + text-decoration: none; +} + +.author-name { + font-weight: 400; +} + +.repo-name { + font-weight: 700; +} + +.repo-body p { + font-size: 14px; + margin-bottom: 0; + color: #6e7583; +} + +.repo-footer { + font-size: 12px; + position: absolute; + bottom: 15px; + left: 25px; + right: 25px; + background: white; + padding: 10px; +} + +.repo-footer a { + text-decoration: none; + color: #000000; + font-weight: 500; +} + +.repo-footer a svg { + position: relative; + top: -2px; + margin-right: 5px; +} diff --git a/src/components/repository-grid/index.js b/src/components/repository-grid/index.js new file mode 100644 index 0000000..25e50f2 --- /dev/null +++ b/src/components/repository-grid/index.js @@ -0,0 +1,39 @@ +import React from 'react'; +import GridItem from './grid-item'; + +class RepositoryGrid extends React.Component { + render() { + return ( +
+
+ + + + + + + + + +
+
+
+
+

Yesterday July 11, 2019

+
+
+
+
+ + + + + + +
+
+ ); + } +} + +export default RepositoryGrid; diff --git a/src/components/repository/index.js b/src/components/repository/index.js deleted file mode 100644 index bbb5106..0000000 --- a/src/components/repository/index.js +++ /dev/null @@ -1,63 +0,0 @@ -import React from 'react'; - -import './styles.css'; - -class Repository extends React.Component { - render() { - return ( -
-
-
- -
- -
-
-
kamranahmedse
-

View Profile

-
-
-
-
-
- design-patterns-for-humans -
-

Built by · kamranahmedse · July 12, 2018

-
-
-

Create React apps with no build configuration

-
-
- - - - PHP - - - - - - - 1,532 - - - - - - 30 - - - - 55 - -
-
-
- ); - } -} - -export default Repository; diff --git a/src/components/repository/styles.css b/src/components/repository/styles.css deleted file mode 100644 index c6ade83..0000000 --- a/src/components/repository/styles.css +++ /dev/null @@ -1,99 +0,0 @@ -.repository-container { - padding: 10px; - transition: all 0.3s ease; -} - -.repository-body { - background: white; - padding: 20px; - border-radius: 10px; - box-shadow: -5px 10px 60px -13px rgba(0, 0, 0, 0.20); - height: 270px; -} - -.author-details { - margin-bottom: 20px; -} - -.author-img img { - width: 35px; - height: 35px; - object-fit: cover; - border-radius: 8px; - float: left; - margin-right: 15px; -} - -.author-details h5 { - margin-bottom: 2px; - font-weight: 600; - color: #6c7583; - font-size: 14px; -} - -.author-details a { - color: #6c7583; -} - -.author-details p { - margin-bottom: 0; - font-size: 12px; -} - -.author-header, .repo-header, .repo-body { - margin-bottom: 15px; -} - -.author-header a { - text-decoration: none; -} - -.repo-header h5 { - font-size: 19px; - margin-bottom: 5px; -} - -.repo-header p { - margin-bottom: 0; -} - -.repo-header a { - color: black; - text-decoration: none; -} - -.author-name { - font-weight: 400; -} - -.repo-name { - font-weight: 700; -} - -.repo-body p { - font-size: 14px; - margin-bottom: 0; - color: #6e7583; -} - -.repo-footer { - font-size: 12px; - position: absolute; - bottom: 15px; - left: 25px; - right: 25px; - background: white; - padding: 10px; -} - -.repo-footer a { - text-decoration: none; - color: #000000; - font-weight: 500; -} - -.repo-footer a svg { - position: relative; - top: -2px; - margin-right: 5px; -} diff --git a/src/containers/feed/index.js b/src/containers/feed/index.js index e7ee65f..bb0bff4 100644 --- a/src/containers/feed/index.js +++ b/src/containers/feed/index.js @@ -3,7 +3,8 @@ import React from 'react'; import './styles.css'; import TopNav from '../../components/top-nav'; import Filters from '../../components/filters'; -import Repository from '../../components/repository'; +import GridItem from '../../components/repository-grid/grid-item'; +import RepositoryGrid from '../../components/repository-grid'; class FeedContainer extends React.Component { render() { @@ -21,32 +22,7 @@ class FeedContainer extends React.Component {
-
- - - - - - - - - -
-
-
-
-

Yesterday July 11, 2019

-
-
-
-
- - - - - - -
+
diff --git a/src/containers/feed/styles.css b/src/containers/feed/styles.css index 3951375..cd36f44 100644 --- a/src/containers/feed/styles.css +++ b/src/containers/feed/styles.css @@ -6,7 +6,7 @@ .group-heading h4 { margin-bottom: 0; - margin-top: 5px; + margin-top: 15px; } .group-heading .small { @@ -33,7 +33,7 @@ } .row-group { - margin-top: 25px; + margin-top: 35px; } .row-group .group-heading { -- cgit v1.3