Skip to content

Commit

Permalink
Upgrade homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Sep 4, 2024
1 parent 76acc15 commit 5355ff8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions app/public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ ul {
padding: 0;
}

.ensip-list li a {
}
.ensip-list {
@apply space-y-4 pt-4;

.ensip-list li[data-x='true'] {
a {
color: #de5999;
li[data-x='true'] {
a {
color: #de5999;
}
}
}

Expand All @@ -72,7 +73,7 @@ pre {
overflow-x: auto;
border: 1px solid #e1e4e8;
border-radius: 8px;

max-width: 100%;
overflow-x: auto;
}
Expand Down Expand Up @@ -123,5 +124,4 @@ h1 {
ul {
@apply list-disc pl-6;
}

}
}
3 changes: 2 additions & 1 deletion app/src/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ export const Home: FC<{ ensips: ENSIPData[] }> = ({ ensips }) => {
<Navbar />
<h1>ENSIPs</h1>
<ul className="ensip-list">
{ensips.map(({ path, title }) => (
{ensips.map(({ path, title, frontmatter }) => (
<li
key={path}
data-x={title.toLowerCase().startsWith('ensip-x')}
>
<a href={`/ensip/${path}`} className="link">
{title}
</a>
<div>{frontmatter.description}</div>
</li>
))}
</ul>
Expand Down

0 comments on commit 5355ff8

Please sign in to comment.