Skip to content

Commit f19a2a5

Browse files
committed
Added ID for user input and classNames for default styles
1 parent 44c4932 commit f19a2a5

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

src/components/DisplaySortedRepoData.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,21 @@ export function DisplaySortedRepoData({
2020
{sortedAndReducedRepos
2121
? sortedAndReducedRepos.map((repo) => (
2222
<ul key={repo.id}>
23-
<li className='title'>{removeDash(repo.name)}</li>
24-
<li className='description'>{repo.description}</li>
2523
<li>
2624
<a
27-
className='github-link'
25+
id='title'
26+
className={styles.title}
2827
href={repo.html_url}
2928
target='_blank'
3029
rel='noopener noreferrer'
3130
>
32-
Github
31+
{removeDash(repo.name)}
3332
</a>
3433
</li>
35-
<div className={styles.options}>
34+
<li id='description' className={styles.description}>
35+
{repo.description}
36+
</li>
37+
<div id='options' className={styles.options}>
3638
{showLanguage ? (
3739
<li className='language'>{repo.language}</li>
3840
) : null}
@@ -43,7 +45,7 @@ export function DisplaySortedRepoData({
4345
</li>
4446
) : null}
4547
</div>
46-
<li className={styles.textUpdated}>
48+
<li id='text-updated' className={styles.textUpdated}>
4749
updated{" "}
4850
{convertToHours(
4951
getRemainingSeconds(new Date(repo.updated_at), Date.now())

src/styles.module.css

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

3+
.title {
4+
color: green;
5+
}
6+
37
.test {
48
font-size: 1em;
59
list-style-type: none;

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