Skip to content

Commit

Permalink
Update link styling
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Sep 4, 2024
1 parent 9224944 commit 296a297
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
19 changes: 19 additions & 0 deletions app/public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ body {
background: #f7f7fa;
font-family: 'Satoshi', sans-serif;
font-size: 16px;
color: #1E2122;
}

article {
Expand Down Expand Up @@ -46,3 +47,21 @@ ul {
margin: 0;
padding: 0;
}

.ensip-list li a {

}

.ensip-list li[data-X=true] a {
color: #DE5999;
}

.link {
color: #3889FF;
}

.link:hover {
cursor: pointer;
text-decoration: underline;
color: #056AFF;
}
11 changes: 8 additions & 3 deletions app/src/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ export const Home: FC<{ ensips: ENSIPData[] }> = ({ ensips }) => {
<article>
<Navbar />
<h1>ENSIPs</h1>
<ul>
<ul className="ensip-list">
{ensips.map(({ path, title }) => (
<li key={path}>
<a href={`/${path}`}>{title}</a>
<li
key={path}
data-X={title.toLowerCase().startsWith('ensip-x')}
>
<a href={`/${path}`} className="link">
{title}
</a>
</li>
))}
</ul>
Expand Down

0 comments on commit 296a297

Please sign in to comment.