Skip to content

Commit 75d64a5

Browse files
docs(common): clarify getting started tutorial; examples of all themes fromt the CDN, separate server and client examples
1 parent 9970294 commit 75d64a5

File tree

5 files changed

+35
-10
lines changed

5 files changed

+35
-10
lines changed

_contentTemplates/common/get-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ Once you have added the Telerik NuGet feed, continue with this tutorial.
5555
#project-creation-part-1
5656
If you have one, go to the [Add to Existing Project](#add-to-existing-project) section below.
5757

58-
If you don't have a Blazor project set up, first you need to create one.
58+
If you don't have a Blazor project set up, first you need to create one, then go to the [Add to Existing Project](#add-to-existing-project) section below.
5959

60-
>tip You can use the [Visual Studio Extensions]({%slug getting-started-vs-integration-new-project%}) we provide to prepare the project for you.
60+
>tip You can use the [Visual Studio Extensions]({%slug getting-started-vs-integration-new-project%}) we provide to prepare the project for you, so that you can start using the Telerik components immediately.
6161
6262
To create a project manually, follow these steps:
6363

_contentTemplates/common/js-interop-file.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#end
77

88
#add-js-interop-file-to-getting-started-client
9-
add the `telerik-blazor.js` file to your main index file - `wwwroot/index.html`:
9+
**add** the `telerik-blazor.js` file to your main index file - `wwwroot/index.html`:
1010

1111
**HTML**
1212

@@ -16,7 +16,7 @@
1616
#end
1717

1818
#add-js-interop-file-to-getting-started-server
19-
add the `telerik-blazor.js` file to your main index file - `~/Pages/_Host.cshtml`:
19+
**add** the `telerik-blazor.js` file to your main index file - `~/Pages/_Host.cshtml`:
2020

2121
**HTML**
2222

getting-started/client-blazor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ For client-side `Blazor App`, we recommend the usage of `Blazor (ASP.NET Hosted)
3333

3434
![Select Blazor Project Type](images/choose-project-template.png)
3535

36+
Now that you have a Blazor project running, it's time to [Add the Telerik components](#add-to-existing-project) to it.
3637

3738
### Add to Existing Project
3839

getting-started/server-blazor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ To use Blazor server-side, you need to use the `Blazor App` type of project with
3333

3434
![Select Blazor Project Type](images/choose-project-template-server-blazor.png)
3535

36+
Now that you have a Blazor project running, it's time to [Add the Telerik components](#add-to-existing-project) to it.
3637

3738
### Add to Existing Project
3839

themes.md

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,44 @@ The UI for Blazor suite comes with a set of built-in themes that you can choose
1818

1919
These themes are shared with the Kendo UI suites with which the UI for Blazor suite shares HTML rendering, classes and appearance (even though UI for Blazor are native components). You can read more about the way the available themes function in the [Kendo SASS Themes](https://docs.telerik.com/kendo-ui/styles-and-layout/sass-themes) article.
2020

21-
To use a theme, you must reference its stylesheet in the `<head>` of your main index file. For a [client-side Blazor app]({%slug getting-started/client-side%}), this is `wwwroot/index.html` and for a [server-side Blazor app]({%slug getting-started/server-side%}), it is `~/Pages/Index.cshtml`. The Razor syntax for a server application may differ and you need to escape the `@` symbols as `@@`.
21+
To use a theme, you must reference its stylesheet in the `<head>` of your main index file. For a [client-side Blazor app]({%slug getting-started/client-side%}), this is `wwwroot/index.html` and for a [server-side Blazor app]({%slug getting-started/server-side%}), it is `~/Pages/Index.cshtml`. The Razor syntax for a server application differs and you need to escape the `@` symbols as `@@`.
2222

23-
>caption Reference the Default theme from the cloud
23+
>caption Reference the Telerik theme from the cloud
2424
25-
````HTML
25+
````ClientApp
2626
<!DOCTYPE html>
2727
<html>
2828
<head>
2929
. . .
3030
<link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-default@latest/dist/all.css" />
31+
32+
<!-- Choose only one of the themes -->
33+
<!--
34+
<link href="https://unpkg.com/@progress/kendo-theme-bootstrap@latest/dist/all.css" rel="stylesheet" />
35+
<link href="https://unpkg.com/@progress/kendo-theme-material@latest/dist/all.css" rel="stylesheet" />
36+
-->
3137
</head>
32-
<body>
33-
<app>Loading...</app>
38+
39+
. . .
40+
41+
</html>
42+
````
43+
````ServerApp
44+
<!DOCTYPE html>
45+
<html>
46+
<head>
3447
. . .
35-
</body>
48+
<link rel="stylesheet" href="https://unpkg.com/@@progress/kendo-theme-default@@latest/dist/all.css" />
49+
50+
<!-- Choose only one of the themes -->
51+
<!--
52+
<link href="https://unpkg.com/@@progress/kendo-theme-bootstrap@@latest/dist/all.css" rel="stylesheet" />
53+
<link href=https://unpkg.com/@@progress/kendo-theme-material@@latest/dist/all.css" />
54+
-->
55+
</head>
56+
57+
. . .
58+
3659
</html>
3760
````
3861

0 commit comments

Comments
 (0)