diff --git a/bun.lock b/bun.lock index e5567633..c2bb79a3 100644 --- a/bun.lock +++ b/bun.lock @@ -20,7 +20,7 @@ }, "audit": { "name": "@gram-lang/audit", - "version": "1.1.1", + "version": "1.2.0", "dependencies": { "@gram-lang/analyzer": "workspace:*", "@gram-lang/format": "workspace:*", @@ -97,7 +97,7 @@ }, "packages/docs": { "name": "@gram-lang/docs", - "version": "1.1.1", + "version": "1.2.0", "dependencies": { "@astrojs/markdown-remark": "^7.2.2", "@astrojs/mdx": "^7.0.5", @@ -198,7 +198,7 @@ }, "packages/vscode-extension": { "name": "gram-lang", - "version": "1.1.1", + "version": "1.2.0", "dependencies": { "@gram-lang/language-server": "workspace:*", "@gram-lang/renderer": "workspace:*", diff --git a/packages/docs/src/components/BlogPostLayout.astro b/packages/docs/src/components/BlogPostLayout.astro index 171459ee..880b33ce 100644 --- a/packages/docs/src/components/BlogPostLayout.astro +++ b/packages/docs/src/components/BlogPostLayout.astro @@ -116,13 +116,15 @@ const topicHref = `${basePath}/topic/${getTopicSlug(post.data.topic)}`; } .post-content :global(a) { - color: var(--sl-color-accent); + color: var(--sl-color-text); text-decoration: underline; - text-underline-offset: 4px; + text-decoration-color: var(--gram-orange); + text-decoration-thickness: 2px; + text-underline-offset: 3px; } .post-content :global(a:hover) { - color: var(--sl-color-accent-high); + color: var(--sl-color-accent); } .post-content :global(ul), diff --git a/packages/docs/src/components/FeaturePanel.astro b/packages/docs/src/components/FeaturePanel.astro index 2733ada7..5444f811 100644 --- a/packages/docs/src/components/FeaturePanel.astro +++ b/packages/docs/src/components/FeaturePanel.astro @@ -4,6 +4,7 @@ import Icon from "./Icon.astro"; interface Props { id: string; + title?: string; desc: string; link: string; learnMoreText: string; @@ -15,6 +16,7 @@ interface Props { const { id, + title, desc, link, learnMoreText, @@ -29,36 +31,65 @@ const {
{desc} - {learnMoreText} → + {learnMoreText}{title && : {title}}
DocumentationDocs
Playground
Blog
@@ -79,7 +79,7 @@ const { currentLang = "en" } = Astro.props;
DocumentationDocs
Playground
Blog
diff --git a/packages/docs/src/components/Homepage.astro b/packages/docs/src/components/Homepage.astro
index 56695b33..e91df7f4 100644
--- a/packages/docs/src/components/Homepage.astro
+++ b/packages/docs/src/components/Homepage.astro
@@ -47,11 +47,11 @@ const mockBases = [
-
+
- {t.heroTitle}
+ {t.heroTitle}
{t.heroSubtitle}
{t.heroDescription}
@@ -78,7 +78,7 @@ const mockBases = [
-
+
{t.recipeFileName || "recipe.gram"}
@@ -116,7 +116,9 @@ const mockBases = [
{item.details}
{item.link && (
- {t.learnMore} →
+ {t.learnMore}
+ : {item.title}
+
)}
@@ -145,6 +147,7 @@ const mockBases = [
-
+
-
+
-
{lang === "fr" ? "Fouetter" : "Whisk"}
-
+
{nutritionDict.renderer.nutrition}
{nutritionDict.renderer.estimateTooltip}
-
+
{
mockBases.map((basis) => (
-
+
{basis.label}
))
@@ -219,7 +225,7 @@ const mockBases = [
{group.unit}
{group.children.length > 0 && (
-
+
{group.children.map((child) => (
-
{child.label}
@@ -246,6 +252,7 @@ const mockBases = [
-
-
- {lang === "fr" ? "Temps Total" : "Total Time"}: 17m
- {lang === "fr" ? " · Actif" : " · Active"}: 7m
+
+
+ {lang === "fr"
+ ? "Rétro-planning : Temps total 17 minutes, temps actif 7 minutes. Déroulé : 0 à 5m : Mise en place ; 5 à 15m : Ébullition ; 10 à 15m : Sauter ; 15 à 17m : Mélanger."
+ : "Timeline schedule: Total time 17 minutes, active time 7 minutes. Steps: 0 to 5m: Mise en place; 5 to 15m: Boiling; 10 to 15m: Sauté; 15 to 17m: Toss."}
-
-
-
- {lang === "fr" ? "Actions" : "Actions"}
-
-
-
- Mise en place
-
-
- {lang === "fr" ? "Sauter" : "Sauté"}
-
-
- ↳ {lang === "fr" ? "Mélanger" : "Toss"}
-
-
+