Skip to content

Commit

Permalink
add info panel
Browse files Browse the repository at this point in the history
  • Loading branch information
rambleraptor committed Dec 9, 2024
1 parent 75b3b94 commit f87f492
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/components/InfoPanel.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const depth = 0;
---
{
props.data.isAEP === true && (
<div class="container">
<div class="p-1 mb-2 rounded border-gray-950 border-2">
<ul>
<li>
<span>Slug: </span><a class="inline" href={props.slug}>/{props.slug}</a>
Expand All @@ -25,8 +25,8 @@ const depth = 0;
<li>
<a class="inline"
href={
"https://github.com/aep-dev/aep.dev/edit/master/aep/general/" +
props.data.id
"https://github.com/aep-dev/aeps/edit/main/aep/general/" +
props.data.id.toString().padStart(4, "0") + "/aep.md.j2"
}
>
Edit on GitHub
Expand All @@ -38,16 +38,11 @@ const depth = 0;
}

<style define:vars={{ depth }}>
.container {
margin-bottom: 1rem;
padding: 0.125rem;
}
span {
font-weight: 600;
}
ul {
list-style: none;
background-color: rgb(224 242 254);
border-radius: 0.25rem;
padding: 0;
border-color: rgb(120 113 108);
Expand Down

0 comments on commit f87f492

Please sign in to comment.