Skip to content

Commit

Permalink
add link from corpora page to corpus
Browse files Browse the repository at this point in the history
  • Loading branch information
phuang00 committed Jul 21, 2021
1 parent 427e51e commit c6b79ef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
12 changes: 7 additions & 5 deletions frontend/components/Corpora.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,14 @@ const Corpora = () => {
<>
{corporaData.map((corpus, i) => (
<div className="col-6 mb-3" key={i}>
<div className="card">
<div className="card-body">
<h2 className={STYLES.title}>{corpus.title}</h2>
<p>{corpus.description}</p>
<a className={STYLES.corpusCard} href={`/corpus/${corpus.id}`}>
<div className="card">
<div className="card-body">
<h2 className={STYLES.title}>{corpus.title}</h2>
<p>{corpus.description}</p>
</div>
</div>
</div>
</a>
</div>
))}
</>
Expand Down
5 changes: 5 additions & 0 deletions frontend/components/Corpora.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.title {
font-size: large;
}

.corpusCard {
color: black;
text-decoration: none !important;
}

0 comments on commit c6b79ef

Please sign in to comment.