add blog index to admin dashboard

This commit is contained in:
ari melody 2025-11-07 01:04:10 +00:00
parent ee8bf6543e
commit 65366032fd
Signed by: ari
GPG key ID: CF99829C92678188
10 changed files with 603 additions and 91 deletions

80
admin/static/blog.css Normal file
View file

@ -0,0 +1,80 @@
.blog-collection h2 {
margin: .5em 1em;
font-size: 1em;
text-transform: uppercase;
font-weight: 600;
color: var(--fg-0);
}
.blogpost {
padding: 1em;
display: block;
border-radius: 8px;
background-color: var(--bg-2);
box-shadow: var(--shadow-md);
}
.blogpost .title {
margin: 0;
font-size: 1.5em;
}
.blogpost .title small {
display: inline-block;
font-size: .6em;
transform: translateY(-0.1em);
color: var(--fg-0);
}
.blogpost .description {
margin: .5em 0 .6em 0;
color: var(--fg-1);
}
.blogpost .meta {
margin: 0;
font-size: .8em;
color: var(--fg-0);
}
.blogpost .meta .author {
color: var(--fg-1);
}
.blogpost .meta .author img {
width: 1.3em;
height: 1.3em;
margin-right: .2em;
display: inline-block;
transform: translate(0, 4px);
border-radius: 4px;
}
.blogpost a:hover {
text-decoration: underline;
}
.blogpost .actions {
margin-top: .5em;
display: flex;
gap: .3em;
user-select: none;
color: var(--fg-3);
}
.blogpost .actions a {
padding: .3em .5em;
display: inline-block;
border-radius: 4px;
background-color: var(--bg-3);
box-shadow: var(--shadow-sm);
transition: color .1s ease-out, background-color .1s ease-out;
}
.blogpost .actions a:hover {
background-color: var(--bg-0);
color: var(--fg-3);
text-decoration: none;
}