Skip to content

Commit b433b59

Browse files
committed
Added styles to match github repos original state
1 parent f19a2a5 commit b433b59

File tree

4 files changed

+27
-14
lines changed

4 files changed

+27
-14
lines changed

example/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const App = () => {
66
return (
77
<div className='repos'>
88
<GithubRepoDisplay
9-
numOfrepos={3}
9+
numOfrepos={5}
1010
userName='msmfa'
1111
showStars={true}
1212
showLanguage={true}

src/components/DisplaySortedRepoData.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ export function DisplaySortedRepoData({
3636
</li>
3737
<div id='options' className={styles.options}>
3838
{showLanguage ? (
39-
<li className='language'>{repo.language}</li>
39+
<li id='language' className={styles.languages}>
40+
{repo.language}
41+
</li>
4042
) : null}
4143
{showStars ? (
4244
<li>

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const GithubRepoDisplay = ({
99
showLanguage
1010
}) => {
1111
return (
12-
<div className={styles.test}>
12+
<div className={styles.container}>
1313
{" "}
1414
<GetRepoData
1515
showStars={showStars}

src/styles.module.css

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,44 @@
11
/* add css module styles here (optional) */
22

3-
.title {
4-
color: green;
3+
.repoContainer ul {
4+
list-style-type: none;
55
}
66

7-
.test {
8-
font-size: 1em;
9-
list-style-type: none;
10-
margin: 2em;
11-
padding: 0.5em;
7+
.title {
8+
color: #0366d6;
9+
font-size: 1.2em;
10+
font-weight: 600;
11+
text-decoration: none;
12+
}
13+
.title:hover {
14+
text-decoration: underline;
1215
}
1316

14-
.repoContainer ul {
15-
list-style-type: none;
17+
.description {
18+
color: #3e4349;
19+
font-size: 0.9em;
20+
margin: 0.6em 0;
21+
}
22+
.languages {
23+
font-size: 1em;
1624
}
1725

1826
.star {
19-
height: 0.75em;
27+
height: 0.7em;
2028
padding-right: 0.2em;
2129
}
2230

2331
.options {
32+
color: #586069;
2433
display: flex;
34+
font-size: 0.8em;
35+
margin: 0.6em 0;
2536
}
2637
.options > li:first-child {
2738
padding-right: 1em;
2839
}
2940

3041
.textUpdated {
31-
color: rgb(88, 88, 88);
42+
color: rgb(121, 121, 121);
3243
font-size: 0.8em;
3344
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy