Skip to content

Commit

Permalink
Better styling of appcard footer
Browse files Browse the repository at this point in the history
  • Loading branch information
soerface committed Nov 14, 2024
1 parent 82c0fa1 commit e5c4ddd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/AppCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ function AppCard({app}: { app: OIDCApplication }) {
<p>{description}</p>
</div>
<div className="app-card-footer">
<p><a href={app.effectiveUrl} target="_blank">{app.effectiveUrl}</a></p>
<span>{app.rootUrl}</span>
{app.effectiveUrl ? <button onClick={() => window.open(app.effectiveUrl, "_blank")}>Öffnen</button> : null}
</div>
</div>
}
Expand Down
7 changes: 5 additions & 2 deletions src/AppCards.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@
}

.app-card-footer {
text-align: right;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.4em;
color: #aaa;
background: #2a2a2a;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
Expand All @@ -44,7 +47,6 @@
}

.app-card-footer p {
margin: 0.2em;
}

@media (prefers-color-scheme: light) {
Expand All @@ -59,5 +61,6 @@

.app-card-footer {
background: #f0f0f0;
color: #555;
}
}

0 comments on commit e5c4ddd

Please sign in to comment.