Skip to content

Commit

Permalink
Merge pull request #11 from huntresslabs/dev
Browse files Browse the repository at this point in the history
more detail in cards
  • Loading branch information
HuskyHacks authored Aug 14, 2024
2 parents d848f95 + 411d443 commit 66b2ef2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ export default function Home() {
<p>{app.description}</p>
{expandedCard === index && (
<div className={styles.cardDetails}>
<p><strong>App ID:</strong> {app.appId}</p>
<p><strong>Owner Organization ID:</strong> {app.appOwnerOrganizationId}</p>
<p><strong>Publisher:</strong> {app.appPublisherName}</p>
<p><strong>Contributor:</strong> {app.contributor}</p>
<p><strong>MITRE TTP:</strong> {app.mitreTTP.join(', ')}</p>
<p><strong>Tags:</strong> {app.tags.join(', ')}</p>
Expand Down Expand Up @@ -97,6 +100,9 @@ export default function Home() {
<h3>{filteredApps[expandedCard].appDisplayName}</h3>
<p>{filteredApps[expandedCard].description}</p>
<div className={styles.cardDetails}>
<p><strong>App ID:</strong> {filteredApps[expandedCard].appId}</p>
<p><strong>Owner Organization ID:</strong> {filteredApps[expandedCard].appOwnerOrganizationId}</p>
<p><strong>Publisher:</strong> {filteredApps[expandedCard].appPublisherName}</p>
<p><strong>Contributor:</strong> {filteredApps[expandedCard].contributor}</p>
<p><strong>MITRE TTP:</strong> {filteredApps[expandedCard].mitreTTP.join(', ')}</p>
<p><strong>Tags:</strong> {filteredApps[expandedCard].tags.join(', ')}</p>
Expand Down
3 changes: 2 additions & 1 deletion styles/Home.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@

.cardDetails p {
margin: 0.5rem 0;
margin-top: 1em;
font-size: 1rem;
line-height: 1.5;
color: var(--white-2);
Expand Down Expand Up @@ -172,4 +173,4 @@
background-color: var(--primary-black);
padding: 2px 4px;
border-radius: 4px;
}
}

0 comments on commit 66b2ef2

Please sign in to comment.