Skip to content

Commit bc9e83a

Browse files
committed
wip
1 parent 68e0ad7 commit bc9e83a

15 files changed

+147
-215
lines changed

ec.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-s
33
import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers";
44

55
export default defineEcConfig({
6+
themes: ['github-dark-dimmed', 'github-light'],
7+
themeCssSelector: (theme) => `[data-code-theme='${theme.name}']`,
8+
useDarkModeMediaQuery: false,
69
plugins: [pluginCollapsibleSections(), pluginLineNumbers()],
710
});

src/components/AuthorNote.astro

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
import { getEntry } from "astro:content";
3+
import { Image } from "astro:assets";
4+
5+
interface AuthorNoteProps {
6+
authorRef: string;
7+
notes: string[];
8+
}
9+
10+
const { authorRef, notes } = Astro.props as AuthorNoteProps;
11+
12+
const author = (await getEntry("authors", authorRef))!;
13+
---
14+
15+
{
16+
notes.map((note) => (
17+
<div class="chat chat-start">
18+
<div class="chat-image avatar">
19+
<div class="w-10 rounded-full">
20+
<Image src={author.data.image!} alt={author.data.name} class="m-0"/>
21+
</div>
22+
</div>
23+
<div class="chat-bubble">{note}</div>
24+
</div>
25+
))
26+
}

src/components/InfoNote.astro

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
---
3+
<div role="alert" class="alert">
4+
<svg
5+
xmlns="http://www.w3.org/2000/svg"
6+
fill="none"
7+
viewBox="0 0 24 24"
8+
class="stroke-info h-6 w-6 shrink-0">
9+
<path
10+
stroke-linecap="round"
11+
stroke-linejoin="round"
12+
stroke-width="2"
13+
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
14+
</svg>
15+
<span>
16+
<slot />
17+
</span>
18+
</div>

src/components/Navbar.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const t = useTranslations(lang);
1212
const translatePath = useTranslatedPath(lang);
1313
---
1414

15-
<div class="navbar bg-base-100 w-full">
15+
<div class="navbar bg-base-100 w-full fixed top-0 z-10">
1616
<div class="flex-none md:hidden">
1717
<label
1818
for="my-drawer"

src/components/SideNavbar.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ const translatePath = useTranslatedPath(lang);
3737
</div>
3838
<style>
3939
.drawer-side {
40-
z-index: 2;
40+
z-index: 20;
4141
}
4242
</style>

src/components/ThemePicker.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ import { Icon } from "astro-icon/components";
2727
window.localStorage.setItem("theme", theme);
2828

2929
document.getElementById("theme-toggle").checked = theme === "dark";
30-
30+
document.querySelector("html").setAttribute("data-code-theme", document.getElementById("theme-toggle").checked ? "github-dark-dimmed" : "github-light");
31+
3132
const handleToggleClick = (event) => {
3233
localStorage.setItem("theme", event.target.checked ? "dark" : "light");
34+
document.querySelector("html").setAttribute("data-code-theme", event.target.checked ? "github-dark-dimmed" : "github-light");
3335
};
3436

3537
document
File renamed without changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: "Reusable Component Libraries: Simplifying Migration Between Targets"
3+
draft: false
4+
description: raesent ac leo quis enim porttitor
5+
category: en/c-programming
6+
tags:
7+
- firmware
8+
- c
9+
- development
10+
image: /img/pexels-arturoaez220-18734769.jpg
11+
authors:
12+
- author: albert-alvarez
13+
pubDate: 2024-12-01T12:00:00.000Z
14+
translatedPosts:
15+
- translatedPost: es/librerias-de-componentes-reusables-simplificando-la-migracion-entre-targets
16+
---
17+
18+
Lore

src/content/posts/en/test-number-one.mdx

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/content/posts/en/test-number-three.mdx

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)