2023-09-26 14:27:38 +08:00
|
|
|
---
|
|
|
|
import Profile from "./Profile.astro";
|
|
|
|
import RecentPost from "./RecentPost.astro";
|
2023-10-11 22:29:23 +08:00
|
|
|
import Tag from "./Tags.astro";
|
|
|
|
import Categories from "./Categories.astro";
|
2023-09-26 14:27:38 +08:00
|
|
|
|
|
|
|
const className = Astro.props.class;
|
|
|
|
---
|
2023-10-11 22:29:23 +08:00
|
|
|
<div id="sidebar" class:list={[className, "w-full"]} transition:persist>
|
|
|
|
<div class="flex flex-col w-full gap-4 mb-4">
|
|
|
|
<Profile></Profile>
|
|
|
|
</div>
|
|
|
|
<div class="flex flex-col w-full gap-4 top-4 sticky top-4" transition:animate="none">
|
|
|
|
<Categories></Categories>
|
|
|
|
<RecentPost></RecentPost>
|
|
|
|
<Tag></Tag>
|
|
|
|
</div>
|
2023-09-26 14:27:38 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
#sidebar {
|
|
|
|
view-transition-name: ssss;
|
|
|
|
}
|
|
|
|
/* TODO temporarily */
|
|
|
|
html::view-transition-old(ssss) {
|
|
|
|
mix-blend-mode: normal;
|
|
|
|
animation: none;
|
|
|
|
}
|
|
|
|
html::view-transition-new(ssss) {
|
|
|
|
mix-blend-mode: normal;
|
|
|
|
animation: none;
|
|
|
|
}
|
|
|
|
</style>
|