Skip to content

Commit 825a143

Browse files
committed
fix: code review
1 parent d6221e7 commit 825a143

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

docs/tutorialkit.dev/src/content/docs/reference/configuration.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ type I18nText = {
5656
editPageText?: string
5757

5858
/**
59-
* Text shown before webcontainer link.
59+
* Text of the webcontainer link.
6060
*
61-
* @default 'Powered by'
61+
* @default 'Powered by Webcontainer'
6262
*/
6363
webcontainerLinkText?: string,
6464

-1.96 KB
Loading

packages/astro/src/default/components/TutorialContent.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ const { Markdown, editPageLink, prev, next } = lesson;
3939
</div>
4040
</div>
4141

42-
<p class="mt-6 font-size-3.5 text-tk-elements-webcontainersLink-textColor">
42+
<a
43+
class="inline-block mt-6 font-size-3.5 underline text-tk-elements-webcontainersLink-textColor hover:text-tk-elements-webcontainersLink-textColorHover"
44+
href="https://webcontainers.io/"
45+
>
4346
{lesson.data.i18n!.webcontainerLinkText}
44-
<a class="underline hover:text-tk-elements-webcontainersLink-textColorHover" href="https://webcontainers.io/"
45-
>webcontainers.io</a
46-
>
47-
</p>
47+
</a>
4848
</div>

packages/astro/src/default/utils/content/default-localization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const DEFAULT_LOCALIZATION = {
55
noPreviewNorStepsText: 'No preview to run nor steps to show',
66
startWebContainerText: 'Run this tutorial',
77
editPageText: 'Edit this page',
8-
webcontainerLinkText: 'Powered by',
8+
webcontainerLinkText: 'Powered by Webcontainer',
99
filesTitleText: 'Files',
1010
prepareEnvironmentTitleText: 'Preparing Environment',
1111
toggleTerminalButtonText: 'Toggle Terminal',

packages/types/src/schemas/i18n.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ export const i18nSchema = z.object({
1616
editPageText: z.string().optional().describe('Text of the edit page link.'),
1717

1818
/**
19-
* Text shown before webcontainer link.
19+
* Text of the webcontainer link.
2020
*
21-
* @default 'Powered by'
21+
* @default 'Powered by Webcontainer'
2222
*/
23-
webcontainerLinkText: z.string().optional().describe('Text shown before webcontainer link.'),
23+
webcontainerLinkText: z.string().optional().describe('Text of the webcontainer link.'),
2424

2525
/**
2626
* Text shown when there are no previews or steps to show in the prepare environment section.

0 commit comments

Comments
 (0)