Skip to content

Commit ab5e8ee

Browse files
authored
Merge pull request #260 from nullstack/update-examples
💄 update get started command
2 parents 8c9fbc3 + 2370577 commit ab5e8ee

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

i18n/en-US/components/Home.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ hero:
77
- Nullstack is a web framework that makes coding fun again.
88
- "Write the backend and frontend of a feature in a single isomorphic component with zero boilerplate or glue code."
99
getStarted: "Get Started"
10-
callToAction: "npx create-nullstack-app"
10+
callToAction: "npx create-nullstack-app --typescript --tailwind"
1111
actionLink: '/getting-started'
1212
actionCallback: 'Command copied, paste it in the terminal'
1313
trinity:

i18n/pt-BR/components/Home.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ hero:
77
- "Nullstack é um web framework que torna programar divertido novamente."
88
- "Escreva o backend e o frontend de um recurso em um único componente isomórfico sem boilerplate ou glue code."
99
getStarted: "Comece a usar"
10-
callToAction: "npx create-nullstack-app"
10+
callToAction: "npx create-nullstack-app --typescript --tailwind"
1111
actionLink: '/pt-br/comecando'
1212
actionCallback: 'Comando copiado, cole no terminal'
1313
trinity:

src/Home.njs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Home extends Translatable {
1010

1111
async getStarted({ router, action }) {
1212
if ('clipboard' in navigator) {
13-
const command = 'npx create-nullstack-app@latest';
13+
const command = 'npx create-nullstack-app@latest --typescript --tailwind';
1414
await navigator.clipboard.writeText(command);
1515
}
1616
clearTimeout(this.gettingStarted);
@@ -38,9 +38,9 @@ class Home extends Translatable {
3838
<p class="text-xl sm:text-2xl text-center sm:text-left">
3939
{this.i18n.hero.descriptions[1]}
4040
</p>
41-
<div class="space-x-4">
41+
<div class="">
4242
<a
43-
class="bg-pink-600 text-white px-6 py-4 border border-pink-600 hover:bg-transparent hover:text-pink-600 w-full sm:w-auto block sm:inline-block text-center"
43+
class="bg-pink-600 text-white px-6 py-4 border border-pink-600 hover:bg-transparent hover:text-pink-600 w-full sm:w-auto block sm:hidden text-center"
4444
href={this.i18n.hero.actionLink}
4545
>
4646
{this.i18n.hero.getStarted}

0 commit comments

Comments
 (0)