Skip to content

Commit 2b26dcb

Browse files
authored
chore: consistency between templates (#815)
1 parent 91b71cd commit 2b26dcb

File tree

20 files changed

+86
-130
lines changed

20 files changed

+86
-130
lines changed

templates/template-angular/src/app/app.component.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
<div class="container">
1+
<main class="container">
22
<h1>Welcome to Tauri + Angular!</h1>
3+
34
<div class="row">
45
<a href="https://tauri.app" target="_blank">
56
<img src="/assets/tauri.svg" class="logo tauri" alt="Tauri logo" />
@@ -15,4 +16,4 @@ <h1>Welcome to Tauri + Angular!</h1>
1516
<button type="submit">Greet</button>
1617
</form>
1718
<p>{{ greetingMessage }}</p>
18-
</div>
19+
</main>

templates/template-blazor/src/Pages/Home.razor.lte

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
@page "/"
22
@inject IJSRuntime JsRuntime
33

4-
<div class="container">
5-
<h1>Welcome to Tauri!</h1>
4+
<main class="container">
5+
<h1>Welcome to Tauri + Blazor</h1>
66

77
<div class="row">
88
<a href="https://tauri.app" target="_blank">
@@ -12,16 +12,14 @@
1212
<img src="img/blazor.png" class="logo blazor" alt="Blazor logo"/>
1313
</a>
1414
</div>
15-
1615
<p>Click on the Tauri and Blazor logos to learn more.</p>
1716

1817
<form class="row" @onsubmit="GreetAsync" @onsubmit:preventDefault="true">
1918
<input id="greet-input" placeholder="Enter a name..." @bind="GreetInput"/>
2019
<button type="submit">Greet</button>
2120
</form>
22-
2321
<p>@GreetMsg</p>
24-
</div>
22+
</main>
2523

2624
@code
2725
{

templates/template-dioxus/src/app.rs.lte

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ pub fn App() -> Element {
3535
link { rel: "stylesheet", href: "styles.css" }
3636
main {
3737
class: "container",
38+
h1 { "Welcome to Tauri + Dioxus" }
39+
3840
div {
3941
class: "row",
4042
a {
@@ -56,7 +58,6 @@ pub fn App() -> Element {
5658
}
5759
}
5860
}
59-
6061
p { "Click on the Tauri and Dioxus logos to learn more." }
6162

6263
form {
@@ -70,10 +71,7 @@ pub fn App() -> Element {
7071
}
7172
button { r#type: "submit", "Greet" }
7273
}
73-
74-
p {
75-
b { "{greet_msg}" }
76-
}
74+
p { "{greet_msg}" }
7775
}
7876
}
7977
}

templates/template-leptos/src/app.rs.lte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ pub fn App() -> impl IntoView {
4141

4242
view! {
4343
<main class="container">
44+
<h1>"Welcome to Tauri + Leptos"</h1>
45+
4446
<div class="row">
4547
<a href="https://tauri.app" target="_blank">
4648
<img src="public/tauri.svg" class="logo tauri" alt="Tauri logo"/>
@@ -49,7 +51,6 @@ pub fn App() -> impl IntoView {
4951
<img src="public/leptos.svg" class="logo leptos" alt="Leptos logo"/>
5052
</a>
5153
</div>
52-
5354
<p>"Click on the Tauri and Leptos logos to learn more."</p>
5455

5556
<form class="row" on:submit=greet>
@@ -60,8 +61,7 @@ pub fn App() -> impl IntoView {
6061
/>
6162
<button type="submit">"Greet"</button>
6263
</form>
63-
64-
<p><b>{ move || greet_msg.get() }</b></p>
64+
<p>{ move || greet_msg.get() }</p>
6565
</main>
6666
}
6767
}

templates/template-preact-ts/src/App.tsx.lte

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ function App() {
1313
}
1414

1515
return (
16-
<div class="container">
17-
<h1>Welcome to Tauri!</h1>
16+
<main class="container">
17+
<h1>Welcome to Tauri + Preact</h1>
1818

1919
<div class="row">
2020
<a href="https://vitejs.dev" target="_blank">
@@ -27,7 +27,6 @@ function App() {
2727
<img src={preactLogo} class="logo preact" alt="Preact logo" />
2828
</a>
2929
</div>
30-
3130
<p>Click on the Tauri, Vite, and Preact logos to learn more.</p>
3231

3332
<form
@@ -44,9 +43,8 @@ function App() {
4443
/>
4544
<button type="submit">Greet</button>
4645
</form>
47-
4846
<p>{greetMsg}</p>
49-
</div>
47+
</main>
5048
);
5149
}
5250

templates/template-preact/src/App.jsx.lte

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ function App() {
1313
}
1414

1515
return (
16-
<div class="container">
17-
<h1>Welcome to Tauri!</h1>
16+
<main class="container">
17+
<h1>Welcome to Tauri + Preact</h1>
1818

1919
<div class="row">
2020
<a href="https://vitejs.dev" target="_blank">
@@ -27,7 +27,6 @@ function App() {
2727
<img src={preactLogo} class="logo preact" alt="Preact logo" />
2828
</a>
2929
</div>
30-
3130
<p>Click on the Tauri, Vite, and Preact logos to learn more.</p>
3231

3332
<form
@@ -44,9 +43,8 @@ function App() {
4443
/>
4544
<button type="submit">Greet</button>
4645
</form>
47-
4846
<p>{greetMsg}</p>
49-
</div>
47+
</main>
5048
);
5149
}
5250

templates/template-react-ts/src/App.tsx.lte

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ function App() {
1313
}
1414

1515
return (
16-
<div className="container">
17-
<h1>Welcome to Tauri!</h1>
16+
<main className="container">
17+
<h1>Welcome to Tauri + React</h1>
1818

1919
<div className="row">
2020
<a href="https://vitejs.dev" target="_blank">
@@ -27,7 +27,6 @@ function App() {
2727
<img src={reactLogo} className="logo react" alt="React logo" />
2828
</a>
2929
</div>
30-
3130
<p>Click on the Tauri, Vite, and React logos to learn more.</p>
3231

3332
<form
@@ -44,9 +43,8 @@ function App() {
4443
/>
4544
<button type="submit">Greet</button>
4645
</form>
47-
4846
<p>{greetMsg}</p>
49-
</div>
47+
</main>
5048
);
5149
}
5250

templates/template-react/src/App.jsx.lte

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ function App() {
1313
}
1414

1515
return (
16-
<div className="container">
17-
<h1>Welcome to Tauri!</h1>
16+
<main className="container">
17+
<h1>Welcome to Tauri + React</h1>
1818

1919
<div className="row">
2020
<a href="https://vitejs.dev" target="_blank">
@@ -27,7 +27,6 @@ function App() {
2727
<img src={reactLogo} className="logo react" alt="React logo" />
2828
</a>
2929
</div>
30-
3130
<p>Click on the Tauri, Vite, and React logos to learn more.</p>
3231

3332
<form
@@ -44,9 +43,8 @@ function App() {
4443
/>
4544
<button type="submit">Greet</button>
4645
</form>
47-
4846
<p>{greetMsg}</p>
49-
</div>
47+
</main>
5048
);
5149
}
5250

templates/template-solid-ts/src/App.tsx.lte

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ function App() {
1313
}
1414

1515
return (
16-
<div class="container">
17-
<h1>Welcome to Tauri!</h1>
16+
<main class="container">
17+
<h1>Welcome to Tauri + Solid</h1>
1818

1919
<div class="row">
2020
<a href="https://vitejs.dev" target="_blank">
@@ -27,7 +27,6 @@ function App() {
2727
<img src={logo} class="logo solid" alt="Solid logo" />
2828
</a>
2929
</div>
30-
3130
<p>Click on the Tauri, Vite, and Solid logos to learn more.</p>
3231

3332
<form
@@ -44,9 +43,8 @@ function App() {
4443
/>
4544
<button type="submit">Greet</button>
4645
</form>
47-
4846
<p>{greetMsg()}</p>
49-
</div>
47+
</main>
5048
);
5149
}
5250

templates/template-solid/src/App.jsx.lte

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ function App() {
1313
}
1414

1515
return (
16-
<div class="container">
17-
<h1>Welcome to Tauri!</h1>
16+
<main class="container">
17+
<h1>Welcome to Tauri + Solid</h1>
1818

1919
<div class="row">
2020
<a href="https://vitejs.dev" target="_blank">
@@ -27,7 +27,6 @@ function App() {
2727
<img src={logo} class="logo solid" alt="Solid logo" />
2828
</a>
2929
</div>
30-
3130
<p>Click on the Tauri, Vite, and Solid logos to learn more.</p>
3231

3332
<form
@@ -44,9 +43,8 @@ function App() {
4443
/>
4544
<button type="submit">Greet</button>
4645
</form>
47-
4846
<p>{greetMsg()}</p>
49-
</div>
47+
</main>
5048
);
5149
}
5250

0 commit comments

Comments
 (0)