summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/filters/language-filter/styles.css1
-rw-r--r--src/components/repository/index.js63
-rw-r--r--src/components/repository/styles.css99
-rw-r--r--src/containers/feed/index.js11
-rw-r--r--src/containers/feed/styles.css18
-rw-r--r--src/global.css4
6 files changed, 196 insertions, 0 deletions
diff --git a/src/components/filters/language-filter/styles.css b/src/components/filters/language-filter/styles.css
index 91c2b27..eb7e79b 100644
--- a/src/components/filters/language-filter/styles.css
+++ b/src/components/filters/language-filter/styles.css
@@ -1,5 +1,6 @@
.language-filter-wrap {
position: relative;
+ z-index: 1;
}
.language-filter {
diff --git a/src/components/repository/index.js b/src/components/repository/index.js
new file mode 100644
index 0000000..3c13188
--- /dev/null
+++ b/src/components/repository/index.js
@@ -0,0 +1,63 @@
+import React from 'react';
+
+import './styles.css';
+
+class Repository extends React.Component {
+ render() {
+ return (
+ <div className="col-4 repository-container">
+ <div className="repository-body">
+ <div className="author-header clearfix">
+ <a href="#">
+ <div className="author-img">
+ <img src="https://avatars0.githubusercontent.com/u/4921183?s=460&v=4"/>
+ </div>
+ <div className="author-details">
+ <h5>kamranahmedse</h5>
+ <p className="small text-muted">View Profile</p>
+ </div>
+ </a>
+ </div>
+ <div className="repo-header">
+ <h5>
+ <a href="#"><span className="repo-name">design-patterns-for-humans</span></a>
+ </h5>
+ <p className="repo-meta text-muted small">Built by &middot; <a href="#">kamranahmedse</a> &middot; July 12, 2018</p>
+ </div>
+ <div className="repo-body">
+ <p>Create React apps with no build configuration</p>
+ </div>
+ <div className="repo-footer">
+ <span className="d-inline-block mr-3">
+ <span className="repo-language-color ml-0"></span>
+ <span itemProp="programmingLanguage">
+ PHP
+ </span>
+ </span>
+ <a className="muted-link d-inline-block mr-3" href="/ValveSoftware/Proton/stargazers">
+ <svg viewBox="0 0 14 16" version="1.1" width="14" height="16" role="img">
+ <path fillRule="evenodd" d="M14 6l-4.9-.64L7 1 4.9 5.36 0 6l3.6 3.26L2.67 14 7 11.67 11.33 14l-.93-4.74L14 6z"/>
+ </svg>
+ 1,532
+ </a>
+ <a className="muted-link d-inline-block mr-3" href="/ValveSoftware/Proton/network">
+ <svg viewBox="0 0 10 16" version="1.1" width="10" height="16" role="img">
+ <path fillRule="evenodd"
+ d="M8 1a1.993 1.993 0 0 0-1 3.72V6L5 8 3 6V4.72A1.993 1.993 0 0 0 2 1a1.993 1.993 0 0 0-1 3.72V6.5l3 3v1.78A1.993 1.993 0 0 0 5 15a1.993 1.993 0 0 0 1-3.72V9.5l3-3V4.72A1.993 1.993 0 0 0 8 1zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3 10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3-10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"></path>
+ </svg>
+ 30
+ </a>
+ <a className="muted-link d-inline-block mr-3" href="/ValveSoftware/Proton/network">
+ <svg className="octicon octicon-eye v-align-text-bottom" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true">
+ <path fillRule="evenodd" d="M8.06 2C3 2 0 8 0 8s3 6 8.06 6C13 14 16 8 16 8s-3-6-7.94-6zM8 12c-2.2 0-4-1.78-4-4 0-2.2 1.8-4 4-4 2.22 0 4 1.8 4 4 0 2.22-1.78 4-4 4zm2-4c0 1.11-.89 2-2 2-1.11 0-2-.89-2-2 0-1.11.89-2 2-2 1.11 0 2 .89 2 2z"></path>
+ </svg>
+ 55
+ </a>
+ </div>
+ </div>
+ </div>
+ );
+ }
+}
+
+export default Repository;
diff --git a/src/components/repository/styles.css b/src/components/repository/styles.css
new file mode 100644
index 0000000..c6ade83
--- /dev/null
+++ b/src/components/repository/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/containers/feed/index.js b/src/containers/feed/index.js
index d2e6964..1b2ccad 100644
--- a/src/containers/feed/index.js
+++ b/src/containers/feed/index.js
@@ -3,6 +3,7 @@ import React from 'react';
import './styles.css';
import TopNav from '../../components/top-nav';
import Filters from '../../components/filters';
+import Repository from '../../components/repository';
class FeedContainer extends React.Component {
render() {
@@ -19,6 +20,16 @@ class FeedContainer extends React.Component {
<Filters/>
</div>
</div>
+ <div className="body-row">
+ <div className="row repositories-list">
+ <Repository/>
+ <Repository/>
+ <Repository/>
+ <Repository/>
+ <Repository/>
+ <Repository/>
+ </div>
+ </div>
</div>
</div>
);
diff --git a/src/containers/feed/styles.css b/src/containers/feed/styles.css
index e936cc6..bba5831 100644
--- a/src/containers/feed/styles.css
+++ b/src/containers/feed/styles.css
@@ -4,6 +4,11 @@
float: left;
}
+.group-heading h4 {
+ margin-bottom: 0;
+ margin-top: 5px;
+}
+
.group-heading .small {
font-size: 14px;
font-weight: 400;
@@ -13,3 +18,16 @@
.group-filters {
float: right;
}
+
+.repositories-list {
+ margin-top: 20px;
+}
+
+.repositories-list:hover .repository-container {
+ opacity: 0.5;
+}
+
+.repositories-list .repository-container:hover {
+ opacity: 1;
+ z-index: 2;
+}
diff --git a/src/global.css b/src/global.css
index 635959a..9221e5c 100644
--- a/src/global.css
+++ b/src/global.css
@@ -4,6 +4,10 @@ body {
min-height: 100vh;
}
+a {
+ color: #1157ed;
+}
+
.btn {
font-size: 14px;
border-radius: 8px;